diff --git a/test/issue103-single-file-package-json.d b/test/issue103-single-file-package-json.d new file mode 100644 index 0000000..978593b --- /dev/null +++ b/test/issue103-single-file-package-json.d @@ -0,0 +1,10 @@ +/+ dub.json: { + "name": "hello_world" +} +/ +module hello; + +void main() +{ + import std.stdio : writeln; + writeln("Hello, World!"); +} diff --git a/test/issue103-single-file-package-w-dep.d b/test/issue103-single-file-package-w-dep.d new file mode 100644 index 0000000..54f4d28 --- /dev/null +++ b/test/issue103-single-file-package-w-dep.d @@ -0,0 +1,12 @@ +/+ dub.sdl: +name "hello_world" +dependency "sourcelib-simple" path="1-sourceLib-simple" ++/ +module hello; + +import sourcelib.app; + +void main() +{ + entry(); +} diff --git a/test/issue103-single-file-package.d b/test/issue103-single-file-package.d new file mode 100644 index 0000000..97e6179 --- /dev/null +++ b/test/issue103-single-file-package.d @@ -0,0 +1,11 @@ +#!../bin/dub +/+ dub.sdl: + name "hello_world" ++/ +module hello; + +void main() +{ + import std.stdio : writeln; + writeln("Hello, World!"); +} diff --git a/test/issue103-single-file-package.sh b/test/issue103-single-file-package.sh new file mode 100644 index 0000000..f91fa2e --- /dev/null +++ b/test/issue103-single-file-package.sh @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +cd ${CURR_DIR} +./issue103-single-file-package.d +${DUB} run --single issue103-single-file-package-json.d --compiler=${DC} +${DUB} issue103-single-file-package-w-dep.d --compiler=${DC}