2 format: Lava-Test Test Definition 1.0
3 name: lttng-destructive-tests
4 description: "Run root destructive test suite"
9 - url: https://github.com/lttng/lttng-ci
13 - export TMPDIR="/tmp"
14 - systemctl stop systemd-timesyncd.service
17 - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
19 JENKINS_BUILD_ID: "invalid_jenkins_build_id"
22 - source /root/lttngvenv/activate
23 - pushd /root/lttngvenv/src/lttng-tools
24 - lava-test-case build-test-suite --shell "make"
25 - export LTTNG_ENABLE_DESTRUCTIVE_TESTS="will-break-my-system"
27 #Need to check if the file is present for branches where the testcase was not backported
28 - lava-test-case run-tests --shell "if [ -e root_destructive_tests ]; then prove --nocolor --verbose --merge --exec '' - < root_destructive_tests; else echo 'root_destructive_tests not found'; fi"
30 - systemctl start systemd-timesyncd.service
31 - tar czf coredump.tar.gz coredump
32 - ./ci/lava/upload_artifact.sh coredump.tar.gz "results/${JENKINS_BUILD_ID}/coredump.tar.gz"