[why] old version package needs to debug by new testcase
Signed-off-by: Hu XueJiao 1034502035@qq.com --- tests/sysbench-threads-git | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tests/sysbench-threads-git
diff --git a/tests/sysbench-threads-git b/tests/sysbench-threads-git new file mode 100755 index 00000000..8b9e1c99 --- /dev/null +++ b/tests/sysbench-threads-git @@ -0,0 +1,17 @@ +#!/bin/sh +# - nr_threads +# - thread_yields +# - thread_locks + +. "$LKP_SRC/lib/reproduce-log.sh" + +: "${nr_threads:=2}" +: "${thread_yields:=100}" +: "${thread_locks:=2}" + +args="\ + --threads=$nr_threads\ + --thread-yields=$thread_yields\ + --thread-locks=$thread_locks +" +log_cmd sysbench --test=threads $args run
On Thu, Nov 05, 2020 at 11:26:13AM +0800, Hu Xuejiao wrote:
[why] old version package needs to debug by new testcase
Signed-off-by: Hu XueJiao 1034502035@qq.com
tests/sysbench-threads-git | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tests/sysbench-threads-git
diff --git a/tests/sysbench-threads-git b/tests/sysbench-threads-git new file mode 100755 index 00000000..8b9e1c99 --- /dev/null +++ b/tests/sysbench-threads-git @@ -0,0 +1,17 @@ +#!/bin/sh +# - nr_threads +# - thread_yields +# - thread_locks
+. "$LKP_SRC/lib/reproduce-log.sh"
+: "${nr_threads:=2}" +: "${thread_yields:=100}" +: "${thread_locks:=2}"
+args="\
- --threads=$nr_threads\
- --thread-yields=$thread_yields\
- --thread-locks=$thread_locks
+"
args=( --threads=$nr_threads --thread-yields=$thread_yields --thread-locks=$thread_locks )
This way more simple?
+log_cmd sysbench --test=threads $args run
^ ${args[@]}
Thanks, Zhangyu