Skip to content
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

Make the testsuite re-runnable on OSX #1946

Merged
merged 7 commits into from
May 19, 2020

Conversation

Geod24
Copy link
Member

@Geod24 Geod24 commented May 18, 2020

This does two things:

  • It makes the test-suite pass on OSX (or at least, on my machine);
  • It makes some tests re-runnable so they don't fail miserably after the first run;

There's still a lot to do, like cleaning up the mess the testsuite create, or not messing up with the users packages, but one step at a time.

Part of #1829

@dlang-bot
Copy link
Collaborator

Thanks for your pull request, @Geod24!

@Geod24 Geod24 mentioned this pull request May 18, 2020
Geod24 added 7 commits May 18, 2020 21:08
…oducible

It's a terrible solution, but it works for the time being.
After the initial run, one couldn't run this test again as the expected message
'building configuration' would not be printed anymore.
It's the little things in life, like being able to re-run your test-suite
on your own machine, that makes the greatest joy.
This currently fails on Mac because the '.so' is hardcoded.
It should eventually be fixed, but for the time being,
my objective is to get things to pass on my machine.
Who would have known that the following would pass on Linux but not Mac OSX:
---
touch file
rm -f file/nonono
---
Well surely not me. And indeed "b" is a file, not a directory,
so this rm didn't make sense. Just use dub clean. Like the rest of us.
On Mac OSX, this script fails because of the behavior of pipefail.
A simple ' || true' solves the problem, while 'grep' still ensures
it behaves as expected.
This test is only supposed to be run, not unittested.
It can create a problem when one wants to re-run the test suite,
as if the unittest have been built, there's an extra file in the bin directory,
which in turns makes the test fail.
@Geod24 Geod24 force-pushed the cross-platform-testsuite branch from d323398 to 0744aac Compare May 18, 2020 12:09
@Geod24
Copy link
Member Author

Geod24 commented May 18, 2020

Fixed the micro failure (missing || true after the remove).

@Geod24 Geod24 merged commit ac29f3d into dlang:master May 19, 2020
@Geod24 Geod24 deleted the cross-platform-testsuite branch May 19, 2020 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants