mirror of
https://github.com/GNOME/libxml2.git
synced 2025-02-11 18:09:31 +08:00
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:
parent
d109e37b00
commit
a86c23e3a1
@ -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
|
||||
|
19
Makefile.am
19
Makefile.am
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user