description: "Run perf regression test suite"
params:
JENKINS_BUILD_ID: "invalid_jenkins_build_id"
-install:
- deps:
- - libpfm4-dev
- - curl
- git-repos:
- - url: https://github.com/lttng/lttng-ci
- destination: ci
- branch: master
+ LTTNG_VERSION_STRING: "invalid_version_string"
+run:
steps:
+ - git clone "${CI_REPO}" --branch="${CI_BRANCH}" ci
- export TMPDIR="/tmp"
+ - 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
- pushd /root/lttngvenv/src/lttng-tools
- lava-test-case build-test-suite --shell "make"
- 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 perf_regression ]; then prove --verbose --merge --exec '' - < perf_regression; else echo 'perf_regression not found'; fi"
+ - lava-test-case run-tests --shell "if [ -e perf_regression ]; then prove --nocolor --verbose --merge --exec '' - < perf_regression; else echo 'perf_regression not found'; fi"
- popd
- - 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"