1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #! /bin/sh
- . test-init.sh
- cat >> configure.ac << 'END'
- AC_CONFIG_FILES([dir/Makefile])
- AC_OUTPUT
- END
- mkdir dir
- cat > Makefile.am << 'END'
- SUBDIRS = dir
- TESTS = \
- subrun.sh
- subrun.sh:
- (echo '#! /bin/sh'; echo 'dir/echo.sh') > $@
- chmod +x $@
- CLEANFILES = subrun.sh
- END
- cat > dir/Makefile.am << 'END'
- check_SCRIPTS = echo.sh
- echo.sh:
- (echo '#! /bin/sh'; echo 'echo Hello') > $@
- chmod +x $@
- CLEANFILES = echo.sh
- END
- test x"$am_serial_tests" = x"yes" || cp "$am_scriptdir/test-driver" .
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE
- ./configure
- run_make -O check
- grep '^PASS: subrun\.sh *$' stdout
- grep 'PASS.*echo\.sh' stdout && exit 1
- $EGREP '^check:.* check-recursive( |$)' Makefile.in
- $EGREP '^check:.* check-am( |$)' dir/Makefile.in
- grep '^ subrun\.sh$' Makefile.in
- :
|