summaryrefslogtreecommitdiff
path: root/yocto-poky/meta/recipes-support/ptest-runner
diff options
context:
space:
mode:
Diffstat (limited to 'yocto-poky/meta/recipes-support/ptest-runner')
-rw-r--r--yocto-poky/meta/recipes-support/ptest-runner/files/ptest-runner27
-rw-r--r--yocto-poky/meta/recipes-support/ptest-runner/ptest-runner_1.0.bb24
2 files changed, 51 insertions, 0 deletions
diff --git a/yocto-poky/meta/recipes-support/ptest-runner/files/ptest-runner b/yocto-poky/meta/recipes-support/ptest-runner/files/ptest-runner
new file mode 100644
index 000000000..c618f1148
--- /dev/null
+++ b/yocto-poky/meta/recipes-support/ptest-runner/files/ptest-runner
@@ -0,0 +1,27 @@
+#!/bin/sh
+ANYFAILED=no
+echo "START: $0"
+
+for libdir in /usr/lib*
+do
+
+ [ ! -d "$libdir" ] && continue
+
+ for x in `ls -d $libdir/*/ptest 2>/dev/null`
+ do
+ [ ! -f $x/run-ptest ] && continue
+ [ -h `dirname $x` ] && continue
+
+ date "+%Y-%m-%dT%H:%M"
+ echo "BEGIN: $x"
+ cd "$x"
+ ./run-ptest || ANYFAILED=yes
+ echo "END: $x"
+ date "+%Y-%m-%dT%H:%M"
+ done
+done
+echo "STOP: $0"
+if [ "$ANYFAILED" = "yes" ]; then
+ exit 1
+fi
+exit 0
diff --git a/yocto-poky/meta/recipes-support/ptest-runner/ptest-runner_1.0.bb b/yocto-poky/meta/recipes-support/ptest-runner/ptest-runner_1.0.bb
new file mode 100644
index 000000000..bc1b0a4d4
--- /dev/null
+++ b/yocto-poky/meta/recipes-support/ptest-runner/ptest-runner_1.0.bb
@@ -0,0 +1,24 @@
+SUMMARY = "A simple shell script to run all installed ptests"
+DESCRIPTION = "The ptest-runner package installs a ptest-runner \
+shell script which loops through all installed ptest test suites and \
+runs them in sequence."
+HOMEPAGE = "https://wiki.yoctoproject.org/wiki/Ptest"
+SRC_URI += "file://ptest-runner"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
+ file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+INHIBIT_DEFAULT_DEPS = "1"
+
+S = "${WORKDIR}"
+
+do_install () {
+ mkdir -p ${D}${bindir}
+ install -m 0755 ${WORKDIR}/ptest-runner ${D}${bindir}
+}
+
+do_patch[noexec] = "1"
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+do_build[noexec] = "1"