Skip to content

Commit 0c60f41

Browse files
committed
Improve license detection tests
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent fd43393 commit 0c60f41

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
declared_license:
2-
declared_license_expression: gpl-1.0-plus AND other-permissive AND public-domain AND fsf-unlimited-no-warranty
2+
declared_license_expression: gpl-2.0-plus AND other-permissive AND public-domain AND fsf-unlimited-no-warranty
33
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
44
AND lgpl-2.1-plus AND gpl-1.0-plus AND gpl-2.0-plus AND (other-permissive AND other-copyleft)
55
AND bsd-new AND bsd-new AND (bsd-new OR gpl-1.0-plus) AND x11-xconsortium AND public-domain
66
AND public-domain AND ocb-open-source-2013 AND ocb-open-source-2013 AND ocb-open-source-2013
77
AND ocb-open-source-2013 AND gpl-2.0
8-
declared_license_expression_spdx: GPL-1.0-or-later AND LicenseRef-scancode-other-permissive
8+
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)
1010
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
1111
GPL-1.0-or-later AND GPL-2.0-or-later AND (LicenseRef-scancode-other-permissive AND LicenseRef-scancode-other-copyleft)
@@ -16,14 +16,14 @@ declared_license_expression_spdx: GPL-1.0-or-later AND LicenseRef-scancode-other
1616
other_license_expression:
1717
other_license_expression_spdx:
1818
license_detections:
19-
- license_expression: gpl-1.0-plus AND other-permissive AND public-domain AND fsf-unlimited-no-warranty
19+
- license_expression: gpl-2.0-plus AND other-permissive AND public-domain AND fsf-unlimited-no-warranty
2020
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
21-
license_expression_spdx: GPL-1.0-or-later AND LicenseRef-scancode-other-permissive AND LicenseRef-scancode-public-domain
21+
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
2323
GPL-2.0-or-later) AND LGPL-2.0-or-later
2424
matches:
25-
- license_expression: gpl-1.0-plus
26-
spdx_license_expression: GPL-1.0-or-later
25+
- license_expression: gpl-2.0-plus
26+
spdx_license_expression: GPL-2.0-or-later
2727
from_file:
2828
start_line: 210
2929
end_line: 211
@@ -32,8 +32,8 @@ license_detections:
3232
matched_length: 8
3333
match_coverage: '100.0'
3434
rule_relevance: 100
35-
rule_identifier: gpl-1.0-plus_477.RULE
36-
rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-1.0-plus_477.RULE
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
3737
matched_text: |
3838
taken from the
3939
original NTT provided GPL source.
@@ -149,7 +149,7 @@ license_detections:
149149
rule_identifier: lgpl-2.0-plus_467.RULE
150150
rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-2.0-plus_467.RULE
151151
matched_text: the license headers of the LGPL
152-
identifier: gpl_1_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-71da280b-c092-be79-7ec6-e3cc205ddfd8
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
153153
- license_expression: lgpl-2.1-plus AND gpl-1.0-plus
154154
license_expression_spdx: LGPL-2.1-or-later AND GPL-1.0-or-later
155155
matches:

0 commit comments

Comments
 (0)