diff --git a/test/issue1574-addcommand.sh b/test/issue1574-addcommand.sh index e84e1ac..c2fb1c7 100755 --- a/test/issue1574-addcommand.sh +++ b/test/issue1574-addcommand.sh @@ -1,11 +1,20 @@ #!/usr/bin/env bash -. $(dirname "${BASH_SOURCE[0]}")/common.sh +DIR=$(dirname "${BASH_SOURCE[0]}") +. "$DIR"/common.sh + +PORT=$(($$ + 1024)) # PID + 1024 tempDir="issue1574-addcommand" +"$DUB" build --single "$DIR"/test_registry.d +"$DIR"/test_registry --folder="$DIR/issue1336-registry" --port=$PORT & +PID=$! +sleep 1 + function cleanup { cd .. rm -rf $tempDir + kill $PID 2>/dev/null || true } trap cleanup EXIT @@ -13,9 +22,9 @@ $DUB init -n $tempDir cd $tempDir -echo "import mir.math.common; void main(){}" > source/app.d +echo "import gitcompatibledubpackage.subdir.file; void main(){}" > source/app.d -$DUB add mir-core +$DUB add gitcompatibledubpackage --skip-registry=all --registry=http://localhost:$PORT #if dub fails to compile, that means that the "import mir.math.common" did not work if ! $DUB build; then diff --git a/test/issue1574-addcommand.sh.min_frontend b/test/issue1574-addcommand.sh.min_frontend new file mode 100644 index 0000000..bb0a2e1 --- /dev/null +++ b/test/issue1574-addcommand.sh.min_frontend @@ -0,0 +1 @@ +2.076