1234567891011121314151617181920212223242526272829303132333435363738 |
- #!/bin/sh
- set -eu
- MAKEFILE='src/testsuite/Makefile.am'
- (
- cat <<__EOS__
- #!/bin/sh
- set -eu
- set -x
- cd src/testsuite
- __EOS__
- fgrep 'cp ../ngircd/ngircd' "$MAKEFILE" |
- awk '{print "cp /usr/sbin/ngircd "$3}'
- echo
- fgrep 'ln -s $(srcdir)/tests.sh' "$MAKEFILE" |
- awk '{print "ln -s tests.sh "$4}'
- echo
- echo 'for TEST in \\'
- sed -n -e '/^TESTS/,/^$/p' <"$MAKEFILE" |
- sed -e 's/^TESTS = / /' | grep '^\s' |
- awk '{print " "$1" \\"}'
- cat <<__EOS__
- ; do
- ./\$TEST
- done
- __EOS__
- ) >debian/tests/run-testsuite
|