xref: /openbmc/linux/tools/testing/selftests/bpf/test_bpftool.sh (revision e6b9d8eddb1772d99a676a906d42865293934edd)
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