From: Francis Deslauriers Date: Thu, 16 Mar 2017 16:39:16 +0000 (-0400) Subject: jjb: Add ioctl testcase to Lava benchmarks X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c863d7caa4ecfad208399cda6cec593374797b1f;p=lttng-ci.git jjb: Add ioctl testcase to Lava benchmarks Signed-off-by: Francis Deslauriers --- diff --git a/lava/baremetal-tests/failing-ioctl.yml b/lava/baremetal-tests/failing-ioctl.yml new file mode 100644 index 0000000..4865fc4 --- /dev/null +++ b/lava/baremetal-tests/failing-ioctl.yml @@ -0,0 +1,38 @@ +metadata: + format: Lava-Test Test Definition 1.0 + name: benchmark-syscall-failing-ioctl + description: "Perform syscall tracing benchmark of failing ioctl" +params: + JENKINS_JOBNAME: "default jobname" + +install: + deps: + - python3-pandas + - python3-numpy + git-repos: + - url: https://github.com/frdeso/syscall-bench-it.git + destination: benchmarks + branch: master + - url: https://github.com/frdeso/lttng-ci + destination: ci + branch: baremetal_tests + steps: + - export TMPDIR="/tmp" + - ulimit -c unlimited + - mkdir -p coredump + - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern +run: + steps: + - source /root/lttngvenv/activate + - cd benchmarks + - lava-test-case build-benchmarks --shell "make" + - lava-test-case run-benchmarks --shell "./run.sh failing-ioctl sys_ioctl" + - lava-test-case-attach run-benchmarks "./results.csv" + - cd - + - cd ci + - python3 ./scripts/lttng-baremetal-tests/parse-results.py ../benchmarks/results.csv + - mv ./processed_results.csv ../processed_results_ioctl.csv + - cd - + - tar czf coredump.tar.gz coredump + - lava-test-case-attach run-benchmarks coredump.tar.gz + - lava-test-case-attach run-benchmarks "./processed_results_ioctl.csv" diff --git a/scripts/lttng-baremetal-tests/lava-submit.py b/scripts/lttng-baremetal-tests/lava-submit.py index 8ba9251..43fef56 100644 --- a/scripts/lttng-baremetal-tests/lava-submit.py +++ b/scripts/lttng-baremetal-tests/lava-submit.py @@ -71,6 +71,7 @@ def check_job_all_test_cases_state_count(server, job): def fetch_benchmark_results(server, job): content = get_job_bundle_content(server, job) testcases = ['processed_results_close.csv', + 'processed_results_ioctl.csv', 'processed_results_open_efault.csv', 'processed_results_open_enoent.csv', 'processed_results_dup_close.csv', @@ -191,6 +192,11 @@ def get_baremetal_benchmarks_cmd(): 'revision': 'master', 'testdef': 'lava/baremetal-tests/failing-close.yml' }, + { + 'git-repo': 'https://github.com/lttng/lttng-ci.git', + 'revision': 'master', + 'testdef': 'lava/baremetal-tests/failing-ioctl.yml' + }, { 'git-repo': 'https://github.com/lttng/lttng-ci.git', 'revision': 'master', diff --git a/scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh b/scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh index 9d37e32..1d15a61 100644 --- a/scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh +++ b/scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh @@ -40,6 +40,7 @@ echo "$BUILD_NUMBER,$TIMESTAMP,$KERNEL_COMMIT_ID,$LTTNG_MODULES_COMMIT_ID,$LTTNG # Copy the result files for each benchmark and metadata on storage server $SCP_COMMAND ./processed_results_close.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/close.csv" +$SCP_COMMAND ./processed_results_ioctl.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/ioctl.csv" $SCP_COMMAND ./processed_results_open_efault.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/open-efault.csv" $SCP_COMMAND ./processed_results_open_enoent.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/open-enoent.csv" $SCP_COMMAND ./processed_results_dup_close.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/dup-close.csv"