diff options
author | Jim Meyering <jim@meyering.net> | 1999-04-07 17:41:57 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-04-07 17:41:57 +0000 |
commit | b655fc9cf71956ae50d6cc6228e6f8208160b77f (patch) | |
tree | c6b70ecc793010a3720fd8a203a9990552cd790e /tests/cp | |
parent | b6dfae5d0e49fec0eecca02ed5f42626d58e6071 (diff) | |
download | coreutils-b655fc9cf71956ae50d6cc6228e6f8208160b77f.tar.xz |
.
Diffstat (limited to 'tests/cp')
-rw-r--r-- | tests/cp/Makefile.in | 56 |
1 files changed, 42 insertions, 14 deletions
diff --git a/tests/cp/Makefile.in b/tests/cp/Makefile.in index f625eae6f..a653fe73e 100644 --- a/tests/cp/Makefile.in +++ b/tests/cp/Makefile.in @@ -94,10 +94,13 @@ l = @l@ AUTOMAKE_OPTIONS = 1.1 gnits -TESTS = backup-1 no-deref-link1 no-deref-link2 no-deref-link3 backup-is-src same-file +TESTS = \ + backup-1 no-deref-link1 no-deref-link2 no-deref-link3 backup-is-src \ + same-file EXTRA_DIST = $(TESTS) -TESTS_ENVIRONMENT = PATH=`pwd`/../../src:$$PATH +TESTS_ENVIRONMENT = \ + PATH=`pwd`/../../src:$$PATH mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../../config.h @@ -105,9 +108,8 @@ CONFIG_CLEAN_FILES = DIST_COMMON = Makefile.am Makefile.in -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) +DISTFILES = $(DIST_COMMON) $(SOURCES) $(TEXINFOS) $(EXTRA_DIST) -TAR = gtar GZIP_ENV = --best all: all-redirect .SUFFIXES: @@ -143,24 +145,50 @@ distdir: $(DISTFILES) fi; \ done check-TESTS: $(TESTS) - @failed=0; all=0; \ + @failed=0; all=0; xfail=0; xpass=0; \ srcdir=$(srcdir); export srcdir; \ for tst in $(TESTS); do \ - if test -f $$tst; then dir=.; \ - else dir="$(srcdir)"; fi; \ - if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \ + if test -f ./$$tst; then dir=./; \ + elif test -f $$tst; then dir=; \ + else dir="$(srcdir)/"; fi; \ + if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ - echo "PASS: $$tst"; \ + case " $(XFAIL_TESTS) " in \ + *" $$tst "*) \ + xpass=`expr $$xpass + 1`; \ + failed=`expr $$failed + 1`; \ + echo "XPASS: $$tst"; \ + ;; \ + *) \ + echo "PASS: $$tst"; \ + ;; \ + esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ - failed=`expr $$failed + 1`; \ - echo "FAIL: $$tst"; \ + case " $(XFAIL_TESTS) " in \ + *" $$tst "*) \ + xfail=`expr $$xfail + 1`; \ + echo "XFAIL: $$tst"; \ + ;; \ + *) \ + failed=`expr $$failed + 1`; \ + echo "FAIL: $$tst"; \ + ;; \ + esac; \ fi; \ done; \ if test "$$failed" -eq 0; then \ - banner="All $$all tests passed"; \ + if test "$$xfail" -eq 0; then \ + banner="All $$all tests passed"; \ + else \ + banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ + fi; \ else \ - banner="$$failed of $$all tests failed"; \ + if test "$$xpass" -eq 0; then \ + banner="$$failed of $$all tests failed"; \ + else \ + banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ + fi; \ fi; \ dashes=`echo "$$banner" | sed s/./=/g`; \ echo "$$dashes"; \ @@ -224,7 +252,7 @@ maintainer-clean: maintainer-clean-am .PHONY: tags distdir check-TESTS info-am info dvi-am dvi check check-am \ installcheck-am installcheck install-exec-am install-exec \ install-data-am install-data install-am install uninstall-am uninstall \ -all-redirect all-am all installdirs mostlyclean-generic \ +all-redirect all-am all install-strip installdirs mostlyclean-generic \ distclean-generic clean-generic maintainer-clean-generic clean \ mostlyclean distclean maintainer-clean |