2 format: Lava-Test Test Definition 1.0
3 name: lttng-destructive-tests
4 description: "Run root destructive test suite"
6 JENKINS_BUILD_ID: "invalid_jenkins_build_id"
7 LTTNG_VERSION_STRING: "invalid_version_string"
11 - git clone https://github.com/lttng/lttng-ci ci
12 - export TMPDIR="/tmp"
13 - systemctl stop systemd-timesyncd.service
15 - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
17 - source /root/lttngvenv/activate
18 - pushd /root/lttngvenv/src/lttng-tools
19 - lava-test-case build-test-suite --shell "make"
20 - export LTTNG_ENABLE_DESTRUCTIVE_TESTS="will-break-my-system"
22 #Need to check if the file is present for branches where the testcase was not backported
23 - 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"
25 - systemctl start systemd-timesyncd.service
26 - tar czf coredump.tar.gz coredump
27 - ./ci/lava/upload_artifact.sh coredump.tar.gz "results/${JENKINS_BUILD_ID}/coredump.tar.gz"