Lava: Add perf regression test suite to baremetal runs
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 24 Nov 2016 17:04:22 +0000 (12:04 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 1 Dec 2016 21:38:30 +0000 (16:38 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
lava/baremetal-tests/perf-tests.yml [new file with mode: 0644]
scripts/lttng-baremetal-tests/lava-submit.py

diff --git a/lava/baremetal-tests/perf-tests.yml b/lava/baremetal-tests/perf-tests.yml
new file mode 100644 (file)
index 0000000..b289711
--- /dev/null
@@ -0,0 +1,24 @@
+metadata:
+        format: Lava-Test Test Definition 1.0
+        name: lttng-perf-tests
+        description: "Run perf regression test suite"
+install:
+        deps:
+                - libpfm4-dev
+        steps:
+                - export TMPDIR="/tmp"
+                - cd
+                - ulimit -c unlimited
+                - mkdir -p coredump
+                - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
+run:
+        steps:
+                - source /root/lttngvenv/activate
+                - cd /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"
+                - cd
+                - tar czf coredump.tar.gz coredump
+                - lava-test-case-attach run-benchmarks coredump.tar.gz
index 7eeb36707469a0eed10f2136aa8a5b63f42ba425..f9c7f0614be02e3d1dc5648645369d996c0f7faa 100644 (file)
@@ -159,6 +159,11 @@ def get_benchmarks_cmd():
                     'git-repo': 'https://github.com/lttng/lttng-ci.git',
                     'revision': 'master',
                     'testdef': 'lava/baremetal-tests/failing-open-enoent.yml'
+                },
+                {
+                    'git-repo': 'https://github.com/lttng/lttng-ci.git',
+                    'revision': 'master',
+                    'testdef': 'lava/baremetal-tests/perf-tests.yml'
                 }
                 ],
             'timeout': 18000
This page took 0.023765 seconds and 4 git commands to generate.