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

Support more than one test file per license #190

Open
goneall opened this issue Dec 17, 2024 · 2 comments
Open

Support more than one test file per license #190

goneall opened this issue Dec 17, 2024 · 2 comments

Comments

@goneall
Copy link
Member

goneall commented Dec 17, 2024

Propose to test not just
test/simpleTestForGenerator/${LICENSE}.txt
but also
test/simpleTestForGenerator/${LICENSE}.*.txt
files. If they exists.

Reference spdx/license-list-XML#2635 proposed by @xsuchy

@goneall
Copy link
Member Author

goneall commented Dec 17, 2024

Note that we already have an implementation that supports multiple license tests - https://github.com/spdx/LicenseListPublisher/blob/master/src/org/spdx/licenselistpublisher/licensegenerator/LicenseTester.java

 * Test SPDX licenses against a directory of test licenses.
 *
 * The directory of test licenses contains license text with the following file naming convention:
 *
 * {license-id}/(license|header|exception)/(good|bad)/{test-id}.txt

@goneall
Copy link
Member Author

goneall commented Dec 17, 2024

Note that the LicenseXmlTester currently does not use the LicenseTester interface - this should be changed to use the common code as the publisher.

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

No branches or pull requests

1 participant