Lava: install step is deprecated in lava 2
[lttng-ci.git] / lava / system-tests / destructive-tests.yml
CommitLineData
ee02050f
FD
1metadata:
2 format: Lava-Test Test Definition 1.0
3 name: lttng-destructive-tests
4 description: "Run root destructive test suite"
339eab11
JR
5params:
6 JENKINS_BUILD_ID: "invalid_jenkins_build_id"
7run:
ee02050f 8 steps:
339eab11
JR
9 - apt install -y curl
10 - git clone https://github.com/lttng/lttng-ci ci
ee02050f 11 - export TMPDIR="/tmp"
ee02050f 12 - systemctl stop systemd-timesyncd.service
ee02050f
FD
13 - mkdir -p coredump
14 - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
3ee362e6 15 - ulimit -c unlimited
ee02050f 16 - source /root/lttngvenv/activate
6b35e57c 17 - pushd /root/lttngvenv/src/lttng-tools
ee02050f
FD
18 - lava-test-case build-test-suite --shell "make"
19 - export LTTNG_ENABLE_DESTRUCTIVE_TESTS="will-break-my-system"
20 - cd tests
21 #Need to check if the file is present for branches where the testcase was not backported
cc2ddcb1 22 - 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"
6b35e57c 23 - popd
e942f820 24 - systemctl start systemd-timesyncd.service
ee02050f 25 - tar czf coredump.tar.gz coredump
6b35e57c 26 - ./ci/lava/upload_artifact.sh coredump.tar.gz "results/${JENKINS_BUILD_ID}/coredump.tar.gz"
This page took 0.024754 seconds and 4 git commands to generate.