Add ability to run, emit, install tests take arguments to the shared logic in lib.mk. lib.mk provides a way to override the default RUN_TESTS and EMIT_TESTS, however in the cases where a test has several executables that don't require any special args and/or handling and some that do, overrding will be cumbersome. Add variables RUN_TESTS_WITH_ARGS, and EMIT_TESTS_WITH_ARGS to enable a test to run and exmit script for such special executables. Signed-off-by: Shuah Khan <shuahkh@xxxxxxxxxxxxxxx> --- tools/testing/selftests/lib.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index 7bd3dab..78cdf91 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -6,6 +6,9 @@ endef run_tests: all $(RUN_TESTS) +ifdef RUN_TESTS_WITH_ARGS + $(RUN_TESTS_WITH_ARGS) +endif define INSTALL_RULE mkdir -p $(INSTALL_PATH) @@ -27,5 +30,8 @@ endef emit_tests: $(EMIT_TESTS) +ifdef EMIT_TESTS_WITH_ARGS + $(EMIT_TESTS_WITH_ARGS) +endif .PHONY: run_tests all clean install emit_tests -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html