Newer
Older
dub_jkp / test / 0-init-fail.sh
@Martin Nowak Martin Nowak on 13 Apr 2015 299 bytes directly run the dub init test scripts
#!/bin/bash

packname="0-init-fail-pack"
deps="logger PACKAGE_DONT_EXIST" # would be very unlucky if it does exist...

$DUB init $packname $deps

function cleanup {
    rm -rf $packname
}

if [ -e $packname/dub.json ]; then # package is there, it should have failed
    cleanup
    exit 1
fi
exit 0