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

test: add unit tests for zig module extension #270

Merged
merged 15 commits into from
Apr 21, 2024
Merged

test: add unit tests for zig module extension #270

merged 15 commits into from
Apr 21, 2024

Conversation

aherrmann
Copy link
Owner

@aherrmann aherrmann commented Apr 21, 2024

Closes #257

Factor out the version selection logic and create unit tests for it.

  • Move zig/extensions.bzl -> zig/private/bzlmod/
  • update generated files
  • change symbol visibility
  • Start bzlmod test suite
  • test skeleton
  • test default version handling
  • test single version case
  • version ordering
  • deduplication
  • handle default version
  • deduplicate default
  • only root may set default
  • no duplicate default
  • Use handle_tags in module extension

`fail(*err)` on a tuple seems to crash
@aherrmann aherrmann merged commit 180e950 into main Apr 21, 2024
40 of 42 checks passed
@aherrmann aherrmann deleted the bzlmod-tests branch April 21, 2024 10:56
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.

Support multiple Zig versions
1 participant