diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-connectivity/openssl/openssl/Makefiles-ptest.patch | |
download | poky-c527fd1f14c27855a37f2e8ac5346ce8d940ced2.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl/Makefiles-ptest.patch')
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl/Makefiles-ptest.patch | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl/Makefiles-ptest.patch b/meta/recipes-connectivity/openssl/openssl/Makefiles-ptest.patch new file mode 100644 index 0000000000..e65f17ba54 --- /dev/null +++ b/meta/recipes-connectivity/openssl/openssl/Makefiles-ptest.patch | |||
@@ -0,0 +1,74 @@ | |||
1 | Add 'buildtest' and 'runtest' targets to Makefile, to build and run tests | ||
2 | cross-compiled. | ||
3 | |||
4 | Signed-off-by: Anders Roxell <anders.roxell@enea.com> | ||
5 | Upstream-Status: Pending | ||
6 | --- | ||
7 | diff -uNr a/Makefile b/Makefile | ||
8 | --- a/Makefile.org 2012-05-10 17:06:02.000000000 +0200 | ||
9 | +++ b/Makefile.org 2012-10-27 00:05:55.359424024 +0200 | ||
10 | @@ -411,8 +411,16 @@ | ||
11 | test: tests | ||
12 | |||
13 | tests: rehash | ||
14 | + $(MAKE) buildtest | ||
15 | + $(MAKE) runtest | ||
16 | + | ||
17 | +buildtest: | ||
18 | + @(cd test && \ | ||
19 | + $(CLEARENV) && $(MAKE) -e $(BUILDENV) TOP=.. TESTS='$(TESTS)' OPENSSL_DEBUG_MEMORY=on OPENSSL_CONF=../apps/openssl.cnf exe apps); | ||
20 | + | ||
21 | +runtest: | ||
22 | @(cd test && echo "testing..." && \ | ||
23 | - $(CLEARENV) && $(MAKE) -e $(BUILDENV) TOP=.. TESTS='$(TESTS)' OPENSSL_DEBUG_MEMORY=on OPENSSL_CONF=../apps/openssl.cnf tests ); | ||
24 | + $(CLEARENV) && $(MAKE) -e $(BUILDENV) TOP=.. TESTS='$(TESTS)' OPENSSL_DEBUG_MEMORY=on OPENSSL_CONF=../apps/openssl.cnf alltests ); | ||
25 | OPENSSL_CONF=apps/openssl.cnf util/opensslwrap.sh version -a | ||
26 | |||
27 | report: | ||
28 | diff --git a/test/Makefile b/test/Makefile | ||
29 | index 3912f82..1696767 100644 | ||
30 | --- a/test/Makefile | ||
31 | +++ b/test/Makefile | ||
32 | @@ -128,7 +128,7 @@ tests: exe apps $(TESTS) | ||
33 | apps: | ||
34 | @(cd ..; $(MAKE) DIRS=apps all) | ||
35 | |||
36 | -alltests: \ | ||
37 | +all-tests= \ | ||
38 | test_des test_idea test_sha test_md4 test_md5 test_hmac \ | ||
39 | test_md2 test_mdc2 test_wp \ | ||
40 | test_rmd test_rc2 test_rc4 test_rc5 test_bf test_cast test_aes \ | ||
41 | @@ -138,6 +138,11 @@ alltests: \ | ||
42 | test_ss test_ca test_engine test_evp test_ssl test_tsa test_ige \ | ||
43 | test_jpake test_cms | ||
44 | |||
45 | +alltests: | ||
46 | + @(for i in $(all-tests); do \ | ||
47 | + ( $(MAKE) $$i && echo "PASS: $$i" ) || echo "FAIL: $$i"; \ | ||
48 | + done) | ||
49 | + | ||
50 | test_evp: | ||
51 | ../util/shlib_wrap.sh ./$(EVPTEST) evptests.txt | ||
52 | |||
53 | @@ -203,7 +208,7 @@ test_x509: | ||
54 | echo test second x509v3 certificate | ||
55 | sh ./tx509 v3-cert2.pem 2>/dev/null | ||
56 | |||
57 | -test_rsa: $(RSATEST)$(EXE_EXT) | ||
58 | +test_rsa: | ||
59 | @sh ./trsa 2>/dev/null | ||
60 | ../util/shlib_wrap.sh ./$(RSATEST) | ||
61 | |||
62 | @@ -298,11 +303,11 @@ test_tsa: | ||
63 | sh ./testtsa; \ | ||
64 | fi | ||
65 | |||
66 | -test_ige: $(IGETEST)$(EXE_EXT) | ||
67 | +test_ige: | ||
68 | @echo "Test IGE mode" | ||
69 | ../util/shlib_wrap.sh ./$(IGETEST) | ||
70 | |||
71 | -test_jpake: $(JPAKETEST)$(EXE_EXT) | ||
72 | +test_jpake: | ||
73 | @echo "Test JPAKE" | ||
74 | ../util/shlib_wrap.sh ./$(JPAKETEST) | ||