Newer
Older
dub_jkp / test / issue1396-pre-post-run-commands.sh
@andre2007 andre2007 on 6 Nov 2018 314 bytes Pre/post run commands added
#!/usr/bin/env bash

. $(dirname "${BASH_SOURCE[0]}")/common.sh
cd ${CURR_DIR}/issue1396-pre-post-run-commands
rm -rf .dub
rm -rf test.txt
"$DUB"

if ! grep -c -e "pre-run" test.txt; then
	die $LINENO 'pre run not executed.'
fi

if ! grep -c -e "post-run-0" test.txt; then
	die $LINENO 'post run not executed.'
fi