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:11:06 +0000 |
commit | f344699eb15933cc7c92b0ed6894ef0869568659 (patch) | |
tree | c18c4985509810d76eb2b5307c61501354ef8821 /meta/recipes-support/beecrypt/beecrypt | |
parent | 6482a43211a3a4858030ae3c59f5726c0ccba261 (diff) | |
download | openembedded-core-f344699eb15933cc7c92b0ed6894ef0869568659.tar.gz openembedded-core-f344699eb15933cc7c92b0ed6894ef0869568659.tar.bz2 openembedded-core-f344699eb15933cc7c92b0ed6894ef0869568659.zip |
beecrypt: add ptest support
Install beecrypt test suite and run it as ptest.
Make all ptest pass.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Diffstat (limited to 'meta/recipes-support/beecrypt/beecrypt')
-rw-r--r-- | meta/recipes-support/beecrypt/beecrypt/beecrypt-enable-ptest-support.patch | 37 | ||||
-rw-r--r-- | meta/recipes-support/beecrypt/beecrypt/run-ptest | 5 |
2 files changed, 42 insertions, 0 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 @@ +beecrypt: enable ptest support + +Upstream-Status: Inappropriate [embedded specific] + +Add install-ptest rules. + +Signed-off-by: Chong Lu <Chong.Lu@windriver.com> +--- + Makefile.am | 3 +++ + tests/Makefile.am | 3 +++ + 2 files changed, 6 insertions(+) + +diff --git a/Makefile.am b/Makefile.am +index b7e7869..5076f59 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -73,3 +73,6 @@ DISTCLEANFILES = mpopt.s blowfishopt.s sha1opt.s + + bench: + (cd tests && $(MAKE) $(AM_MAKEFLAGS) bench) ++ ++install-ptest: ++ (cd tests && $(MAKE) $(AM_MAKEFLAGS) check_PROGRAMS) +diff --git a/tests/Makefile.am b/tests/Makefile.am +index 1604e5e..d8db8d8 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -101,3 +101,6 @@ bench: benchme benchrsa benchhf benchbc + ./benchbc AES 128 + ./benchbc Blowfish 128 + ./benchbc Blowfish 128 ++ ++check_PROGRAMS: ++ $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) +-- +1.8.1.2 + 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 @@ +#!/bin/sh + +cd tests +for i in `ls`; do ./$i; if [ $? == 0 ]; then echo "PASS: $i"; \ + else echo "FAIL: $i"; fi; done |