From 63e25c3e1b70e8f6c81f7f29a096ae1677ae8f6e Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Thu, 10 Nov 2016 12:15:43 -0500 Subject: [PATCH] Add Lava tests and benchmark definitions --- lava/baremetal-tests/failing-close.yml | 33 ++++++++++++++++++++ lava/baremetal-tests/failing-open-efault.yml | 33 ++++++++++++++++++++ lava/baremetal-tests/failing-open-enoent.yml | 33 ++++++++++++++++++++ lava/baremetal-tests/kernel-tests.yml | 21 +++++++++++++ 4 files changed, 120 insertions(+) create mode 100644 lava/baremetal-tests/failing-close.yml create mode 100644 lava/baremetal-tests/failing-open-efault.yml create mode 100644 lava/baremetal-tests/failing-open-enoent.yml create mode 100644 lava/baremetal-tests/kernel-tests.yml diff --git a/lava/baremetal-tests/failing-close.yml b/lava/baremetal-tests/failing-close.yml new file mode 100644 index 0000000..ff872cc --- /dev/null +++ b/lava/baremetal-tests/failing-close.yml @@ -0,0 +1,33 @@ +metadata: + format: Lava-Test Test Definition 1.0 + name: benchmark-syscall-failing-close + description: "Perform syscall tracing benchmark of failing close" +params: + JENKINS_JOBNAME: "default jobname" + +install: + git-repos: + - url: https://github.com/frdeso/syscall-bench-it.git + destination: benchmarks + branch: master + - url: https://github.com/lttng/lttng-ci + destination: ci + branch: master + 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 /tmp/virtenv/activate + - cd benchmarks + - lava-test-case build-benchmarks --shell "make" + - lava-test-case run-benchmarks --shell "./run.sh failing-close" + - lava-test-case-attach run-benchmarks "./results.csv" + - cd - + - cd ci + - python3 ./scripts/lttng-baremetal-tests/parse-results.py ../benchmarks/results.csv + - cd - + - tar czf coredump.tar.gz coredump + - lava-test-case-attach run-benchmarks coredump.tar.gz diff --git a/lava/baremetal-tests/failing-open-efault.yml b/lava/baremetal-tests/failing-open-efault.yml new file mode 100644 index 0000000..a05b1fd --- /dev/null +++ b/lava/baremetal-tests/failing-open-efault.yml @@ -0,0 +1,33 @@ +metadata: + format: Lava-Test Test Definition 1.0 + name: benchmark-syscall-failing-open-efault + description: "Perform syscall tracing benchmark of failing open-efault" +params: + JENKINS_JOBNAME: "default jobname" + +install: + git-repos: + - url: https://github.com/frdeso/syscall-bench-it.git + destination: benchmarks + branch: master + - url: https://github.com/lttng/lttng-ci + destination: ci + branch: master + 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 /tmp/virtenv/activate + - cd benchmarks + - lava-test-case build-benchmarks --shell "make" + - lava-test-case run-benchmarks --shell "./run.sh failing-open-efault" + - lava-test-case-attach run-benchmarks "./results.csv" + - cd - + - cd ci + - python3 ./scripts/lttng-baremetal-tests/parse-results.py ../benchmarks/results.csv + - cd - + - tar czf coredump.tar.gz coredump + - lava-test-case-attach run-benchmarks coredump.tar.gz diff --git a/lava/baremetal-tests/failing-open-enoent.yml b/lava/baremetal-tests/failing-open-enoent.yml new file mode 100644 index 0000000..980c72e --- /dev/null +++ b/lava/baremetal-tests/failing-open-enoent.yml @@ -0,0 +1,33 @@ +metadata: + format: Lava-Test Test Definition 1.0 + name: benchmark-syscall-failing-open-enoent + description: "Perform syscall tracing benchmark of failing open-enoent" +params: + JENKINS_JOBNAME: "default jobname" + +install: + git-repos: + - url: https://github.com/frdeso/syscall-bench-it.git + destination: benchmarks + branch: master + - url: https://github.com/lttng/lttng-ci + destination: ci + branch: master + 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 /tmp/virtenv/activate + - cd benchmarks + - lava-test-case build-benchmarks --shell "make" + - lava-test-case run-benchmarks --shell "./run.sh failing-open-enoent" + - lava-test-case-attach run-benchmarks "./results.csv" + - cd - + - cd ci + - python3 ./scripts/lttng-baremetal-tests/parse-results.py ../benchmarks/results.csv + - cd - + - tar czf coredump.tar.gz coredump + - lava-test-case-attach run-benchmarks coredump.tar.gz diff --git a/lava/baremetal-tests/kernel-tests.yml b/lava/baremetal-tests/kernel-tests.yml new file mode 100644 index 0000000..a079a67 --- /dev/null +++ b/lava/baremetal-tests/kernel-tests.yml @@ -0,0 +1,21 @@ +metadata: + format: Lava-Test Test Definition 1.0 + name: lttng-kernel-test + description: "Run kernel test suite" +install: + steps: + - export TMPDIR="/tmp" + - cd + - ulimit -c unlimited + - mkdir -p coredump + - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern +run: + steps: + - source /tmp/virtenv/activate + - cd /tmp/virtenv/src/lttng-tools + - lava-test-case build-test-suite --shell "make" + - cd tests + - lava-test-case run-tests --shell "./run.sh root_regression" + - cd + - tar czf coredump.tar.gz coredump + - lava-test-case-attach run-benchmarks coredump.tar.gz -- 2.34.1