Re: [PATCH bpf-next] selftests/bpf: test_progs option for getting number of tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 29, 2020 at 9:01 AM Jesper Dangaard Brouer
<brouer@xxxxxxxxxx> wrote:
>
> 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
>
> Signed-off-by: Jesper Dangaard Brouer <brouer@xxxxxxxxxx>
> ---

LGTM.

Acked-by: Andrii Nakryiko <andriin@xxxxxx>


>  tools/testing/selftests/bpf/test_progs.c |   11 +++++++++++
>  tools/testing/selftests/bpf/test_progs.h |    1 +
>  2 files changed, 12 insertions(+)
>

[...]



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux