Skip to content

Commit

Permalink
Add the Phobos v3 unit tests to the regular unittest build.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jmdavis committed Apr 6, 2024
1 parent 23e5d21 commit a427aeb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ else
unittest : unittest-debug unittest-release
unittest-%:
$(MAKE) unittest OS=$(OS) MODEL=$(MODEL) DMD=$(DMD) BUILD=$*
dub test --build=unittest-$*
endif

################################################################################
Expand Down
8 changes: 8 additions & 0 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@ configuration "unittest" {
targetPath "generated-lib"
#excludedSourceFiles "unittest.d" "test/**" "std/**" "tools/**" "etc/**"
}

buildType "unittest-debug" {
buildOptions "unittests" "debugMode" "debugInfo"
}

buildType "unittest-release" {
buildOptions "unittests" "releaseMode" "optimize"
}

0 comments on commit a427aeb

Please sign in to comment.