From f12af6c9ca4c5795b460a01a476f3f7b90ed4ee3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 1 Jul 2005 00:10:16 +0000 Subject: update tests to check exit status and abort only if things didnt work correctly --- test/silly/Makefile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'test') diff --git a/test/silly/Makefile b/test/silly/Makefile index a948b1ba8..290dfc045 100644 --- a/test/silly/Makefile +++ b/test/silly/Makefile @@ -33,45 +33,42 @@ hello_source: hello: hello.c Makefile $(TESTDIR)/Rules.mak -@ echo "-------" -@ echo " " - -@ echo "Compiling vs uClibc: " + -@ echo "Compiling $@ vs uClibc: " -@ echo " " $(CC) $(CFLAGS) -c $< -o $@.o $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS) $(STRIPTOOL) -x -R .note -R .comment $@ -$(LDD) $@ ls -l $@ - ./$@ + ./$@ ; ret=$$? ; test $$ret -eq 42 -@ echo " " hello_glibc: hello.c Makefile -@ echo "-------" -@ echo " " - -@ echo "Compiling vs GNU libc: " + -@ echo "Compiling $@ vs GNU libc: " -@ echo " " $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@ $(STRIPTOOL) -x -R .note -R .comment $@ -$(LDD) $@ ls -l $@ - ./$@ + ./$@ ; ret=$$? ; test $$ret -eq 42 -@ echo " " tiny: tiny.c Makefile $(TESTDIR)/Rules.mak -@ echo "-------" -@ echo " " - -@ echo "Compiling vs uClibc: " + -@ echo "Compiling $@ vs uClibc: " -@ echo " " $(CC) $(CFLAGS) -c $< -o $@.o $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS) $(STRIPTOOL) -x -R .note -R .comment $@ -$(LDD) $@ ls -l $@ - ./$@ + ./$@ ; ret=$$? ; test $$ret -eq 42 -@ echo " " - clean: $(RM) *.[oa] *~ core $(TARGETS) - - -- cgit v1.2.3