diff options
-rwxr-xr-x | tests/libobj10.test | 5 | ||||
-rwxr-xr-x | tests/libobj17.test | 13 |
2 files changed, 13 insertions, 5 deletions
diff --git a/tests/libobj10.test b/tests/libobj10.test index a566b090c..f19de7492 100755 --- a/tests/libobj10.test +++ b/tests/libobj10.test @@ -36,6 +36,9 @@ BUILT_SOURCES = foo.c CLEANFILES = foo.c foo.c: echo 'extern int dummy;' > $@ +.PHONY: debugging +debugging: + $(AR) t libfoo.a END cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script 'ar-lib'" @@ -47,7 +50,7 @@ $AUTOMAKE ./configure $MAKE -ar t libfoo.a # For debugging. +$MAKE debugging $MAKE distcheck : diff --git a/tests/libobj17.test b/tests/libobj17.test index 0ced8d942..6c54a284e 100755 --- a/tests/libobj17.test +++ b/tests/libobj17.test @@ -33,6 +33,13 @@ cat > Makefile.am << 'END' noinst_LIBRARIES = libtu.a libtu_a_SOURCES = libtu_a_LIBADD = $(LIBOBJS) +.PHONY: check-quux check-zardoz +check-quux: + $(AR) t libtu.a | grep quux + $(AR) t libtu.a | grep zardoz && exit 1; exit 0 +check-zardoz: + $(AR) t libtu.a | grep zardoz + $(AR) t libtu.a | grep quux && exit 1; exit 0 END cat > quux.c <<'END' @@ -52,8 +59,7 @@ $AUTOCONF $MAKE ls -l # For debugging. test -f libtu.a -ar t libtu.a | $FGREP quux -ar t libtu.a | $FGREP zardoz && Exit 1 +$MAKE check-quux $MAKE distclean @@ -61,7 +67,6 @@ $MAKE distclean $MAKE ls -l # For debugging. test -f libtu.a -ar t libtu.a | $FGREP zardoz -ar t libtu.a | $FGREP quux && Exit 1 +$MAKE check-zardoz : |