Skip to content

Commit d766940

Browse files
Update tests to fix CI errors
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent e50169f commit d766940

17 files changed

Lines changed: 104 additions & 81 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
license_expression: lgpl-2.1
3+
is_license_notice: yes
4+
minimum_coverage: 90
5+
referenced_filenames:
6+
- /usr/share/common-licenses/GPL-2.1
7+
ignorable_urls:
8+
- http://www.gnu.org/licenses/
9+
---
10+
11+
This program is free software: you can redistribute it and/or modify
12+
it under the terms of the GNU Lesser General Public License as published by
13+
the Free Software Foundation, version 2.1 of the License.
14+
.
15+
This program is distributed in the hope that it will be useful,
16+
but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
GNU Lesser General Public License for more details.
19+
.
20+
You should have received a copy of the GNU Lesser General Public License
21+
along with this program. If not, see <http://www.gnu.org/licenses/>.
22+
.
23+
The complete text of the GNU Lesser General Public License
24+
can be found in /usr/share/common-licenses/GPL-2.1 file.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
license_expression: mit
3+
is_license_tag: yes
4+
is_continuous: yes
5+
---
6+
7+
{{"license": "type": "MIT",}}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
22
license_expression: mpl-2.0
3+
minimum_coverage: 80
34
is_license_notice: yes
45
ignorable_urls:
56
- https://www.mozilla.org/en-US/MPL/2.0/
67
- https://www.mozilla.org/en-US/MPL/2.0/FAQ
78
---
89

9-
licensed under Mozilla Public License Version 2.0 (MPL 2.0). A MPL 2.0
10-
and FAQ's for MPL 2.0 can be found at: https://www.mozilla.org/en-US/MPL/2.0/
10+
licensed under {{Mozilla Public License Version 2.0}} (MPL 2.0). A MPL 2.0
11+
and FAQ's for MPL 2.0 can be found at: {{https://www.mozilla.org/en-US/MPL/2.0/}}
1112
and https://www.mozilla.org/en-US/MPL/2.0/FAQ/.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
22
license_expression: mpl-2.0
33
is_license_notice: yes
4+
minimum_coverage: 80
45
ignorable_urls:
56
- https://www.mozilla.org/en-US/MPL/2.0/
67
- https://www.mozilla.org/en-US/MPL/2.0/FAQ
78
---
89

9-
is licensed under Mozilla Public License Version 2.0 (MPL 2.0). A MPL 2.0
10-
and FAQ's for MPL 2.0 can be found at: https://www.mozilla.org/en-US/MPL/2.0/
10+
is licensed under {{Mozilla Public License Version 2.0 (MPL 2.0)}}. A MPL 2.0
11+
and FAQ's for MPL 2.0 can be found at: {{https://www.mozilla.org/en-US/MPL/2.0/}}
1112
and https://www.mozilla.org/en-US/MPL/2.0/FAQ/.

tests/formattedcode/data/common/manifests-expected.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ headers:
2929
system_environment:
3030
operating_system: linux
3131
cpu_architecture: 64
32-
platform: Linux-5.15.0-76-generic-x86_64-with-glibc2.29
33-
platform_version: '#83~20.04.1-Ubuntu SMP Wed Jun 21 20:23:31 UTC 2023'
32+
platform: Linux-5.15.0-84-generic-x86_64-with-glibc2.29
33+
platform_version: '#93~20.04.1-Ubuntu SMP Wed Sep 6 16:15:40 UTC 2023'
3434
python_version: "3.8.10 (default, May 26 2023, 14:05:08) \n[GCC 9.4.0]"
3535
spdx_license_list_version: '3.21'
3636
files_count: 4
@@ -1043,7 +1043,11 @@ license_references:
10431043
is_unknown: no
10441044
is_generic: no
10451045
spdx_license_key: MIT
1046-
other_spdx_license_keys: []
1046+
other_spdx_license_keys:
1047+
- LicenseRef-MIT-Bootstrap
1048+
- LicenseRef-MIT-Discord
1049+
- LicenseRef-MIT-TC
1050+
- LicenseRef-MIT-Diehl
10471051
osi_license_key:
10481052
text_urls:
10491053
- http://opensource.org/licenses/mit-license.php

tests/formattedcode/data/yaml/package-and-licenses-expected.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ headers:
2929
system_environment:
3030
operating_system: linux
3131
cpu_architecture: 64
32-
platform: Linux-5.15.0-76-generic-x86_64-with-glibc2.29
33-
platform_version: '#83~20.04.1-Ubuntu SMP Wed Jun 21 20:23:31 UTC 2023'
32+
platform: Linux-5.15.0-84-generic-x86_64-with-glibc2.29
33+
platform_version: '#93~20.04.1-Ubuntu SMP Wed Sep 6 16:15:40 UTC 2023'
3434
python_version: "3.8.10 (default, May 26 2023, 14:05:08) \n[GCC 9.4.0]"
3535
spdx_license_list_version: '3.21'
3636
files_count: 4
@@ -322,7 +322,11 @@ license_references:
322322
is_unknown: no
323323
is_generic: no
324324
spdx_license_key: MIT
325-
other_spdx_license_keys: []
325+
other_spdx_license_keys:
326+
- LicenseRef-MIT-Bootstrap
327+
- LicenseRef-MIT-Discord
328+
- LicenseRef-MIT-TC
329+
- LicenseRef-MIT-Diehl
326330
osi_license_key:
327331
text_urls:
328332
- http://opensource.org/licenses/mit-license.php
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
license_expressions:
22
- apache-2.0
3-
- other-permissive
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
license_expressions:
22
- apache-2.0
3-
- other-permissive

tests/licensedcode/data/datadriven/external/licensecheck/devscripts/false-positives.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
license_expressions:
2-
- x11-tiff
2+
- mit-old-style-no-advert
3+
- other-permissive
34
- generic-cla
45
- unknown-license-reference
56
- unknown-license-reference

tests/licensedcode/data/datadriven/lic2/aes-128-3.0_and_bsd-new_and_bsd-original-uc_and_bsd-simplified_and_other.txt.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ license_expressions:
3232
- unknown-license-reference
3333
- proprietary-license
3434
- proprietary-license
35-
- proprietary-license
3635
- warranty-disclaimer
3736
- proprietary-license
3837
- unknown-license-reference

0 commit comments

Comments
 (0)