X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lava%2Fsystem-tests%2Fdestructive-tests.yml;h=b1b4f27e7fb98f455a7a0f53c8d96c6bbb7620cd;hb=2fad6b3dfbd16e0ae64fdc25ad35df7bdb2f6ff7;hp=32150e0f87a247c3277b821025396c659f25f8cf;hpb=c9cebb77751fe71d32a0d34b29ab3cc6dc1626bc;p=lttng-ci.git diff --git a/lava/system-tests/destructive-tests.yml b/lava/system-tests/destructive-tests.yml index 32150e0..b1b4f27 100644 --- a/lava/system-tests/destructive-tests.yml +++ b/lava/system-tests/destructive-tests.yml @@ -2,23 +2,26 @@ metadata: format: Lava-Test Test Definition 1.0 name: lttng-destructive-tests description: "Run root destructive test suite" -install: +params: + JENKINS_BUILD_ID: "invalid_jenkins_build_id" + LTTNG_VERSION_STRING: "invalid_version_string" +run: steps: + - apt install -y curl + - git clone "${CI_REPO}" --branch="${CI_BRANCH}" ci - 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: + - ulimit -c unlimited - source /root/lttngvenv/activate - - cd /root/lttngvenv/src/lttng-tools + - pushd /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 + - 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" + - popd + - systemctl start systemd-timesyncd.service - tar czf coredump.tar.gz coredump - - lava-test-case-attach run-tests coredump.tar.gz + - ./ci/lava/upload_artifact.sh coredump.tar.gz "results/${JENKINS_BUILD_ID}/coredump.tar.gz"