jjb: Add new benchmark testcase using lttng-test-filter module
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 14 Mar 2017 20:08:58 +0000 (16:08 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 16 Mar 2017 13:49:00 +0000 (09:49 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
lava/baremetal-tests/lttng-test-filter.yml [new file with mode: 0644]
scripts/lttng-baremetal-tests/lava-submit.py
scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh

diff --git a/lava/baremetal-tests/lttng-test-filter.yml b/lava/baremetal-tests/lttng-test-filter.yml
new file mode 100644 (file)
index 0000000..8775279
--- /dev/null
@@ -0,0 +1,39 @@
+metadata:
+        format: Lava-Test Test Definition 1.0
+        name: benchmark-lttng-test-filter
+        description: "Perform syscall tracing benchmark of the lttng-test-filter"
+params:
+    JENKINS_JOBNAME: "default jobname"
+
+install:
+        deps:
+                - python3-pandas
+                - python3-numpy
+        git-repos:
+                - url: https://github.com/frdeso/syscall-bench-it.git
+                  destination: benchmarks
+                  branch: master
+                - url: https://github.com/lttng/lttng-ci
+                  destination: ci
+                  branch: master
+        steps:
+                - export TMPDIR="/tmp"
+                - 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 benchmarks
+                - modprobe lttng-test
+                - lava-test-case build-benchmarks --shell "make"
+                - lava-test-case run-benchmarks --shell "./run.sh lttng-test-filter lttng_test_filter_event"
+                - lava-test-case-attach run-benchmarks "./results.csv"
+                - cd -
+                - cd ci
+                - python3 ./scripts/lttng-baremetal-tests/parse-results.py ../benchmarks/results.csv
+                - mv ./processed_results.csv ../processed_results_lttng_test_filter.csv
+                - cd -
+                - tar czf coredump.tar.gz coredump
+                - lava-test-case-attach run-benchmarks coredump.tar.gz
+                - lava-test-case-attach run-benchmarks "./processed_results_lttng_test_filter.csv"
index 391cda30fc8f83369b07c65df9d649bb71b93d62..34ad7118563298c098527b7a54a75f1f165d90f6 100644 (file)
@@ -72,7 +72,8 @@ def fetch_benchmark_results(server, job):
     content = get_job_bundle_content(server, job)
     testcases = ['processed_results_close.csv',
             'processed_results_open_efault.csv',
-            'processed_results_dup_close.csv']
+            'processed_results_dup_close.csv',
+            'processed_results_lttng_test_filter.csv']
 
     # The result bundle is a large JSON containing the results of every testcase
     # of the LAVA job as well as the files that were attached during the run.
@@ -80,7 +81,7 @@ def fetch_benchmark_results(server, job):
     # benchmark results produced during the run.
     for run in content['test_runs']:
         # We only care of the benchmark testcases
-        if 'benchmark-syscall-' in run['test_id']:
+        if 'benchmark-' in run['test_id']:
             if 'test_results' in run:
                 for res in run['test_results']:
                     if 'attachments' in res:
@@ -198,6 +199,11 @@ def get_baremetal_benchmarks_cmd():
                     'git-repo': 'https://github.com/lttng/lttng-ci.git',
                     'revision': 'master',
                     'testdef': 'lava/baremetal-tests/success-dup-close.yml'
+                },
+                {
+                    'git-repo': 'https://github.com/lttng/lttng-ci.git',
+                    'revision': 'master',
+                    'testdef': 'lava/baremetal-tests/lttng-test-filter.yml'
                 }
                 ],
             'timeout': 18000
index b5c633cd41a027aa626b40afc21b70f527209894..9c64afd06b0dcc531d5cd2c5680b1e72d21a676f 100644 (file)
@@ -42,4 +42,5 @@ echo "$BUILD_NUMBER,$TIMESTAMP,$KERNEL_COMMIT_ID,$LTTNG_MODULES_COMMIT_ID,$LTTNG
 $SCP_COMMAND ./processed_results_close.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/close.csv"
 $SCP_COMMAND ./processed_results_open_efault.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/open-efault.csv"
 $SCP_COMMAND ./processed_results_dup_close.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/dup-close.csv"
+$SCP_COMMAND ./processed_results_lttng_test_filter.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/lttng-test-filter.csv"
 $SCP_COMMAND ./metadata.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/metadata.csv"
This page took 0.02432 seconds and 4 git commands to generate.