diff options
author | Chong Lu <Chong.Lu@windriver.com> | 2013-12-27 15:44:29 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-10 15:16:50 +0000 |
commit | 41d7758f3bdd3011483553c5aa8966965da904ba (patch) | |
tree | 14d88b16967fd19670adeec71bd4e3f56e72a9c1 /meta/recipes-support/beecrypt | |
parent | 2b702032fa00d417bc19316e149192c2ccc9d543 (diff) | |
download | poky-41d7758f3bdd3011483553c5aa8966965da904ba.tar.gz |
beecrypt: add ptest support
Install beecrypt test suite and run it as ptest.
Make all ptest pass.
(From OE-Core rev: f344699eb15933cc7c92b0ed6894ef0869568659)
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/beecrypt')
3 files changed, 52 insertions, 2 deletions
diff --git a/meta/recipes-support/beecrypt/beecrypt/beecrypt-enable-ptest-support.patch b/meta/recipes-support/beecrypt/beecrypt/beecrypt-enable-ptest-support.patch new file mode 100644 index 0000000000..3e5513fce9 --- /dev/null +++ b/meta/recipes-support/beecrypt/beecrypt/beecrypt-enable-ptest-support.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | beecrypt: enable ptest support | ||
2 | |||
3 | Upstream-Status: Inappropriate [embedded specific] | ||
4 | |||
5 | Add install-ptest rules. | ||
6 | |||
7 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> | ||
8 | --- | ||
9 | Makefile.am | 3 +++ | ||
10 | tests/Makefile.am | 3 +++ | ||
11 | 2 files changed, 6 insertions(+) | ||
12 | |||
13 | diff --git a/Makefile.am b/Makefile.am | ||
14 | index b7e7869..5076f59 100644 | ||
15 | --- a/Makefile.am | ||
16 | +++ b/Makefile.am | ||
17 | @@ -73,3 +73,6 @@ DISTCLEANFILES = mpopt.s blowfishopt.s sha1opt.s | ||
18 | |||
19 | bench: | ||
20 | (cd tests && $(MAKE) $(AM_MAKEFLAGS) bench) | ||
21 | + | ||
22 | +install-ptest: | ||
23 | + (cd tests && $(MAKE) $(AM_MAKEFLAGS) check_PROGRAMS) | ||
24 | diff --git a/tests/Makefile.am b/tests/Makefile.am | ||
25 | index 1604e5e..d8db8d8 100644 | ||
26 | --- a/tests/Makefile.am | ||
27 | +++ b/tests/Makefile.am | ||
28 | @@ -101,3 +101,6 @@ bench: benchme benchrsa benchhf benchbc | ||
29 | ./benchbc AES 128 | ||
30 | ./benchbc Blowfish 128 | ||
31 | ./benchbc Blowfish 128 | ||
32 | + | ||
33 | +check_PROGRAMS: | ||
34 | + $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) | ||
35 | -- | ||
36 | 1.8.1.2 | ||
37 | |||
diff --git a/meta/recipes-support/beecrypt/beecrypt/run-ptest b/meta/recipes-support/beecrypt/beecrypt/run-ptest new file mode 100644 index 0000000000..5bc7460be9 --- /dev/null +++ b/meta/recipes-support/beecrypt/beecrypt/run-ptest | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | cd tests | ||
4 | for i in `ls`; do ./$i; if [ $? == 0 ]; then echo "PASS: $i"; \ | ||
5 | else echo "FAIL: $i"; fi; done | ||
diff --git a/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb b/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb index 46834d2149..209b92e653 100644 --- a/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb +++ b/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb | |||
@@ -8,7 +8,10 @@ HOMEPAGE = "http://sourceforge.net/projects/beecrypt" | |||
8 | SRC_URI = "${SOURCEFORGE_MIRROR}/beecrypt/beecrypt-${PV}.tar.gz \ | 8 | SRC_URI = "${SOURCEFORGE_MIRROR}/beecrypt/beecrypt-${PV}.tar.gz \ |
9 | file://disable-icu-check.patch \ | 9 | file://disable-icu-check.patch \ |
10 | file://fix-security.patch \ | 10 | file://fix-security.patch \ |
11 | file://fix-for-gcc-4.7.patch" | 11 | file://fix-for-gcc-4.7.patch \ |
12 | file://run-ptest \ | ||
13 | file://beecrypt-enable-ptest-support.patch \ | ||
14 | " | ||
12 | 15 | ||
13 | SRC_URI[md5sum] = "8441c014170823f2dff97e33df55af1e" | 16 | SRC_URI[md5sum] = "8441c014170823f2dff97e33df55af1e" |
14 | SRC_URI[sha256sum] = "286f1f56080d1a6b1d024003a5fa2158f4ff82cae0c6829d3c476a4b5898c55d" | 17 | SRC_URI[sha256sum] = "286f1f56080d1a6b1d024003a5fa2158f4ff82cae0c6829d3c476a4b5898c55d" |
@@ -20,7 +23,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=9894370afd5dfe7d02b8d14319e729a1 \ | |||
20 | 23 | ||
21 | PR = "r3" | 24 | PR = "r3" |
22 | 25 | ||
23 | inherit autotools multilib_header | 26 | inherit autotools multilib_header ptest |
24 | acpaths="" | 27 | acpaths="" |
25 | 28 | ||
26 | do_install_append() { | 29 | do_install_append() { |
@@ -37,3 +40,8 @@ FILES_${PN}-dev += "${libdir}/${BPN}/*.so ${libdir}/${BPN}/*.la" | |||
37 | FILES_${PN}-staticdev += "${libdir}/${BPN}/*.a" | 40 | FILES_${PN}-staticdev += "${libdir}/${BPN}/*.a" |
38 | 41 | ||
39 | BBCLASSEXTEND = "native nativesdk" | 42 | BBCLASSEXTEND = "native nativesdk" |
43 | |||
44 | do_install_ptest () { | ||
45 | mkdir ${D}${PTEST_PATH}/tests | ||
46 | cp -r ${B}/tests/.libs/test* ${D}${PTEST_PATH}/tests | ||
47 | } | ||