Alias for tests' target. This will cause make check' to do the right

* Makefile.am (check-local): Alias for `tests' target.  This will
cause `make check' to do the right thing.
(tests): Don't run tests in srcdir.  Also, replaced calls to
basename with a `sed' "equivalent".
This commit is contained in:
Raja R Harinath 1999-03-05 22:14:01 +00:00
parent d109e37b00
commit a86c23e3a1
2 changed files with 18 additions and 8 deletions

View File

@ -1,3 +1,10 @@
1999-03-05 Raja R Harinath <harinath@cs.umn.edu>
* Makefile.am (check-local): Alias for `tests' target. This will
cause `make check' to do the right thing.
(tests): Don't run tests in srcdir. Also, replaced calls to
basename with a `sed' "equivalent".
Fri Mar 5 07:23:53 CET 1999 Daniel Veillard <Daniel.Veillard@w3.org>
* Renamed error.h to xml-error.h, corrected Makefile.am to list

View File

@ -39,17 +39,20 @@ tester_LDFLAGS =
tester_DEPENDENCIES = $(DEPS)
tester_LDADD= $(LDADDS)
check-local: tests
tests : tester
@(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \
@(for i in $(srcdir)/test/* ; do \
if [ ! -d $$i ] ; then \
if [ ! -f result/`basename $$i` ] ; then \
echo New test file `basename $$i` ; \
$$DIR/tester $$i > result/`basename $$i` ; \
j=`echo $$i | sed -e 's,^.*/,,'`; \
if [ ! -f $(srcdir)/result/$$j ] ; then \
echo New test file $$j ; \
./tester $$i > $(srcdir)/result/$$j ; \
else \
echo Testing `basename $$i` ; \
$$DIR/tester $$i > result.`basename $$i` ; \
diff result/`basename $$i` result.`basename $$i` ; \
rm result.`basename $$i` ; \
echo Testing $$j ; \
./tester $$i > result.$$j ; \
diff $(srcdir)/result/$$j result.$$j ; \
rm result.$$j ; \
fi ; fi ; done)
## Put `exec' in the name because this should be installed by