Skip to content

Split protable vector types tests into multiple crates #379

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

Merged
merged 2 commits into from
Mar 18, 2018

Conversation

gnzlbg
Copy link
Contributor

@gnzlbg gnzlbg commented Mar 17, 2018

The tests are still defined inline with the code but now there are a bunch of macros that control whether they are compiled or not.

The crates/coresimd_v{...}_tests then define these macros to include the tests.

To avoid recompiling coresimd, these crates add it as a dependency, and they include ppsv module using #[path = "..."].

@gnzlbg gnzlbg requested a review from alexcrichton March 17, 2018 15:32
Cargo.toml Outdated
@@ -2,6 +2,12 @@
members = [
"crates/stdsimd-verify",
"crates/stdsimd",
"crates/coresimd_v16_tests",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could these perhaps be organized under crates/coresimd/tests/*.rs?

That'd mean that cargo test -p coresimd should hopefully pick up everything

@alexcrichton
Copy link
Member

Looks great to me! My only real comment is about moving these to unit test crates rather than actual crates (which I think won't be too hard?), but otherwise looks good!

@gnzlbg
Copy link
Contributor Author

gnzlbg commented Mar 18, 2018

@alexcrichton done! I've never thought about the files in the tests/ directory as "crates" ! But that's exactly what they are, thanks!

@gnzlbg
Copy link
Contributor Author

gnzlbg commented Mar 18, 2018

I've merged the rustc reduction intrinsics here to remove the codegen modules.

@alexcrichton alexcrichton merged commit c5cf3bc into rust-lang:master Mar 18, 2018
@rust-lang rust-lang deleted a comment Jun 24, 2018
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.

2 participants