summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@src.gnome.org>1999-03-05 22:14:01 +0000
committerRaja R Harinath <harinath@src.gnome.org>1999-03-05 22:14:01 +0000
commita86c23e3a170bdae8b84618adff31b0a9eafd168 (patch)
tree90cf27e5357791a78056a931175c82cbb01abb8c
parentd109e37b003bb6bc0ec7200ec00da4ced1023848 (diff)
downloadlibxml2-a86c23e3a170bdae8b84618adff31b0a9eafd168.tar.gz
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".
-rw-r--r--ChangeLog7
-rw-r--r--Makefile.am19
2 files changed, 18 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 1f315619..e669bfe6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/Makefile.am b/Makefile.am
index a961e2aa..26435d94 100644
--- a/Makefile.am
+++ b/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