diff options
| author | Jesper Dangaard Brouer <[email protected]> | 2020-07-01 21:44:12 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-07-01 22:22:13 +0000 |
| commit | 643e7233aa948901dce81d4573c91ed99fdd272e (patch) | |
| tree | 588690946a045ae94d3d9f12f4f516015cc4dca1 /tools/testing/selftests/bpf/prog_tests/tcp_rtt.c | |
| parent | selftests/bpf: Test_progs indicate to shell on non-actions (diff) | |
| download | kernel-643e7233aa948901dce81d4573c91ed99fdd272e.tar.gz kernel-643e7233aa948901dce81d4573c91ed99fdd272e.zip | |
selftests/bpf: Test_progs option for getting number of tests
It can be practial to get the number of tests that test_progs contain.
This could for example be used to create a shell for-loop construct that
runs the individual tests.
Like:
for N in $(seq 1 $(./test_progs -c)); do
./test_progs -n $N 2>&1 > result_test_${N}.log &
done ; wait
V2: Add the ability to return the count for the selected tests. This is
useful for getting a count e.g. after excluding some tests with option -b.
The current beakers test script like to report the max test count upfront.
Signed-off-by: Jesper Dangaard Brouer <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/159363985244.930467.12617117873058936829.stgit@firesoul
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_rtt.c')
0 files changed, 0 insertions, 0 deletions
