xref: /linux/tools/testing/selftests/bpf/test_bpftool.sh (revision 69bfec7548f4c1595bac0e3ddfc0458a5af31f4c)
1#!/bin/bash
2# SPDX-License-Identifier: GPL-2.0
3# Copyright (c) 2020 SUSE LLC.
4
5# 'make -C tools/testing/selftests/bpf install' will install to SCRIPT_DIR
6SCRIPT_DIR=$(dirname $(realpath $0))
7
8# 'make -C tools/testing/selftests/bpf' will install to BPFTOOL_INSTALL_PATH
9BPFTOOL_INSTALL_PATH="$SCRIPT_DIR"/tools/sbin
10export PATH=$SCRIPT_DIR:$BPFTOOL_INSTALL_PATH:$PATH
11python3 -m unittest -v test_bpftool.TestBpftool
12