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

Create a licence_test rule #30

Merged
merged 2 commits into from
Sep 21, 2022
Merged

Create a licence_test rule #30

merged 2 commits into from
Sep 21, 2022

Conversation

cfrantz
Copy link
Contributor

@cfrantz cfrantz commented Sep 20, 2022

The license_test rule executes the licence checker as a bazel test
(rather than an executable), thus allowing an upstream project to
use the rule as part of a set of presubmit tests.

Signed-off-by: Chris Frantz [email protected]

Signed-off-by: Chris Frantz <[email protected]>
Copy link

@milesdai milesdai left a comment

Choose a reason for hiding this comment

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

LGTM

rules/rules.bzl Outdated
default = "//rules:licence-checker-config.template.hjson",
allow_single_file = True,
),
"_sh_runfiles": attr.label(

Choose a reason for hiding this comment

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

Are we using the _sh_runfiles attribute anywhere in this rule, or can it be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apparently not. Removed.

The `license_test` rule executes the licence checker as a bazel test
(rather than an executable), thus allowing an upstream project to
use the rule as part of a set of presubmit tests.

Signed-off-by: Chris Frantz <[email protected]>
@cfrantz cfrantz merged commit 5d6bf81 into lowRISC:master Sep 21, 2022
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