Skip to content

Commit e44733f

Browse files
committed
Update expected results to latest SPDX
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent b6ff6a0 commit e44733f

File tree

6 files changed

+114
-75
lines changed

6 files changed

+114
-75
lines changed

tests/formattedcode/data/spdx/license_known/expected.tv

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Document Information
2-
SPDXVersion: SPDX-2.1
2+
SPDXVersion: SPDX-2.2
33
DataLicense: CC0-1.0
4+
DocumentNamespace: http://spdx.org/spdxdocs/scan
5+
DocumentName: SPDX Document created by ScanCode Toolkit
6+
LicenseListVersion: 3.14
47
SPDXID: SPDXRef-DOCUMENT
5-
DocumentNamespace: http://spdx.org/spdxdocs/scan-ab8a6f7e-3a9a-466f-964f-be56571a3c19
68
DocumentComment: <text>Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
79
OR CONDITIONS OF ANY KIND, either express or implied. No content created from
810
ScanCode should be considered or used as legal advice. Consult an Attorney
@@ -12,6 +14,7 @@ Visit https://github.com/nexB/scancode-toolkit/ for support and download.</text>
1214
# Creation Info
1315
# Package
1416
PackageName: scan
17+
SPDXID: SPDXRef-001
1518
PackageDownloadLocation: NOASSERTION
1619
PackageVerificationCode: 517c26f04b5a3edaaa0c17bf1a6571953209e209
1720
PackageLicenseDeclared: NOASSERTION
@@ -21,12 +24,14 @@ PackageLicenseInfoFromFiles: CC0-1.0
2124
PackageCopyrightText: NONE
2225
# File
2326
FileName: ./scan/apache-2.0.LICENSE
27+
SPDXID: SPDXRef-2
2428
FileChecksum: SHA1: 2b8b815229aa8a61e483fb4ba0588b8b6c491890
2529
LicenseConcluded: NOASSERTION
2630
LicenseInfoInFile: Apache-2.0
2731
FileCopyrightText: NONE
2832
# File
2933
FileName: ./scan/cc0-1.0.LICENSE
34+
SPDXID: SPDXRef-3
3035
FileChecksum: SHA1: 172444e7c137eb5cd3cae530aca0879c90f7fada
3136
LicenseConcluded: NOASSERTION
3237
LicenseInfoInFile: CC0-1.0

tests/formattedcode/data/spdx/license_known/expected_with_text.tv

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Document Information
2-
SPDXVersion: SPDX-2.1
2+
SPDXVersion: SPDX-2.2
33
DataLicense: CC0-1.0
4+
DocumentNamespace: http://spdx.org/spdxdocs/scan
5+
DocumentName: SPDX Document created by ScanCode Toolkit
6+
LicenseListVersion: 3.14
47
SPDXID: SPDXRef-DOCUMENT
5-
DocumentNamespace: http://spdx.org/spdxdocs/scan-8f1122d0-e528-466c-a22e-04bc0b174984
68
DocumentComment: <text>Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
79
OR CONDITIONS OF ANY KIND, either express or implied. No content created from
810
ScanCode should be considered or used as legal advice. Consult an Attorney
@@ -12,6 +14,7 @@ Visit https://github.com/nexB/scancode-toolkit/ for support and download.</text>
1214
# Creation Info
1315
# Package
1416
PackageName: scan
17+
SPDXID: SPDXRef-001
1518
PackageDownloadLocation: NOASSERTION
1619
PackageVerificationCode: 517c26f04b5a3edaaa0c17bf1a6571953209e209
1720
PackageLicenseDeclared: NOASSERTION
@@ -21,12 +24,14 @@ PackageLicenseInfoFromFiles: CC0-1.0
2124
PackageCopyrightText: NONE
2225
# File
2326
FileName: ./scan/apache-2.0.LICENSE
27+
SPDXID: SPDXRef-2
2428
FileChecksum: SHA1: 2b8b815229aa8a61e483fb4ba0588b8b6c491890
2529
LicenseConcluded: NOASSERTION
2630
LicenseInfoInFile: Apache-2.0
2731
FileCopyrightText: NONE
2832
# File
2933
FileName: ./scan/cc0-1.0.LICENSE
34+
SPDXID: SPDXRef-3
3035
FileChecksum: SHA1: 172444e7c137eb5cd3cae530aca0879c90f7fada
3136
LicenseConcluded: NOASSERTION
3237
LicenseInfoInFile: CC0-1.0

