Newer
Older
dub_jkp / test / issue1739-project-settings-file.sh
@Andre Pany Andre Pany on 18 Jul 2019 436 bytes Project settings file
  1. #!/usr/bin/env bash
  2. . $(dirname "${BASH_SOURCE[0]}")/common.sh
  3.  
  4. cd ${CURR_DIR}
  5. echo "{\"defaultArchitecture\": \"foo\"}" > "dub.settings.json"
  6.  
  7. function cleanup {
  8. rm "dub.settings.json"
  9. }
  10.  
  11. trap cleanup EXIT
  12.  
  13. if ! { ${DUB} describe --single issue103-single-file-package.d 2>&1 || true; } | grep -cF "Unsupported architecture: foo"; then
  14. die $LINENO 'DUB did not find the project configuration with an adjacent architecture.'
  15. fi
  16.