diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-support/ptest-runner | |
download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-support/ptest-runner')
-rw-r--r-- | meta/recipes-support/ptest-runner/files/ptest-runner | 23 | ||||
-rw-r--r-- | meta/recipes-support/ptest-runner/ptest-runner_1.0.bb | 22 |
2 files changed, 45 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..f625f9833a --- /dev/null +++ b/meta/recipes-support/ptest-runner/files/ptest-runner | |||
@@ -0,0 +1,23 @@ | |||
1 | #!/bin/sh | ||
2 | |||
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 | cat | ||
19 | echo "END: $x" | ||
20 | date "+%Y-%m-%dT%H:%M" | ||
21 | done | ||
22 | done | ||
23 | echo "STOP: $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" | ||