diff --git a/tools/testing/selftests/bpf/samples_test.sh b/tools/testing/selftests/bpf/samples_test.sh new file mode 100755 index 0000000000000000000000000000000000000000..5fdd73bae024fee22b0df6aba6d7b429020fc991 --- /dev/null +++ b/tools/testing/selftests/bpf/samples_test.sh @@ -0,0 +1,63 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +yum install -y iperf3 netperf iproute-tc nmap-ncat readline + +cd ../../../../samples/bpf +make -j8 + +ulimit -l unlimited + +./map_perf_test +./sampleip + +./sockex1 +./sockex2 +./sockex3 + +./sock_example +./syscall_tp +./task_fd_query +./tc_l2_redirect.sh +./test_cgrp2_sock2.sh +./test_cgrp2_sock.sh +./test_cgrp2_tc.sh +./test_cls_bpf.sh +./test_current_task_under_cgroup +./test_overhead + +timeout 10 ./tracex1 +./tracex2 +timeout 10 ./tracex3 +timeout 10 ./tracex4 +timeout 10 ./tracex5 +./tracex6 +./tracex7 + +ip link add veth0t type veth peer name veth1t +ip link set veth0t up +ip link set veth1t up +timeout 10 ./xdp_redirect_cpu --dev veth0t --prog 2 --cpu 0 --cpu 1 --cpu 4 +timeout 10 ./xdp_redirect_cpu --dev veth1t --prog 4 --cpu 2 --cpu 3 --cpu 4 +timeout 10 ./xdp_redirect_map `cat /sys/class/net/veth0t/ifindex` \ +`cat /sys/class/net/veth1t/ifindex` +ip link delete veth0t + +./fds_example -F /sys/fs/bpf/m -G -m -k 1 +./fds_example -F /sys/fs/bpf/m -G -m -k 1 -v 24 +./fds_example -F /sys/fs/bpf/m -G -m -k 1 +./fds_example -F /sys/fs/bpf/m2 -G -m -k 1 +./fds_example -F /sys/fs/bpf/m2 -G -m +./fds_example -F /sys/fs/bpf/p -G -p +./fds_example -F /sys/fs/bpf/p2 -G -p + +./do_hbm_test.sh -l -d=1 -D --stats +./do_hbm_test.sh -l -d=1 -D --stats dctcp +./do_hbm_test.sh -l -d=1 -D --stats -f=2 +./do_hbm_test.sh -l -d=1 -D --stats -f=4 -P +./do_hbm_test.sh -l -d=1 -D --stats -f=4 -N + +./test_ipip.sh +./trace_output + +cd ../../tools/testing/selftest/bpf/