system-tests: refactor to allow easier test suites management across lttng versions
[lttng-ci.git] / lava / system-tests / destructive-tests.yml
1 metadata:
2 format: Lava-Test Test Definition 1.0
3 name: lttng-destructive-tests
4 description: "Run root destructive test suite"
5 params:
6 JENKINS_BUILD_ID: "invalid_jenkins_build_id"
7 LTTNG_VERSION_STRING: "invalid_version_string"
8 run:
9 steps:
10 - apt install -y curl
11 - git clone https://github.com/lttng/lttng-ci ci
12 - export TMPDIR="/tmp"
13 - systemctl stop systemd-timesyncd.service
14 - mkdir -p coredump
15 - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
16 - ulimit -c unlimited
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"
21 - cd tests
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"
24 - popd
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"
This page took 0.054997 seconds and 4 git commands to generate.