-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement of integration test for windows #2917
Conversation
✅ PR OK, no changes in deprecations or warnings Total deprecations: 0 Total warnings: 0 Build statistics: statistics (-before, +after)
executable size=5259464 bin/dub
-rough build time=65s
+rough build time=66s Full build output
|
Regarding the OMF change, we need to merge stable into master, there is a fix for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Just rebase on master and address the comment and we're G2G.
test/run-unittest.d
Outdated
import std.path : absolutePath, buildPath, baseName, dirName, stripExtension, globMatch; | ||
import std.process : environment, spawnProcess, spawnShell, wait, ProcessConfig = Config; | ||
import std.string: cmp, splitLines; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this point I would just get rid of selective imports :)
test/run-unittest.d
Outdated
bool build; | ||
if (!pack.name.buildPath(".no_build").exists | ||
&& !pack.name.buildPath(".no_build_" ~ dc_bin).exists | ||
&& !pack.name.buildPath(".no_build_" ~ os).exists) | ||
{ | ||
//build=1 | ||
build = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bool build; | |
if (!pack.name.buildPath(".no_build").exists | |
&& !pack.name.buildPath(".no_build_" ~ dc_bin).exists | |
&& !pack.name.buildPath(".no_build_" ~ os).exists) | |
{ | |
//build=1 | |
build = true; | |
bool build =(!pack.name.buildPath(".no_build").exists | |
&& !pack.name.buildPath(".no_build_" ~ dc_bin).exists | |
&& !pack.name.buildPath(".no_build_" ~ os).exists); | |
if (build) | |
{ |
Slightly more readable.
Modified
run-unittest.d
to run integration tests for Windows.Also, since OMF was removed in the latest release (2.109.0), the OMF build test was removed.
With this PR, it is likely that
run-unittest.sh
will become unnecessary, but it has been left in place. This is to ensure that all tests can still be executed as before. As a result, some tests are currently being run twice. If there are no issues after some time, it would be preferable to remove it.