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

Add -tags option to test script #103

Merged
merged 1 commit into from
Jun 20, 2017
Merged

Add -tags option to test script #103

merged 1 commit into from
Jun 20, 2017

Conversation

bboreham
Copy link
Contributor

@bboreham bboreham commented Jun 9, 2017

So callers can pass in build tags.
This helps to ensure tests are run with the same tags as builds, and also avoids recompiling the code between build and test when the Go compiler sees the tags are different.

Also separate tags from -tags and quote the string, so we can have
more than one tag.
shift 1
;;
"-tags")
TAGS="$2"

This comment was marked as abuse.

This comment was marked as abuse.

@marccarre marccarre merged commit e1c6c24 into master Jun 20, 2017
@marccarre marccarre deleted the test-build-tags branch June 20, 2017 09:40
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