summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/zlib/zlib-1.2.11/Makefile-runtests.patch
blob: 61eea8238a6eb818c646b2aa75f09170046d64a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Add 'ptest' target to Makefile, to run tests without checking dependencies.

Signed-off-by: Anders Roxell <anders.roxell@enea.com>
Upstream-Status: Pending
---
diff -uNr a/Makefile.in b/Makefile.in
--- a/Makefile.in	2013-06-10 13:48:14.321959162 +0200
+++ b/Makefile.in	2013-06-10 13:49:36.686476448 +0200
@@ -83,6 +83,9 @@
 test: all teststatic testshared
 
 teststatic: static
+	@make runteststatic
+
+runteststatic:
 	@TMPST=tmpst_$$; \
 	if echo hello world | ./minigzip | ./minigzip -d && ./example $$TMPST ; then \
 	  echo '		*** zlib test OK ***'; \
@@ -92,6 +95,9 @@
 	rm -f $$TMPST
 
 testshared: shared
+	@make runtestshared
+
+runtestshared:
 	@LD_LIBRARY_PATH=`pwd`:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \
 	LD_LIBRARYN32_PATH=`pwd`:$(LD_LIBRARYN32_PATH) ; export LD_LIBRARYN32_PATH; \
 	DYLD_LIBRARY_PATH=`pwd`:$(DYLD_LIBRARY_PATH) ; export DYLD_LIBRARY_PATH; \
@@ -105,6 +111,9 @@
 	rm -f $$TMPSH
 
 test64: all64
+	@make runtestall64
+
+runtestall64:
 	@TMP64=tmp64_$$; \
 	if echo hello world | ./minigzip64 | ./minigzip64 -d && ./example64 $$TMP64; then \
 	  echo '		*** zlib 64-bit test OK ***'; \