tests/formattedcode/data/spdx/license_ref/expected.tv

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Document Information
2-
SPDXVersion: SPDX-2.1
2+
SPDXVersion: SPDX-2.2
33
DataLicense: CC0-1.0
4+
DocumentNamespace: http://spdx.org/spdxdocs/scan
5+
DocumentName: SPDX Document created by ScanCode Toolkit
6+
LicenseListVersion: 3.14
47
SPDXID: SPDXRef-DOCUMENT
5-
DocumentNamespace: http://spdx.org/spdxdocs/scan-25498bb4-1cfc-461c-a7cf-389008e49b5a
68
DocumentComment: <text>Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
79
OR CONDITIONS OF ANY KIND, either express or implied. No content created from
810
ScanCode should be considered or used as legal advice. Consult an Attorney
@@ -12,6 +14,7 @@ Visit https://github.com/nexB/scancode-toolkit/ for support and download.</text>
1214
# Creation Info
1315
# Package
1416
PackageName: scan
17+
SPDXID: SPDXRef-001
1518
PackageDownloadLocation: NOASSERTION
1619
PackageVerificationCode: b49eeefd776fb76555378d07fd05d986a249a2b3
1720
PackageLicenseDeclared: NOASSERTION
@@ -25,6 +28,7 @@ PackageCopyrightText: <text>Copyright (c) 2017 nexB Inc. and others
2528
</text>
2629
# File
2730
FileName: ./scan/NOTICE
31+
SPDXID: SPDXRef-2
2832
FileChecksum: SHA1: f9c28fa2714ad0c2e36d3e5561afb0031fa76831
2933
LicenseConcluded: NOASSERTION
3034
LicenseInfoInFile: Apache-2.0
@@ -36,16 +40,19 @@ FileCopyrightText: <text>Copyright (c) 2017 nexB Inc. and others
3640
</text>
3741
# Extracted Licenses
3842
LicenseID: LicenseRef-scancode-other-copyleft
43+
LicenseName: Other Copyleft Licenses
3944
LicenseComment: <text>See details at https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/other-copyleft.yml
4045
</text>
4146
ExtractedText: <text>See details at https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/other-copyleft.yml
4247
</text>
4348
LicenseID: LicenseRef-scancode-other-permissive
49+
LicenseName: Other Permissive Licenses
4450
LicenseComment: <text>See details at https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/other-permissive.yml
4551
</text>
4652
ExtractedText: <text>See details at https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/other-permissive.yml
4753
</text>
4854
LicenseID: LicenseRef-scancode-scancode-acknowledgment
55+
LicenseName: ScanCode generated data acknowledgment
4956
LicenseComment: <text>See details at https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/scancode-acknowledgment.yml
5057
</text>
5158
ExtractedText: <text>See details at https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/scancode-acknowledgment.yml

tests/formattedcode/data/spdx/license_ref/expected_with_text.tv

