Skip to content

Commit 4f3c774

Browse files
committed
Add test for #622.
1 parent 6109a8e commit 4f3c774

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed

test/issue622-subpackage-complex.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
cd ${CURR_DIR}/issue622-subpackage-complex
4+
rm -rf foo/.dub
5+
rm -rf .dub
6+
${DUB} build --bare --compiler=${COMPILER} test:test || exit 1
7+
${DUB} run --bare --compiler=${COMPILER} test:test || exit 1
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "test",
3+
"subPackages": [
4+
"./foo/",
5+
{
6+
"name":"test",
7+
"targetType": "executable",
8+
"targetName": "test",
9+
"version": "~master",
10+
"dependencies": {
11+
"test:foo": "~master"
12+
}
13+
}
14+
]
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"name": "foo"
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module foo;
2+
3+
void foo() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module test;
2+
3+
import foo;
4+
5+
void main()
6+
{
7+
foo.foo();
8+
}

0 commit comments

Comments
 (0)