test-missing2.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #! /bin/sh
  2. # Copyright (C) 2011-2017 Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. # parallel-tests:
  17. # - non-existent scripts listed in TESTS get diagnosed, even when
  18. # all the $(TEST_LOGS) have a dummy dependency.
  19. # See also related test 'test-missing.sh'.
  20. . test-init.sh
  21. cat >> configure.ac << 'END'
  22. AC_OUTPUT
  23. END
  24. cat > Makefile.am << 'END'
  25. TESTS = foobar1.test foobar2.test
  26. $(TEST_LOGS):
  27. END
  28. $ACLOCAL
  29. $AUTOCONF
  30. $AUTOMAKE -a
  31. ./configure
  32. $MAKE foobar1.log foobar2.log || exit 99
  33. test ! -e foobar1.log || exit 99
  34. test ! -e foobar1.trs || exit 99
  35. test ! -e foobar2.log || exit 99
  36. test ! -e foobar2.trs || exit 99
  37. run_make -e FAIL -M check
  38. grep 'test-suite\.log.*foobar1\.log' output
  39. grep 'test-suite\.log.*foobar1\.trs' output
  40. grep 'test-suite\.log.*foobar2\.log' output
  41. grep 'test-suite\.log.*foobar2\.trs' output
  42. test ! -e test-suite.log
  43. :