summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/files
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2019-02-28 14:51:08 +0100
committerLaurent Bonnans <laurent.bonnans@here.com>2019-03-12 11:35:37 +0100
commit81143ca5802916a5cd3a395ff36e00f8909359bc (patch)
tree0ef377abc5e3cf45d0cd9a550afecc9632ffadd2 /recipes-sota/aktualizr/files
parent72ba172d53da21918c10f78a4386dff17f5df92d (diff)
downloadmeta-updater-81143ca5802916a5cd3a395ff36e00f8909359bc.tar.gz
Add working ptest suite for aktualizr
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Diffstat (limited to 'recipes-sota/aktualizr/files')
-rwxr-xr-xrecipes-sota/aktualizr/files/run-ptest16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-sota/aktualizr/files/run-ptest b/recipes-sota/aktualizr/files/run-ptest
new file mode 100755
index 0000000..e5f0d56
--- /dev/null
+++ b/recipes-sota/aktualizr/files/run-ptest
@@ -0,0 +1,16 @@
1#!/bin/sh
2
3set -e
4
5filter_logs() {
6 awk '/^.*Test[[:space:]]*#[[:digit:]]+:/ {
7 a = gensub(/^.*Test[[:space:]]*#[[:digit:]]+:[[:space:]]*([^[:space:]]+).*(Passed|Skipped|Not Run|Failed|Timeout|Exception)[[:space:]:].*$/, "\\2: \\1", "g");
8 a = gensub(/^Passed/, "PASS", "g", a);
9 a = gensub(/^(Skipped|Disabled)/, "SKIP", "g", a);
10 a = gensub(/^(Not Run|Failed|Timeout|Exception)/, "FAIL", "g", a);
11 print a;
12 }'
13}
14
15cd build
16ctest -j 8 -O /tmp/aktualizr-ptest.log --output-on-failure -LE 'noptest' 2> /dev/null | filter_logs