Lines changed: 33 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Document Information
2-
SPDXVersion: SPDX-2.1
2+
SPDXVersion: SPDX-2.2
33
DataLicense: CC0-1.0
4+
DocumentNamespace: http://spdx.org/spdxdocs/scan
5+
DocumentName: SPDX Document created by ScanCode Toolkit
6+
LicenseListVersion: 3.14
47
SPDXID: SPDXRef-DOCUMENT
5-
DocumentNamespace: http://spdx.org/spdxdocs/scan-ff644ef5-7b50-4793-ac2e-69cb1a0bece3
68
DocumentComment: <text>Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
79
OR CONDITIONS OF ANY KIND, either express or implied. No content created from
810
ScanCode should be considered or used as legal advice. Consult an Attorney
@@ -12,6 +14,7 @@ Visit https://github.com/nexB/scancode-toolkit/ for support and download.</text>
1214
# Creation Info
1315
# Package
1416
PackageName: scan
17+
SPDXID: SPDXRef-001
1518
PackageDownloadLocation: NOASSERTION
1619
PackageVerificationCode: b49eeefd776fb76555378d07fd05d986a249a2b3
1720
PackageLicenseDeclared: NOASSERTION
@@ -25,6 +28,7 @@ PackageCopyrightText: <text>Copyright (c) 2017 nexB Inc. and others
2528
</text>
2629
# File
2730
FileName: ./scan/NOTICE
31+
SPDXID: SPDXRef-2
2832
FileChecksum: SHA1: f9c28fa2714ad0c2e36d3e5561afb0031fa76831
2933
LicenseConcluded: NOASSERTION
3034
LicenseInfoInFile: Apache-2.0
@@ -36,6 +40,7 @@ FileCopyrightText: <text>Copyright (c) 2017 nexB Inc. and others
3640
</text>
3741
# Extracted Licenses
3842
LicenseID: LicenseRef-scancode-other-copyleft
43+
LicenseName: Other Copyleft Licenses
3944
LicenseComment: <text>See details at https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/other-copyleft.yml
4045
</text>
4146
ExtractedText: <text>Software license
@@ -53,12 +58,12 @@ CONDITIONS OF ANY KIND, either express or implied. See the License for the
5358
specific language governing permissions and limitations under the License.
5459
When you publish or redistribute any data created with ScanCode or any ScanCode
5560
derivative work, you must accompany this data with the following acknowledgment:
56-
Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
57-
OR CONDITIONS OF ANY KIND, either express or implied. No content created from
58-
ScanCode should be considered or used as legal advice. Consult an Attorney
59-
for any legal advice.
60-
ScanCode is a free software code scanning tool from nexB Inc. and others.
61-
Visit https://github.com/nexB/scancode-toolkit/ for support and download.
61+
Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
62+
OR CONDITIONS OF ANY KIND, either express or implied. No content created from
63+
ScanCode should be considered or used as legal advice. Consult an Attorney
64+
for any legal advice.
65+
ScanCode is a free software code scanning tool from nexB Inc. and others.
66+
Visit https://github.com/nexB/scancode-toolkit/ for support and download.
6267
Third-party software licenses
6368
=============================
6469
ScanCode embeds third-party free and open source software packages under various
@@ -71,8 +76,8 @@ https://github.com/nexB/scancode-toolkit/
7176
or https://github.com/nexB/scancode-thirdparty-src/
7277
You may also contact us to request the source code by email at [email protected] or
7378
by postal mail at:
74-
nexB Inc., ScanCode open source code request
75-
735 Industrial Road, Suite #101, 94070 San Carlos, CA, USA
79+
nexB Inc., ScanCode open source code request
80+
735 Industrial Road, Suite #101, 94070 San Carlos, CA, USA
7681
Please indicate in your communication the ScanCode version for which you are
7782
requesting source code.
7883
License for ScanCode datasets
@@ -81,6 +86,7 @@ ScanCode includes datasets (e.g. for license detection) that are dedicated
8186
to the Public Domain using the Creative Commons CC0 1.0 Universal (CC0 1.0)
8287
Public Domain Dedication: http://creativecommons.org/publicdomain/zero/1.0/</text>
8388
LicenseID: LicenseRef-scancode-other-permissive
89+
LicenseName: Other Permissive Licenses
8490
LicenseComment: <text>See details at https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/other-permissive.yml
8591
</text>
8692
ExtractedText: <text>Software license
@@ -98,12 +104,12 @@ CONDITIONS OF ANY KIND, either express or implied. See the License for the
98104
specific language governing permissions and limitations under the License.
99105
When you publish or redistribute any data created with ScanCode or any ScanCode
100106
derivative work, you must accompany this data with the following acknowledgment:
101-
Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
102-
OR CONDITIONS OF ANY KIND, either express or implied. No content created from
103-
ScanCode should be considered or used as legal advice. Consult an Attorney
104-
for any legal advice.
105-
ScanCode is a free software code scanning tool from nexB Inc. and others.
106-
Visit https://github.com/nexB/scancode-toolkit/ for support and download.
107+
Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
108+
OR CONDITIONS OF ANY KIND, either express or implied. No content created from
109+
ScanCode should be considered or used as legal advice. Consult an Attorney
110+
for any legal advice.
111+
ScanCode is a free software code scanning tool from nexB Inc. and others.
112+
Visit https://github.com/nexB/scancode-toolkit/ for support and download.
107113
Third-party software licenses
108114
=============================
109115
ScanCode embeds third-party free and open source software packages under various
@@ -116,8 +122,8 @@ https://github.com/nexB/scancode-toolkit/
116122
or https://github.com/nexB/scancode-thirdparty-src/
117123
You may also contact us to request the source code by email at [email protected] or
118124
by postal mail at:
119-
nexB Inc., ScanCode open source code request
120-
735 Industrial Road, Suite #101, 94070 San Carlos, CA, USA
125+
nexB Inc., ScanCode open source code request
126+
735 Industrial Road, Suite #101, 94070 San Carlos, CA, USA
121127
Please indicate in your communication the ScanCode version for which you are
122128
requesting source code.
123129
License for ScanCode datasets
@@ -126,6 +132,7 @@ ScanCode includes datasets (e.g. for license detection) that are dedicated
126132
to the Public Domain using the Creative Commons CC0 1.0 Universal (CC0 1.0)
127133
Public Domain Dedication: http://creativecommons.org/publicdomain/zero/1.0/</text>
128134
LicenseID: LicenseRef-scancode-scancode-acknowledgment
135+
LicenseName: ScanCode generated data acknowledgment
129136
LicenseComment: <text>See details at https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/scancode-acknowledgment.yml
130137
</text>
131138
ExtractedText: <text>Software license
@@ -143,12 +150,12 @@ CONDITIONS OF ANY KIND, either express or implied. See the License for the
143150
specific language governing permissions and limitations under the License.
144151
When you publish or redistribute any data created with ScanCode or any ScanCode
145152
derivative work, you must accompany this data with the following acknowledgment:
146-
Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
147-
OR CONDITIONS OF ANY KIND, either express or implied. No content created from
148-
ScanCode should be considered or used as legal advice. Consult an Attorney
149-
for any legal advice.
150-
ScanCode is a free software code scanning tool from nexB Inc. and others.
151-
Visit https://github.com/nexB/scancode-toolkit/ for support and download.
153+
Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
154+
OR CONDITIONS OF ANY KIND, either express or implied. No content created from
155+
ScanCode should be considered or used as legal advice. Consult an Attorney
156+
for any legal advice.
157+
ScanCode is a free software code scanning tool from nexB Inc. and others.
158+
Visit https://github.com/nexB/scancode-toolkit/ for support and download.
152159
Third-party software licenses
153160
=============================
154161
ScanCode embeds third-party free and open source software packages under various
@@ -161,8 +168,8 @@ https://github.com/nexB/scancode-toolkit/
161168
or https://github.com/nexB/scancode-thirdparty-src/
162169
You may also contact us to request the source code by email at [email protected] or
163170
by postal mail at:
164-
nexB Inc., ScanCode open source code request
165-
735 Industrial Road, Suite #101, 94070 San Carlos, CA, USA
171+
nexB Inc., ScanCode open source code request
172+
735 Industrial Road, Suite #101, 94070 San Carlos, CA, USA
166173
Please indicate in your communication the ScanCode version for which you are
167174
requesting source code.
168175
License for ScanCode datasets

