question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test license matching against more than one instance

See original GitHub issue

In this comment, @goneall pointed at LicenseRDFAGenerator.java as a way to test our license-matching against known-sufficient instances of each license’s text (maybe here? My Java is weak). However, a single test case is insufficient to exercise conditional inclusions like the new XML <alt …> and <optional> sections. I’d rather see a corpus of known license instances (e.g. BSD-2-Clause/good/basic.txt, BSD-2-Clause/good/altered-copyright-holder.txt, BSD-2-Clause/bad/additional-condition.txt, …) to ensure we successfully match license instances that those short identifiers are intended to correspond to. That way we know that the <alt …>, <optional>, etc. markup and the spec’s matching guidelines are as broad (or narrow) as the legal team expects them to be.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
goneallcommented, Sep 15, 2017

@wking Excellent suggestions. Agree with all points. @jmanbeck has already created a repository with test files for testing license scanners: https://github.com/spdx/license-test-files

We can add a directory for the full license file text tests in your suggested formats and update the README to reflect the new test files.

It is a bit more work for the tools (I need to add the git checkout code), so it may take a little longer to implement - but I feel it is worth it to make life easier for the submitters of test files.

0reactions
goneallcommented, Sep 22, 2017

Added testing in commit 7e4de292700d84714d6d05a1a3310b9f26ccb1dc

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Divide or Combine License Keys in Customer Connect ...
How to combine license keys: 1. Log in to Customer Connect. ... The total quantity of licenses must be greater than 1.
Read more >
Frequently Asked Questions | License Server - JetBrains
Only one host instance can process a specific pool of licenses at a time. However, you can host different servers for different license...
Read more >
Veeam Licensing Policy
Legacy Instance licenses will be re-calculated based one-to-one match (e.g. 10 Instances Standard Edition will match 10 Instances of Veeam Universal Licenses).
Read more >
NVIDIA License System User Guide
Documentation for system administrators that explains how to install, configure, and manage the NVIDIA License System.
Read more >
License compliance - GitLab Docs
License compliance can read multiple licenses, but always considers them combined using the AND operator. For example, if a dependency has two licenses,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found