recreate-autopkgtest 559 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh
  2. set -eu
  3. MAKEFILE='src/testsuite/Makefile.am'
  4. (
  5. cat <<__EOS__
  6. #!/bin/sh
  7. set -eu
  8. set -x
  9. cd src/testsuite
  10. __EOS__
  11. fgrep 'cp ../ngircd/ngircd' "$MAKEFILE" |
  12. awk '{print "cp /usr/sbin/ngircd "$3}'
  13. echo
  14. fgrep 'ln -s $(srcdir)/tests.sh' "$MAKEFILE" |
  15. awk '{print "ln -s tests.sh "$4}'
  16. echo
  17. echo 'for TEST in \\'
  18. sed -n -e '/^TESTS/,/^$/p' <"$MAKEFILE" |
  19. sed -e 's/^TESTS = / /' | grep '^\s' |
  20. awk '{print " "$1" \\"}'
  21. cat <<__EOS__
  22. ; do
  23. ./\$TEST
  24. done
  25. __EOS__
  26. ) >debian/tests/run-testsuite