[PATCH lkp-tests] test: add test-tools

Signed-off-by: Li Ping <15396232681@163.com> --- tests/test-tools | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 tests/test-tools diff --git a/tests/test-tools b/tests/test-tools new file mode 100755 index 00000000..e0db258a --- /dev/null +++ b/tests/test-tools @@ -0,0 +1,38 @@ +#!/bin/bash +# - testsuite +# - testcase + +cd $BENCHMARK_ROOT/test-tools/mugen || exit +: "${testsuite:=smoke-testing}" +: "${testcase:=oe_test_dd_001}" + +set_env() +{ + bash runoet.sh -c + source ~/.bash_profile +} + +test_one_case() +{ + + bash runoet.sh -f $testsuite -r $testcase -x +} + +test_all_cases() +{ + bash runoet.sh -a +} + +run_test() +{ + set_env + if [ "${testsuite}" == "all" ]&&[ "${testcase}" == "all"] + then + test_all_cases + return + else + test_one_case + fi +} + +run_test -- 2.23.0
participants (2)
-
Li Ping
-
Wu Fengguang