description: "Run kernel test suite"
params:
JENKINS_BUILD_ID: "invalid_jenkins_build_id"
-
-install:
- deps:
- - curl
- git-repos:
- - url: https://github.com/lttng/lttng-ci
- destination: ci
- branch: master
+ LTTNG_VERSION_STRING: "invalid_version_string"
+run:
steps:
+ - apt install -y curl
+ - git clone "${CI_REPO}" --branch="${CI_BRANCH}" ci
- export TMPDIR="/tmp"
- - 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
- pushd /root/lttngvenv/src/lttng-tools
- lava-test-case build-test-suite --shell "make"
- - cd tests
- - lava-test-case run-tests --shell "prove --nocolor --verbose --merge --exec '' - < root_regression"
- - popd
+ - lava-test-case run-tests --shell "$(dirs -l +1)/ci/scripts/system-tests/run-test-suites.sh ${LTTNG_VERSION_STRING}"
- tar czf coredump.tar.gz coredump
- ./ci/lava/upload_artifact.sh coredump.tar.gz coredump.tar.gz "results/${JENKINS_BUILD_ID}/${TESTRUN_ID}-coredump.tar.gz"