| 1 | metadata: |
| 2 | format: Lava-Test Test Definition 1.0 |
| 3 | name: benchmark-syscall-failing-close |
| 4 | description: "Perform syscall tracing benchmark of failing close" |
| 5 | params: |
| 6 | JENKINS_JOBNAME: "default jobname" |
| 7 | |
| 8 | install: |
| 9 | deps: |
| 10 | - python3-pandas |
| 11 | - python3-numpy |
| 12 | git-repos: |
| 13 | - url: https://github.com/frdeso/syscall-bench-it.git |
| 14 | destination: benchmarks |
| 15 | branch: master |
| 16 | - url: https://github.com/lttng/lttng-ci |
| 17 | destination: ci |
| 18 | branch: master |
| 19 | steps: |
| 20 | - export TMPDIR="/tmp" |
| 21 | - ulimit -c unlimited |
| 22 | - mkdir -p coredump |
| 23 | - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern |
| 24 | run: |
| 25 | steps: |
| 26 | - source /root/lttngvenv/activate |
| 27 | - cd benchmarks |
| 28 | - lava-test-case build-benchmarks --shell "make" |
| 29 | - lava-test-case run-benchmarks --shell "./run.sh failing-close sys_close" |
| 30 | - lava-test-case-attach run-benchmarks "./results.csv" |
| 31 | - cd - |
| 32 | - cd ci |
| 33 | - python3 ./scripts/lttng-baremetal-tests/parse-results.py ../benchmarks/results.csv |
| 34 | - mv ./processed_results.csv ../processed_results_close.csv |
| 35 | - cd - |
| 36 | - tar czf coredump.tar.gz coredump |
| 37 | - lava-test-case-attach run-benchmarks coredump.tar.gz |
| 38 | - lava-test-case-attach run-benchmarks "./processed_results_close.csv" |