Newer
Older
dub_jkp / test / issue103-single-file-package.sh
  1. #!/bin/sh
  2. set -e
  3. cd ${CURR_DIR}
  4. rm -f single-file-test
  5.  
  6. ${DUB} run --single issue103-single-file-package-json.d --compiler=${DC}
  7. if [ ! -f single-file-test ]; then
  8. echo "Normal invocation did not produce a binary in the current directory"
  9. exit 1
  10. fi
  11. rm single-file-test
  12.  
  13. ./issue103-single-file-package.d foo -- bar
  14.  
  15. ${DUB} issue103-single-file-package-w-dep.d
  16.  
  17. if [ -f single-file-test ]; then
  18. echo "Shebang invocation produced binary in current directory"
  19. exit 1
  20. fi