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