1 #!/bin/bash 1 #!/bin/bash 2 # SPDX-License-Identifier: GPL-2.0 2 # SPDX-License-Identifier: GPL-2.0 3 # Copyright (c) 2020 SUSE LLC. 3 # Copyright (c) 2020 SUSE LLC. 4 4 5 # 'make -C tools/testing/selftests/bpf install 5 # 'make -C tools/testing/selftests/bpf install' will install to SCRIPT_DIR 6 SCRIPT_DIR=$(dirname $(realpath $0)) 6 SCRIPT_DIR=$(dirname $(realpath $0)) 7 7 8 # 'make -C tools/testing/selftests/bpf' will i 8 # 'make -C tools/testing/selftests/bpf' will install to BPFTOOL_INSTALL_PATH 9 BPFTOOL_INSTALL_PATH="$SCRIPT_DIR"/tools/sbin 9 BPFTOOL_INSTALL_PATH="$SCRIPT_DIR"/tools/sbin 10 export PATH=$SCRIPT_DIR:$BPFTOOL_INSTALL_PATH: 10 export PATH=$SCRIPT_DIR:$BPFTOOL_INSTALL_PATH:$PATH 11 python3 -m unittest -v test_bpftool.TestBpftoo 11 python3 -m unittest -v test_bpftool.TestBpftool
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.