format: Lava-Test Test Definition 1.0
name: lttng-kernel-test
description: "Run kernel test suite"
-install:
+params:
+ JENKINS_BUILD_ID: "invalid_jenkins_build_id"
+ LTTNG_VERSION_STRING: "invalid_version_string"
+run:
steps:
+ - git clone "${CI_REPO}" --branch="${CI_BRANCH}" ci
- export TMPDIR="/tmp"
- - cd
+ - mkdir -p /tmp/coredump
+ - echo "/tmp/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
- ulimit -c unlimited
- - mkdir -p coredump
- - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
-run:
- steps:
+ - source /root/python-venv/bin/activate
- source /root/lttngvenv/activate
- - cd /root/lttngvenv/src/lttng-tools
+ - pushd /root/lttngvenv/src/lttng-tools
- lava-test-case build-test-suite --shell "make"
- - cd tests
- - lava-test-case run-tests --shell "prove --verbose --merge --exec '' - < root_regression"
- - cd
- - tar czf coredump.tar.gz coredump
- - lava-test-case-attach run-tests coredump.tar.gz
+ - lava-test-case run-tests --shell "$(dirs -l +1)/ci/scripts/system-tests/run-test-suites.sh ${LTTNG_VERSION_STRING}"
+ - popd