tests/formattedcode/data/spdx/tree/expected.tv

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Document Information
2-
SPDXVersion: SPDX-2.1
2+
SPDXVersion: SPDX-2.2
33
DataLicense: CC0-1.0
4+
DocumentNamespace: http://spdx.org/spdxdocs/scan
5+
DocumentName: SPDX Document created by ScanCode Toolkit
6+
LicenseListVersion: 3.14
47
SPDXID: SPDXRef-DOCUMENT
5-
DocumentNamespace: http://spdx.org/spdxdocs/scan-3ef222be-8dfb-4d4f-b12c-a42e51156151
68
DocumentComment: <text>Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
79
OR CONDITIONS OF ANY KIND, either express or implied. No content created from
810
ScanCode should be considered or used as legal advice. Consult an Attorney
@@ -12,6 +14,7 @@ Visit https://github.com/nexB/scancode-toolkit/ for support and download.</text>
1214
# Creation Info
1315
# Package
1416
PackageName: scan
17+
SPDXID: SPDXRef-001
1518
PackageDownloadLocation: NOASSERTION
1619
PackageVerificationCode: ed7a0c42e0411fe584d7c6d04105416593624be3
1720
PackageLicenseDeclared: NOASSERTION
@@ -21,48 +24,55 @@ PackageCopyrightText: <text>Copyright (c) 2000 ACME, Inc.
2124
</text>
2225
# File
2326
FileName: ./scan/copy1.c
27+
SPDXID: SPDXRef-2
2428
FileChecksum: SHA1: 3922760d8492eb8f853c10a627f5a73f9eaec6ff
2529
LicenseConcluded: NOASSERTION
2630
LicenseInfoInFile: NONE
2731
FileCopyrightText: <text>Copyright (c) 2000 ACME, Inc.
2832
</text>
2933
# File
3034
FileName: ./scan/copy2.c
35+
SPDXID: SPDXRef-3
3136
FileChecksum: SHA1: 3922760d8492eb8f853c10a627f5a73f9eaec6ff
3237
LicenseConcluded: NOASSERTION
3338
LicenseInfoInFile: NONE
3439
FileCopyrightText: <text>Copyright (c) 2000 ACME, Inc.
3540
</text>
3641
# File
3742
FileName: ./scan/copy3.c
43+
SPDXID: SPDXRef-4
3844
FileChecksum: SHA1: c91811eb5fdc7ab440355f9f8d1580e1518b0c2f
3945
LicenseConcluded: NOASSERTION
4046
LicenseInfoInFile: NONE
4147
FileCopyrightText: <text>Copyright (c) 2000 ACME, Inc.
4248
</text>
4349
# File
4450
FileName: ./scan/subdir/copy1.c
51+
SPDXID: SPDXRef-6
4552
FileChecksum: SHA1: 3922760d8492eb8f853c10a627f5a73f9eaec6ff
4653
LicenseConcluded: NOASSERTION
4754
LicenseInfoInFile: NONE
4855
FileCopyrightText: <text>Copyright (c) 2000 ACME, Inc.
4956
</text>
5057
# File
5158
FileName: ./scan/subdir/copy2.c
59+
SPDXID: SPDXRef-7
5260
FileChecksum: SHA1: 3922760d8492eb8f853c10a627f5a73f9eaec6ff
5361
LicenseConcluded: NOASSERTION
5462
LicenseInfoInFile: NONE
5563
FileCopyrightText: <text>Copyright (c) 2000 ACME, Inc.
5664
</text>
5765
# File
5866
FileName: ./scan/subdir/copy3.c
67+
SPDXID: SPDXRef-8
5968
FileChecksum: SHA1: 389af7e629a9853056e42b262d5e30bf4579a74f
6069
LicenseConcluded: NOASSERTION
6170
LicenseInfoInFile: NONE
6271
FileCopyrightText: <text>Copyright (c) 2000 ACME, Inc.
6372
</text>
6473
# File
6574
FileName: ./scan/subdir/copy4.c
75+
SPDXID: SPDXRef-9
6676
FileChecksum: SHA1: 58748872d25374160692f1ed7075d0fe80a544b1
6777
LicenseConcluded: NOASSERTION
6878
LicenseInfoInFile: NONE

0 commit comments

Comments
 (0)