Skip to content

Commit 67138f8

Browse files
committed
Add the Phobos v3 unit tests to the regular unittest build.
This probably isn't the best way to do this, and presumably, it'll need to be reworked at some point (just like the Phobos v3 build in general likely will need to be reworked), but this should at least make it so that the Phobos v3 tests get run as part of the CI.
1 parent 140484a commit 67138f8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ else
344344
unittest : unittest-debug unittest-release
345345
unittest-%:
346346
$(MAKE) unittest OS=$(OS) MODEL=$(MODEL) DMD=$(DMD) BUILD=$*
347+
dub test --build=unittest-$*
347348
endif
348349

349350
################################################################################

dub.sdl

+8
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,11 @@ configuration "unittest" {
1818
targetPath "generated-lib"
1919
#excludedSourceFiles "unittest.d" "test/**" "std/**" "tools/**" "etc/**"
2020
}
21+
22+
buildType "unittest-debug" {
23+
buildOptions "unittests" "debugMode" "debugInfo"
24+
}
25+
26+
buildType "unittest-release" {
27+
buildOptions "unittests" "releaseMode" "optimize"
28+
}

0 commit comments

Comments
 (0)