diff options
Diffstat (limited to 'meta/recipes-support/ptest-runner')
| -rw-r--r-- | meta/recipes-support/ptest-runner/files/ptest-runner | 16 | ||||
| -rw-r--r-- | meta/recipes-support/ptest-runner/ptest-runner_1.0.bb | 17 |
2 files changed, 33 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..4f3c7ce730 --- /dev/null +++ b/meta/recipes-support/ptest-runner/files/ptest-runner | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | echo "START: $0" | ||
| 4 | cd /usr/lib | ||
| 5 | for x in * | ||
| 6 | do | ||
| 7 | if [ -x "/usr/lib/$x/ptest/run-ptest" ]; then | ||
| 8 | date "+%Y-%m-%dT%H:%M" | ||
| 9 | echo "BEGIN: $x" | ||
| 10 | cd /usr/lib/$x/ptest | ||
| 11 | ./run-ptest | ||
| 12 | echo "END: $x" | ||
| 13 | date "+%Y-%m-%dT%H:%M" | ||
| 14 | fi | ||
| 15 | done | ||
| 16 | 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..6b866d4de2 --- /dev/null +++ b/meta/recipes-support/ptest-runner/ptest-runner_1.0.bb | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | SRC_URI += "file://ptest-runner" | ||
| 2 | |||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ | ||
| 5 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
| 6 | |||
| 7 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 8 | |||
| 9 | do_install () { | ||
| 10 | mkdir -p ${D}${bindir} | ||
| 11 | install -m 0755 ${WORKDIR}/ptest-runner ${D}${bindir} | ||
| 12 | } | ||
| 13 | |||
| 14 | do_patch[noexec] = "1" | ||
| 15 | do_configure[noexec] = "1" | ||
| 16 | do_compile[noexec] = "1" | ||
| 17 | do_build[noexec] = "1" | ||
