Newer
Older
dub_jkp / test / issue103-single-file-package.sh
#!/bin/sh
set -e
cd ${CURR_DIR}
rm -f single-file-test

${DUB} run --single issue103-single-file-package-json.d --compiler=${DC}
if [ ! -f single-file-test ]; then
	echo "Normal invocation did not produce a binary in the current directory"
	exit 1
fi
rm single-file-test

./issue103-single-file-package.d foo -- bar

${DUB} issue103-single-file-package-w-dep.d

if [ -f single-file-test ]; then
	echo "Shebang invocation produced binary in current directory"
	exit 1
fi