diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-support/ptest-runner | |
download | poky-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-runner | 27 | ||||
-rw-r--r-- | meta/recipes-support/ptest-runner/ptest-runner_1.0.bb | 22 |
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 | ||
2 | ANYFAILED=no | ||
3 | echo "START: $0" | ||
4 | |||
5 | for libdir in /usr/lib* | ||
6 | do | ||
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 | ||
22 | done | ||
23 | echo "STOP: $0" | ||
24 | if [ "$ANYFAILED" = "yes" ]; then | ||
25 | exit 1 | ||
26 | fi | ||
27 | exit 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 @@ | |||
1 | SUMMARY = "A simple shell script to run all installed ptests" | ||
2 | DESCRIPTION = "The ptest-runner package installs a ptest-runner \ | ||
3 | shell script which loops through all installed ptest test suites and \ | ||
4 | runs them in sequence." | ||
5 | HOMEPAGE = "https://wiki.yoctoproject.org/wiki/Ptest" | ||
6 | SRC_URI += "file://ptest-runner" | ||
7 | |||
8 | LICENSE = "MIT" | ||
9 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
10 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
11 | |||
12 | INHIBIT_DEFAULT_DEPS = "1" | ||
13 | |||
14 | do_install () { | ||
15 | mkdir -p ${D}${bindir} | ||
16 | install -m 0755 ${WORKDIR}/ptest-runner ${D}${bindir} | ||
17 | } | ||
18 | |||
19 | do_patch[noexec] = "1" | ||
20 | do_configure[noexec] = "1" | ||
21 | do_compile[noexec] = "1" | ||
22 | do_build[noexec] = "1" | ||