summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/ptest-runner
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
commit972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch)
tree97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-support/ptest-runner
downloadpoky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-support/ptest-runner')
-rw-r--r--meta/recipes-support/ptest-runner/files/ptest-runner27
-rw-r--r--meta/recipes-support/ptest-runner/ptest-runner_1.0.bb22
2 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-support/ptest-runner/files/ptest-runner b/meta/recipes-support/ptest-runner/files/ptest-runner
new file mode 100644
index 0000000000..c618f1148d
--- /dev/null
+++ b/meta/recipes-support/ptest-runner/files/ptest-runner
@@ -0,0 +1,27 @@
1#!/bin/sh
2ANYFAILED=no
3echo "START: $0"
4
5for libdir in /usr/lib*
6do
7
8 [ ! -d "$libdir" ] && continue
9
10 for x in `ls -d $libdir/*/ptest 2>/dev/null`
11 do
12 [ ! -f $x/run-ptest ] && continue
13 [ -h `dirname $x` ] && continue
14
15 date "+%Y-%m-%dT%H:%M"
16 echo "BEGIN: $x"
17 cd "$x"
18 ./run-ptest || ANYFAILED=yes
19 echo "END: $x"
20 date "+%Y-%m-%dT%H:%M"
21 done
22done
23echo "STOP: $0"
24if [ "$ANYFAILED" = "yes" ]; then
25 exit 1
26fi
27exit 0
diff --git a/meta/recipes-support/ptest-runner/ptest-runner_1.0.bb b/meta/recipes-support/ptest-runner/ptest-runner_1.0.bb
new file mode 100644
index 0000000000..7443811d8c
--- /dev/null
+++ b/meta/recipes-support/ptest-runner/ptest-runner_1.0.bb
@@ -0,0 +1,22 @@
1SUMMARY = "A simple shell script to run all installed ptests"
2DESCRIPTION = "The ptest-runner package installs a ptest-runner \
3shell script which loops through all installed ptest test suites and \
4runs them in sequence."
5HOMEPAGE = "https://wiki.yoctoproject.org/wiki/Ptest"
6SRC_URI += "file://ptest-runner"
7
8LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
10 file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
11
12INHIBIT_DEFAULT_DEPS = "1"
13
14do_install () {
15 mkdir -p ${D}${bindir}
16 install -m 0755 ${WORKDIR}/ptest-runner ${D}${bindir}
17}
18
19do_patch[noexec] = "1"
20do_configure[noexec] = "1"
21do_compile[noexec] = "1"
22do_build[noexec] = "1"