Have Makefile return non-zero error code on test failure.
This commit is contained in:
parent
a362293745
commit
e00a2bd392
12
Makefile.in
12
Makefile.in
@ -91,8 +91,8 @@ teststatic: static
|
|||||||
echo ' *** zlib test OK ***'; \
|
echo ' *** zlib test OK ***'; \
|
||||||
else \
|
else \
|
||||||
echo ' *** zlib test FAILED ***'; false; \
|
echo ' *** zlib test FAILED ***'; false; \
|
||||||
fi; \
|
fi
|
||||||
rm -f $$TMPST
|
@rm -f tmpst_$$
|
||||||
|
|
||||||
testshared: shared
|
testshared: shared
|
||||||
@LD_LIBRARY_PATH=`pwd`:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \
|
@LD_LIBRARY_PATH=`pwd`:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \
|
||||||
@ -104,8 +104,8 @@ testshared: shared
|
|||||||
echo ' *** zlib shared test OK ***'; \
|
echo ' *** zlib shared test OK ***'; \
|
||||||
else \
|
else \
|
||||||
echo ' *** zlib shared test FAILED ***'; false; \
|
echo ' *** zlib shared test FAILED ***'; false; \
|
||||||
fi; \
|
fi
|
||||||
rm -f $$TMPSH
|
@rm -f tmpsh_$$
|
||||||
|
|
||||||
test64: all64
|
test64: all64
|
||||||
@TMP64=tmp64_$$; \
|
@TMP64=tmp64_$$; \
|
||||||
@ -113,8 +113,8 @@ test64: all64
|
|||||||
echo ' *** zlib 64-bit test OK ***'; \
|
echo ' *** zlib 64-bit test OK ***'; \
|
||||||
else \
|
else \
|
||||||
echo ' *** zlib 64-bit test FAILED ***'; false; \
|
echo ' *** zlib 64-bit test FAILED ***'; false; \
|
||||||
fi; \
|
fi
|
||||||
rm -f $$TMP64
|
@rm -f tmp64_$$
|
||||||
|
|
||||||
infcover.o: $(SRCDIR)test/infcover.c $(SRCDIR)zlib.h zconf.h
|
infcover.o: $(SRCDIR)test/infcover.c $(SRCDIR)zlib.h zconf.h
|
||||||
$(CC) $(CFLAGS) $(ZINCOUT) -c -o $@ $(SRCDIR)test/infcover.c
|
$(CC) $(CFLAGS) $(ZINCOUT) -c -o $@ $(SRCDIR)test/infcover.c
|
||||||
|
Loading…
Reference in New Issue
Block a user