summaryrefslogtreecommitdiff
path: root/t/check5.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/check5.sh')
-rw-r--r--t/check5.sh24
1 files changed, 17 insertions, 7 deletions
diff --git a/t/check5.sh b/t/check5.sh
index c4e5b52f7..271804424 100644
--- a/t/check5.sh
+++ b/t/check5.sh
@@ -32,8 +32,15 @@ check-local:
test -f one$(EXEEXT)
test -f two$(EXEEXT)
touch ok
-expect-tests:
- is $(TESTS) == one$(EXEEXT) two$(EXEEXT)
+prepare-for-fake-exeext:
+ rm -f ok
+ mv -f one$(EXEEXT) one.bin
+ mv -f two$(EXEEXT) two.bin
+post-check-for-fake-exeext:
+ test -f ok
+ test ! -f one$(EXEEXT)
+ test ! -f two$(EXEEXT)
+.PHONY: prepare-for-fake-exeext post-check-for-fake-exeext
END
$ACLOCAL
@@ -49,12 +56,15 @@ END
cp one.c two.c
./configure
+
$MAKE check
test -f ok
-run_make expect-tests
-run_make expect-tests EXEEXT=.bin
-# No am__EXEEXT_* variable is needed.
-grep '_EXEEXT_[1-9]' Makefile.in && exit 1
-$FGREP 'TESTS = $(check_PROGRAMS)' Makefile.in
+
+$MAKE prepare-for-fake-exeext
+$MAKE check EXEEXT=.bin
+$MAKE post-check-for-fake-exeext
+
+# No TESTS rewriting has taken place.
+grep '^TESTS = \$(check_PROGRAMS)$' Makefile.in
: