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

package-shared unittest functions should not be under version(unittest) #3403

Merged
merged 2 commits into from Jun 12, 2015

Conversation

andralex
Copy link
Member

Package-shared artifacts used only for unittesting should not be versioned with version(unittest) because that precludes unittesting one or more modules against the build library. Example:

make std/experimental/logger.test

has link-time errors. This PR fixes them.

@andralex
Copy link
Member Author

Incidentally there's a speedup too:

make -j8 BUILD=debug unittest

takes 48 seconds on my laptop, whereas

make -j8 BUILD=debug std.test

takes 45.

…o added mktemp to run each unittest in its own dir
@andralex
Copy link
Member Author

Also tried on a big iron at work with -j64, 24s with the old unittest target, 20s with the new one (debug mode).

@burner
Copy link
Member

burner commented Jun 12, 2015

LGTM

@burner
Copy link
Member

burner commented Jun 12, 2015

Auto-merge toggled on

burner added a commit that referenced this pull request Jun 12, 2015
package-shared unittest functions should not be under version(unittest)
@burner burner merged commit 8d2f6c4 into dlang:master Jun 12, 2015
@burner
Copy link
Member

burner commented Jun 12, 2015

@andralex #3400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants