Skip to content

Commit bf670c3

Browse files
committed
Adjust tests to latest code
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent c0f7a72 commit bf670c3

File tree

4 files changed

+25
-28
lines changed

4 files changed

+25
-28
lines changed

tests/licensedcode/data/datadriven/external/glc/GFDL-1.1.t2.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
license_expressions:
2-
- gfdl-1.1-invariants-or-later
2+
- gfdl-1.1-plus
3+
- gfdl-1.3-invariants-only
4+
- gfdl-1.3-invariants-only
5+
- gfdl-1.3-invariants-only
6+
- gfdl-1.3
37
notes: |
48
License test derived from a file of the BSD-licensed repository at:
59
https://raw.githubusercontent.com/google/licensecheck/v0.3.1/testdata/GFDL-1.1.t2

tests/licensedcode/data/datadriven/external/glc/GFDL-1.1.t3.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
license_expressions:
2-
- gfdl-1.1-invariants-only
2+
- gfdl-1.1
3+
- gfdl-1.3-invariants-only
4+
- gfdl-1.3-invariants-only
35
notes: |
46
License test derived from a file of the BSD-licensed repository at:
57
https://raw.githubusercontent.com/google/licensecheck/v0.3.1/testdata/GFDL-1.1.t3

tests/licensedcode/data/datadriven/external/glc/GFDL-1.1.t4.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
license_expressions:
2-
- gfdl-1.1-invariants-only
2+
- gfdl-1.1
3+
- gfdl-1.3-invariants-only
4+
- gfdl-1.3-invariants-only
5+
- gfdl-1.3-invariants-only
6+
- gfdl-1.3
37
notes: |
48
License test derived from a file of the BSD-licensed repository at:
59
https://raw.githubusercontent.com/google/licensecheck/v0.3.1/testdata/GFDL-1.1.t4

tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libgcrypt20/copyright-detailed.expected.yml

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
declared_license:
22
declared_license_expression: gpl-2.0-plus AND other-permissive AND public-domain AND fsf-unlimited-no-warranty
3-
AND (lgpl-2.1-plus AND gpl-2.0-plus) AND (lgpl-2.0-plus AND gpl-2.0-plus) AND lgpl-2.0-plus
4-
AND lgpl-2.1-plus AND gpl-1.0-plus AND gpl-2.0-plus AND (other-permissive AND other-copyleft)
5-
AND bsd-new AND bsd-new AND (bsd-new OR gpl-1.0-plus) AND x11-xconsortium AND public-domain
6-
AND public-domain AND ocb-open-source-2013 AND ocb-open-source-2013 AND ocb-open-source-2013
7-
AND ocb-open-source-2013 AND gpl-2.0
3+
AND (lgpl-2.1-plus AND gpl-2.0-plus) AND (lgpl-2.0-plus AND gpl-2.0-plus) AND lgpl-2.1-plus
4+
AND gpl-1.0-plus AND gpl-2.0-plus AND (other-permissive AND other-copyleft) AND bsd-new AND
5+
bsd-new AND (bsd-new OR gpl-1.0-plus) AND x11-xconsortium AND public-domain AND public-domain
6+
AND ocb-open-source-2013 AND ocb-open-source-2013 AND ocb-open-source-2013 AND ocb-open-source-2013
7+
AND gpl-2.0
88
declared_license_expression_spdx: GPL-2.0-or-later AND LicenseRef-scancode-other-permissive
99
AND LicenseRef-scancode-public-domain AND FSFULLRWD AND (LGPL-2.1-or-later AND GPL-2.0-or-later)
10-
AND (LGPL-2.0-or-later AND GPL-2.0-or-later) AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND
11-
GPL-1.0-or-later AND GPL-2.0-or-later AND (LicenseRef-scancode-other-permissive AND LicenseRef-scancode-other-copyleft)
10+
AND (LGPL-2.0-or-later AND GPL-2.0-or-later) AND LGPL-2.1-or-later AND GPL-1.0-or-later AND
11+
GPL-2.0-or-later AND (LicenseRef-scancode-other-permissive AND LicenseRef-scancode-other-copyleft)
1212
AND BSD-3-Clause AND BSD-3-Clause AND (BSD-3-Clause OR GPL-1.0-or-later) AND X11 AND LicenseRef-scancode-public-domain
1313
AND LicenseRef-scancode-public-domain AND LicenseRef-scancode-ocb-open-source-2013 AND LicenseRef-scancode-ocb-open-source-2013
1414
AND LicenseRef-scancode-ocb-open-source-2013 AND LicenseRef-scancode-ocb-open-source-2013
@@ -17,10 +17,10 @@ other_license_expression:
1717
other_license_expression_spdx:
1818
license_detections:
1919
- license_expression: gpl-2.0-plus AND other-permissive AND public-domain AND fsf-unlimited-no-warranty
20-
AND (lgpl-2.1-plus AND gpl-2.0-plus) AND (lgpl-2.0-plus AND gpl-2.0-plus) AND lgpl-2.0-plus
20+
AND (lgpl-2.1-plus AND gpl-2.0-plus) AND (lgpl-2.0-plus AND gpl-2.0-plus)
2121
license_expression_spdx: GPL-2.0-or-later AND LicenseRef-scancode-other-permissive AND LicenseRef-scancode-public-domain
2222
AND FSFULLRWD AND (LGPL-2.1-or-later AND GPL-2.0-or-later) AND (LGPL-2.0-or-later AND
23-
GPL-2.0-or-later) AND LGPL-2.0-or-later
23+
GPL-2.0-or-later)
2424
matches:
2525
- license_expression: gpl-2.0-plus
2626
spdx_license_expression: GPL-2.0-or-later
@@ -32,8 +32,8 @@ license_detections:
3232
matched_length: 8
3333
match_coverage: '100.0'
3434
rule_relevance: 100
35-
rule_identifier: gpl-2.0-plus_1130.RULE
36-
rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0-plus_1130.RULE
35+
rule_identifier: gpl-2.0-plus_11301.RULE
36+
rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0-plus_11301.RULE
3737
matched_text: |
3838
taken from the
3939
original NTT provided GPL source.
@@ -136,20 +136,7 @@ license_detections:
136136
less to protect the freedom of the users of the code that it
137137
covers. See http://www.gnu.org/philosophy/why-not-lgpl.html for
138138
more explanation.
139-
- license_expression: lgpl-2.0-plus
140-
spdx_license_expression: LGPL-2.0-or-later
141-
from_file:
142-
start_line: 262
143-
end_line: 262
144-
matcher: 2-aho
145-
score: '100.0'
146-
matched_length: 6
147-
match_coverage: '100.0'
148-
rule_relevance: 100
149-
rule_identifier: lgpl-2.0-plus_467.RULE
150-
rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-2.0-plus_467.RULE
151-
matched_text: the license headers of the LGPL
152-
identifier: gpl_2_0_plus_and_other_permissive_and_public_domain_and_fsf_unlimited_no_warranty_and__lgpl_2_1_plus_and_gpl_2_0_plus__and__lgpl_2_0_plus_and_gpl_2_0_plus__and_lgpl_2_0_plus-6359b4f1-d70d-80e3-139e-2ba62f0fe9a8
139+
identifier: gpl_2_0_plus_and_other_permissive_and_public_domain_and_fsf_unlimited_no_warranty_and__lgpl_2_1_plus_and_gpl_2_0_plus__and__lgpl_2_0_plus_and_gpl_2_0_plus-be7f4a34-02e4-4203-9dd6-a581178f6ca1
153140
- license_expression: lgpl-2.1-plus AND gpl-1.0-plus
154141
license_expression_spdx: LGPL-2.1-or-later AND GPL-1.0-or-later
155142
matches:

0 commit comments

Comments
 (0)