Lava: Add root destructive tests to kvm test runs
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 1 Dec 2016 21:17:44 +0000 (16:17 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Sat, 10 Dec 2016 23:56:42 +0000 (18:56 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
lava/baremetal-tests/destructive-tests.yml [new file with mode: 0644]
scripts/lttng-baremetal-tests/lava-submit.py

diff --git a/lava/baremetal-tests/destructive-tests.yml b/lava/baremetal-tests/destructive-tests.yml
new file mode 100644 (file)
index 0000000..fdf4d72
--- /dev/null
@@ -0,0 +1,24 @@
+metadata:
+        format: Lava-Test Test Definition 1.0
+        name: lttng-destructive-tests
+        description: "Run root destructive test suite"
+install:
+        steps:
+                - export TMPDIR="/tmp"
+                - cd
+                - systemctl stop systemd-timesyncd.service
+                - 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 /root/lttngvenv/src/lttng-tools
+                - lava-test-case build-test-suite --shell "make"
+                - export LTTNG_ENABLE_DESTRUCTIVE_TESTS="will-break-my-system"
+                - cd tests
+                #Need to check if the file is present for branches where the testcase was not backported
+                - lava-test-case run-tests --shell "if [ -e root_destructive_tests ]; then prove --verbose --merge --exec '' - < root_destructive_tests; else echo 'root_destructive_tests not found'; fi"
+                - cd
+                - tar czf coredump.tar.gz coredump
+                - lava-test-case-attach run-benchmarks coredump.tar.gz
index b4407330cac9581f3718e970d95e93eea5b379b2..4e67b4b9a8beb0111fe69a13a92211d6f0916103 100644 (file)
@@ -198,6 +198,11 @@ def get_kvm_tests_cmd():
                     'git-repo': 'https://github.com/lttng/lttng-ci.git',
                     'revision': 'master',
                     'testdef': 'lava/baremetal-tests/kernel-tests.yml'
+                },
+                {
+                    'git-repo': 'https://github.com/lttng/lttng-ci.git',
+                    'revision': 'master',
+                    'testdef': 'lava/baremetal-tests/destructive-tests.yml'
                 }
                 ],
             'timeout': 18000
This page took 0.023603 seconds and 4 git commands to generate.