This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Don't run tests when cross-compiling
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: libc-alpha at sourceware dot org
- Date: Sat, 28 Apr 2012 22:26:15 +0200
- Subject: [PATCH] Don't run tests when cross-compiling
make check when cross compiling should not try to run the tests, only
build them. Committed.
Andreas.
* elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
* Makefile ($(objpfx)tst-stack3-mem, $(objpfx)tst-tls6.out): Don't
run when cross-compiling.
diff --git a/elf/Makefile b/elf/Makefile
index fd766c5..32d113e 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -156,7 +156,9 @@ tests += tst-audit6 tst-audit7
endif
endif
endif
+ifeq ($(cross-compiling),no)
tests: $(objpfx)tst-leaks1-mem $(objpfx)noload-mem
+endif
tlsmod17a-suffixes = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
tlsmod18a-suffixes = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
tlsmod17a-modules = $(addprefix tst-tlsmod17a, $(tlsmod17a-suffixes))
@@ -1119,7 +1121,9 @@ $(objpfx)tst-relsort1mod2.so: $(libm)
$(objpfx)tst-relsort1.out: $(objpfx)tst-relsort1mod1.so \
$(objpfx)tst-relsort1mod2.so
+ifeq ($(cross-compiling),no)
tests: $(objpfx)tst-unused-dep.out
+endif
$(objpfx)tst-unused-dep.out: $(objpfx)testobj1.so
LD_TRACE_LOADED_OBJECTS=1 \
diff --git a/nptl/Makefile b/nptl/Makefile
index 52277dd..09acd8a 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -438,7 +438,9 @@ LDFLAGS-tst-atfork2 = -rdynamic
tst-atfork2-ENV = MALLOC_TRACE=$(objpfx)tst-atfork2.mtrace
$(objpfx)tst-atfork2mod.so: $(shared-thread-library)
+ifeq ($(cross-compiling),no)
tests: $(objpfx)tst-stack3-mem
+endif
tst-stack3-ENV = MALLOC_TRACE=$(objpfx)tst-stack3.mtrace
$(objpfx)tst-stack3-mem: $(objpfx)tst-stack3.out
$(common-objpfx)malloc/mtrace $(objpfx)tst-stack3.mtrace > $@
@@ -459,7 +461,9 @@ $(objpfx)tst-tls5: $(objpfx)tst-tls5mod.so $(shared-thread-library)
LDFLAGS-tst-tls5mod.so = -Wl,-soname,tst-tls5mod.so
ifeq ($(build-shared),yes)
+ifeq ($(cross-compiling),no)
tests: $(objpfx)tst-tls6.out
+endif
$(objpfx)tst-tls6.out: tst-tls6.sh $(objpfx)tst-tls5 \
$(objpfx)tst-tls5moda.so $(objpfx)tst-tls5modb.so \
$(objpfx)tst-tls5modc.so $(objpfx)tst-tls5modd.so \
--
1.7.10
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."