-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Run rdmd testsuite properly #244
Conversation
Thanks for your pull request, @wilzbach! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
ae08ccb
to
629e42d
Compare
629e42d
to
ff92a74
Compare
@wilzbach thx! |
d670e5e
to
a9750db
Compare
Argh - it seems like we need to rework the testsuite to include |
8f9d924
to
3c511a7
Compare
Wohoo this is finally passing on Travis 🎉 |
rdmd_test.d
Outdated
@@ -88,65 +91,65 @@ void runTests() | |||
string forceSrc = tempDir().buildPath("force_src_.d"); | |||
std.file.write(forceSrc, `void main() { pragma(msg, "compile_force_src"); }`); | |||
|
|||
res = execute([rdmdApp, compilerSwitch, forceSrc]); | |||
res = execute([rdmdApp, compilerSwitch, modelSwitch, forceSrc]); |
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.
Is there any instance of compilerSwitch
that's not accompanied by an instance of of modelSwitch
? If no, then just append model to compilerSwitch
.
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.
Is there any instance of compilerSwitch that's not accompanied by an instance of of modelSwitch?
Nope, but as execute
excepts an array, we can't do ["dmd", "--compiler=foo -m32", ...]
.
Btw (a bit OT): is there any reason that execute
doesn't allow ranges?
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.
You can just break the array and concatenate sub-arrays.
Anyway I looked and rdmdApp
always occurs together with compilerSwitch
, so I'd refactor those into an array, so that the invocation looks like execute(rdmdArgs ~ [...])
3c511a7
to
6dee858
Compare
Fair enough. Done. |
build_digger() { | ||
git clone --recursive https://github.com/CyberShadow/Digger "$DIGGER_DIR" | ||
(cd "$DIGGER_DIR" && rdmd --build-only -debug digger) | ||
} | ||
|
||
install_digger() { | ||
$DIGGER build --model=$MODEL "master" | ||
export PATH=$PWD/result/bin:$PATH | ||
export PATH=$PWD/work/result/bin:$PATH |
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.
I'd suggest pinning Digger to a specific version (as with DScanner) to avoid the breaking changes in Digger's master from affecting tools.
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.
Okay - will do this in another PR
Follow-up to #239 (comment)
This should make (1) it a lot easier to run the test suite properly (after all it's now part of the
test
Makefile target) and (2) should be a good step into debugging why Travis build succeed.Currently, however, it fails:
I have looked into fixing
rdmd_test
two weeks ago and the fix for this is still in the Phobos queue: dlang/phobos#5502CC @CyberShadow