summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssl/openssl/Makefiles-ptest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl/Makefiles-ptest.patch')
-rw-r--r--meta/recipes-connectivity/openssl/openssl/Makefiles-ptest.patch74
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 @@
1Add 'buildtest' and 'runtest' targets to Makefile, to build and run tests
2cross-compiled.
3
4Signed-off-by: Anders Roxell <anders.roxell@enea.com>
5Upstream-Status: Pending
6---
7diff -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:
28diff --git a/test/Makefile b/test/Makefile
29index 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)