summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/lttng/lttng-tools/runtest-2.4.0.patch
blob: 958bce48e0b03875ef6cacbbcdfce73c018bb0cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/Makefile.am b/Makefile.am
index 584f59b..c2bcabd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,3 +12,9 @@ dist_doc_DATA = LICENSE \
 dist_noinst_DATA = CodingStyle
 
 EXTRA_DIST = extras/lttng-bash_completion gpl-2.0.txt lgpl-2.1.txt
+
+install-ptest:
+	cp -r $(srcdir)/tests $(DESTDIR)
+	for m in $$(find $(DESTDIR)/tests -name Makefile); do \
+          sed -i -e 's|^Makefile:|_Makefile:|' $$m; \
+        done
diff --git a/tests/run.sh b/tests/run.sh
index c6c50fd..6455359 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -19,4 +19,7 @@
 
 [ -z "$1" ] && echo "Error: No testlist. Please specify a testlist to run." && exit 1
 
-prove --merge --exec '' - < $1
+prove --merge -v --exec '' - < $1 | sed \
+  -e 's|^ok \(.*\)|PASS: \1|' \
+  -e 's|^not ok \(.*\)|FAIL: \1|' \
+  | egrep -h 'PASS|FAIL'