summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/conf/distro/include/ptest-packagelists.inc1
-rw-r--r--meta/recipes-extended/bc/bc/run-ptest9
-rw-r--r--meta/recipes-extended/bc/bc_1.07.1.bb9
3 files changed, 17 insertions, 2 deletions
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index 56088e4e66..32b0e5297a 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -8,6 +8,7 @@ PTESTS_FAST = "\
8 apr-ptest \ 8 apr-ptest \
9 apr-util-ptest \ 9 apr-util-ptest \
10 attr-ptest \ 10 attr-ptest \
11 bc-ptest \
11 bluez5-ptest \ 12 bluez5-ptest \
12 bzip2-ptest \ 13 bzip2-ptest \
13 diffstat-ptest \ 14 diffstat-ptest \
diff --git a/meta/recipes-extended/bc/bc/run-ptest b/meta/recipes-extended/bc/bc/run-ptest
new file mode 100644
index 0000000000..66a1b9d708
--- /dev/null
+++ b/meta/recipes-extended/bc/bc/run-ptest
@@ -0,0 +1,9 @@
1#! /bin/sh
2
3for TEST in *.b; do
4 if bc -l $TEST </dev/null; then
5 echo “PASS: bc/$TEST”
6 else
7 echo “FAIL: bc/$TEST”
8 fi
9done
diff --git a/meta/recipes-extended/bc/bc_1.07.1.bb b/meta/recipes-extended/bc/bc_1.07.1.bb
index 1bec76bb2a..178588f11b 100644
--- a/meta/recipes-extended/bc/bc_1.07.1.bb
+++ b/meta/recipes-extended/bc/bc_1.07.1.bb
@@ -15,11 +15,12 @@ DEPENDS = "flex-native"
15SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ 15SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \
16 file://no-gen-libmath.patch \ 16 file://no-gen-libmath.patch \
17 file://libmath.h \ 17 file://libmath.h \
18 file://0001-dc-fix-exit-code-of-q-command.patch" 18 file://0001-dc-fix-exit-code-of-q-command.patch \
19 file://run-ptest"
19SRC_URI[md5sum] = "cda93857418655ea43590736fc3ca9fc" 20SRC_URI[md5sum] = "cda93857418655ea43590736fc3ca9fc"
20SRC_URI[sha256sum] = "62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a" 21SRC_URI[sha256sum] = "62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a"
21 22
22inherit autotools texinfo update-alternatives 23inherit autotools texinfo update-alternatives ptest
23 24
24PACKAGECONFIG ??= "readline" 25PACKAGECONFIG ??= "readline"
25PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" 26PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline"
@@ -29,6 +30,10 @@ do_compile:prepend() {
29 cp -f ${WORKDIR}/libmath.h ${B}/bc/libmath.h 30 cp -f ${WORKDIR}/libmath.h ${B}/bc/libmath.h
30} 31}
31 32
33do_install_ptest() {
34 install ${S}/Test/*.b ${D}${PTEST_PATH}
35}
36
32ALTERNATIVE:${PN} = "bc dc" 37ALTERNATIVE:${PN} = "bc dc"
33ALTERNATIVE_PRIORITY = "100" 38ALTERNATIVE_PRIORITY = "100"
34 39