12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #! /bin/sh
- required='cc native'
- . test-init.sh
- cat >> configure.ac << 'END'
- AC_PROG_CC
- AC_OUTPUT
- END
- cat > Makefile.am << 'END'
- TESTS = $(EXTRA_PROGRAMS)
- EXTRA_PROGRAMS = foo
- END
- echo 'int main (void) { return 1; }' > foo.c
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE -a
- ./configure
- run_make -O -e FAIL check
- count_test_results total=1 pass=0 fail=1 xpass=0 xfail=0 skip=0 error=0
- using_gmake || $sleep
- run_make -O -e IGNORE -- -k recheck
- ! using_gmake || test $am_make_rc -gt 0 || exit 1
- count_test_results total=1 pass=0 fail=1 xpass=0 xfail=0 skip=0 error=0
- $sleep
- echo choke me >> foo.c
- run_make -O -e FAIL recheck
- $EGREP '(X?PASS|X?FAIL|SKIP|ERROR):' stdout && exit 1
- test -f foo.log
- test -f foo.trs
- using_gmake || $sleep
- run_make -O -e IGNORE -- -k recheck
- ! using_gmake || test $am_make_rc -gt 0 || exit 1
- $EGREP '(X?PASS|X?FAIL|SKIP|ERROR):' stdout && exit 1
- test -f foo.log
- test -f foo.trs
- $sleep
- echo 'int main (void) { return 0; }' > foo.c
- run_make -O recheck
- count_test_results total=1 pass=1 fail=0 xpass=0 xfail=0 skip=0 error=0
- test -f foo.log
- test -f foo.trs
- run_make -O recheck
- count_test_results total=0 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=0
- test -f foo.log
- test -f foo.trs
- :
|