| 1 | metadata: |
| 2 | format: Lava-Test Test Definition 1.0 |
| 3 | name: lttng-kernel-test |
| 4 | description: "Run kernel 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 "${CI_REPO}" --branch="${CI_BRANCH}" ci |
| 12 | - export TMPDIR="/tmp" |
| 13 | - mkdir -p /tmp/coredump |
| 14 | - echo "/tmp/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern |
| 15 | - ulimit -c unlimited |
| 16 | - source /root/lttngvenv/activate |
| 17 | - pushd /root/lttngvenv/src/lttng-tools |
| 18 | - lava-test-case build-test-suite --shell "make" |
| 19 | - systemctl stop systemd-timesyncd.service |
| 20 | - lava-test-case run-tests --shell "$(dirs -l +1)/ci/scripts/system-tests/run-test-suites.sh ${LTTNG_VERSION_STRING}" |
| 21 | - systemctl start systemd-timesyncd.service |
| 22 | - tar czf coredump.tar.gz /tmp/coredump |
| 23 | - ./ci/lava/upload_artifact.sh coredump.tar.gz coredump.tar.gz "results/${JENKINS_BUILD_ID}/${TESTRUN_ID}-coredump.tar.gz" |