Re: [PATCH V2 net-next 4/6] test_bpf: add module parameters to filter the tests to run.

From: Alexei Starovoitov
Date: Tue Aug 04 2015 - 11:46:43 EST


On 8/4/15 6:19 AM, Nicolas Schichan wrote:
When developping on the interpreter or a particular JIT, it can be
interesting to restrict the tests list to a specific test or a
particular range of tests.

This patch adds the following module parameters to the test_bpf module:

* test_name=<string>: only the specified named test will be run.

* test_id=<number>: only the test with the specified id will be run
(see the output of test_bpf without parameters to get the test id).

* test_range=<number>,<number>: only the tests within IDs in the
specified id range are run (see the output of test_bpf without
parameters to get the test ids).

Any invalid range, test id or test name will result in -EINVAL being
returned and no tests being run.

Signed-off-by: Nicolas Schichan<nschichan@xxxxxxxxxx>
Acked-by: Daniel Borkmann<daniel@xxxxxxxxxxxxx>

looks good. thank you for adding range feature :)
Acked-by: Alexei Starovoitov <ast@xxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/