Newer
Older
dub_jkp / test / issue1396-pre-post-run-commands.sh
@andre2007 andre2007 on 6 Nov 2018 314 bytes Pre/post run commands added
  1. #!/usr/bin/env bash
  2.  
  3. . $(dirname "${BASH_SOURCE[0]}")/common.sh
  4. cd ${CURR_DIR}/issue1396-pre-post-run-commands
  5. rm -rf .dub
  6. rm -rf test.txt
  7. "$DUB"
  8.  
  9. if ! grep -c -e "pre-run" test.txt; then
  10. die $LINENO 'pre run not executed.'
  11. fi
  12.  
  13. if ! grep -c -e "post-run-0" test.txt; then
  14. die $LINENO 'post run not executed.'
  15. fi