Skip to content

Commit

Permalink
add test case for #2618
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Mar 9, 2023
1 parent 2f0e898 commit ab12c51
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/issue2618-targetType-none-postBuildActions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -e

. $(dirname "${BASH_SOURCE[0]}")/common.sh

cd "${CURR_DIR}/issue2618-targetType-none-postBuildActions"

$DUB build --force
Empty file.
Empty file.
Empty file.
16 changes: 16 additions & 0 deletions test/issue2618-targetType-none-postBuildActions/b/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.dub
docs.json
__dummy.html
docs/
/projb
projb.so
projb.dylib
projb.dll
projb.a
projb.lib
projb-test-*
*.exe
*.pdb
*.o
*.obj
*.lst
3 changes: 3 additions & 0 deletions test/issue2618-targetType-none-postBuildActions/b/dub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "b"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module projb;
import std.stdio;

int getDependency()
{
writeln("Edit source/app.d to start your project.");
return 10;
}
19 changes: 19 additions & 0 deletions test/issue2618-targetType-none-postBuildActions/dub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"dependencies": {
"b": {"path": "b"}
},
"postBuildCommands": [
"$DUB -c dependencies"
],
"configurations": [
{
"name": "main",
"targetType": "staticLibrary"
},
{
"name": "dependencies",
"targetType":"none"
}
],
"name": "issue2618"
}
6 changes: 6 additions & 0 deletions test/issue2618-targetType-none-postBuildActions/source/app.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import std.stdio;

void main()
{
writeln("Edit source/app.d to start your project.");
}

0 comments on commit ab12c51

Please sign in to comment.