
On Mon, Oct 12, 2020 at 10:29:32AM +0800, Li Ping wrote:
Signed-off-by: Li Ping <15396232681@163.com> --- tests/test-tools | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 tests/test-tools
diff --git a/tests/test-tools b/tests/test-tools new file mode 100755 index 00000000..9ca5d228 --- /dev/null +++ b/tests/test-tools @@ -0,0 +1,37 @@ +#!/bin/bash +# - testsuite +# - testcase +# - all + +cd $BENCHMARK_ROOT/test-tools/mugen || exit + +set_for_env() +{
bash runoet.sh -c ./runoet.sh -c
+ source ~/.bash_profile +} + +test_one_case() +{ +
bash runoet.sh -f $testsuite -r $testcase -x ./runoet.sh Thanks sunyukui
+} + +test_all_cases() +{ + bash runoet.sh -a +} + +run_test() +{ + set_for_env + [ -n "$all" ] && { + test_all_cases + return + } + [ -n "$testsuite" ] || testsuite=smoke-testing + [ -n "$testcase" ] || testcase=oe_test_dd_001 + test_one_case +} + +run_test -- 2.23.0