Newer
Older
dub_jkp / test / issue1117-extra-dependency-files.sh
  1. #!/usr/bin/env bash
  2.  
  3. . $(dirname "${BASH_SOURCE[0]}")/common.sh
  4. cd ${CURR_DIR}/issue1117-extra-dependency-files
  5.  
  6. # Ensure the test can be re-run
  7. ${DUB} clean
  8.  
  9. if ! { ${DUB} build 2>&1 || true; } | grep -cF 'building configuration'; then
  10. die $LINENO 'Build was not executed.'
  11. fi
  12.  
  13. if ! { ${DUB} build 2>&1 || true; } | grep -cF 'is up to date'; then
  14. die $LINENO 'Build was executed.'
  15. fi
  16.  
  17. touch ./dependency.txt
  18.  
  19. if ! { ${DUB} build 2>&1 || true; } | grep -cF 'building configuration'; then
  20. die $LINENO 'Build was not executed.'
  21. fi