Newer
Older
dub_jkp / test / issue1867-lowmem.sh
@SHOO SHOO on 1 Mar 2021 900 bytes Add lowmem for settings
  1. #!/usr/bin/env bash
  2. . $(dirname "${BASH_SOURCE[0]}")/common.sh
  3. DIR=$(dirname "${BASH_SOURCE[0]}")
  4.  
  5. if ! { ${DUB} build --root ${DIR}/issue1867-lowmem -v -f 2>&1 || true; } | grep -cF " -lowmem " > /dev/null; then
  6. die $LINENO 'DUB build with lowmem did not find -lowmem option.'
  7. fi
  8.  
  9. if ! { ${DUB} test --root ${DIR}/issue1867-lowmem -v -f 2>&1 || true; } | grep -cF " -lowmem " > /dev/null; then
  10. die $LINENO 'DUB test with lowmem did not find -lowmem option.'
  11. fi
  12.  
  13. if ! { ${DUB} run --root ${DIR}/issue1867-lowmem -v -f 2>&1 || true; } | grep -cF " -lowmem " > /dev/null; then
  14. die $LINENO 'DUB test with lowmem did not find -lowmem option.'
  15. fi
  16.  
  17. if ! { ${DUB} describe --root ${DIR}/issue1867-lowmem --data=options --data-list --verror 2>&1 || true; } | grep -cF "lowmem" > /dev/null; then
  18. die $LINENO 'DUB describe --data=options --data-list with lowmem did not find lowmem option.'
  19. fi