1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #! /bin/sh
- . test-init.sh
- cat >> configure.ac << 'END'
- AC_OUTPUT
- END
- cat > Makefile.am << 'END'
- t1 = foo1 foo2
- t2 = barx
- t3 = bar2
- foo2.test barz:
- (echo '#!/bin/sh' && echo 'exit 0') > $@ && chmod a+x $@
- CLEANFILES = foo2.test barz
- TESTS = $(t1:=.test) $(t2:x=y) $(t3:2=z)
- EXTRA_DIST = $(TESTS)
- MOSTLYCLEANFILES = *.out
- END
- cat > foo1.test <<'END'
- #!/bin/sh
- touch foo1.out
- test x"${TESTSUITE_OK-no}" = x"yes"
- END
- sed 's/foo1/bary/g' foo1.test > bary
- chmod +x foo1.test bary
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE -a
- ./configure
- run_make -M -e FAIL check
- ls -l
- grep '^FAIL: foo1\.test *$' output
- grep '^PASS: foo2\.test *$' output
- grep '^FAIL: bary *$' output
- grep '^PASS: barz *$' output
- test -f foo1.out
- test -f bary.out
- TESTSUITE_OK=yes $MAKE distcheck
- :
|