12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #! /bin/sh
- . test-init.sh
- echo AC_OUTPUT >> configure.ac
- cat > Makefile.am <<'END'
- $(srcdir)/test_data.am: $(srcdir)/test_data.txt $(srcdir)/gen-testdata.sh
- cd $(srcdir) && $(SHELL) gen-testdata.sh <test_data.txt >test_data.am
- include $(srcdir)/test_data.am
- check-local:
- is $(testdata) == foo bar
- END
- cat > test_data.txt <<'END'
- foo
- bar
- END
- cat > gen-testdata.sh <<'END'
- #!/bin/sh
- printf 'testdata = \\\n'
- sed 's/$/ \\/'
- echo '$(empty_string)'
- END
- chmod a+x gen-testdata.sh
- $sleep
- ./gen-testdata.sh <test_data.txt >test_data.am
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE -a
- ./configure
- $MAKE check
- run_make -e FAIL -M distcheck
- $FGREP '../../test_data.txt' output
- echo 'EXTRA_DIST = test_data.txt gen-testdata.sh' >> Makefile.am
- using_gmake || $MAKE Makefile
- $MAKE distcheck
- :
|