Skip to content

Commit 75bf0c4

Browse files
authored
2022.3.17 update
1 parent 625b39b commit 75bf0c4

File tree

5 files changed

+298
-1
lines changed

5 files changed

+298
-1
lines changed

setup.cfg

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = PNU
33
description = The PNU Project
44
long_description = file: README.md
55
long_description_content_type = text/markdown
6-
version = 2021.8.25
6+
version = 2022.3.17
77
license = BSD 3-Clause License
88
license_files = License
99
author = Hubert Tournier
@@ -31,6 +31,7 @@ classifiers =
3131
Programming Language :: Python :: 3.10
3232
Topic :: Education
3333
Topic :: Education :: Testing
34+
Topic :: Software Development :: Libraries
3435
Topic :: Software Development :: Libraries :: Python Modules
3536
Topic :: Software Development :: Testing
3637
Topic :: System
@@ -47,15 +48,21 @@ install_requires =
4748
pnu-anagram
4849
pnu-b2bt
4950
pnu-basename
51+
pnu-conjuguer
52+
pnu-dcmp
5053
pnu-echobox
5154
pnu-fortune
55+
pnu-ident
56+
pnu-manpath
5257
pnu-mtoc
5358
pnu-ngc
5459
pnu-prep
5560
pnu-rot13
5661
pnu-strfile
62+
pnu-strings
5763
pnu-true
5864
pnu-unicode2ascii
65+
pnu-what
5966

6067
[options.data_files]
6168
share/PNU =
@@ -64,8 +71,12 @@ share/PNU =
6471
tests/echo.xml
6572
tests/factor.xml
6673
tests/false.xml
74+
tests/ident.xml
75+
tests/manpath.xml
6776
tests/prep.xml
6877
tests/primes.xml
78+
tests/rot13.xml
6979
tests/true.xml
80+
tests/what.xml
7081
tests/yes.xml
7182

tests/ident.xml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0"?>
2+
<test-suite program="ident" processor="b2bt 1.1" ID="@(#) $Id: ident.xml - back to back test suite for ident v1.0.0 (October 31, 2021) by Hubert Tournier $">
3+
4+
<test-case name="Usual call with match">
5+
<cmd>
6+
ident /usr/bin/unifdef
7+
</cmd>
8+
</test-case>
9+
10+
<test-case name="Usual call with no match">
11+
<cmd>
12+
ident /bin/tcsh
13+
</cmd>
14+
</test-case>
15+
16+
<test-case name="Multiple arguments">
17+
<cmd>
18+
ident /usr/bin/unifdef /usr/bin/file
19+
</cmd>
20+
</test-case>
21+
22+
<test-case name="No arguments" timeout="0.5">
23+
<cmd>
24+
ident
25+
</cmd>
26+
</test-case>
27+
28+
<test-case name="Standard input support with match">
29+
<cmd>
30+
cat /usr/bin/unifdef | ident
31+
</cmd>
32+
</test-case>
33+
34+
<test-case name="Standard input support with no match">
35+
<cmd>
36+
cat /bin/tcsh | ident
37+
</cmd>
38+
</test-case>
39+
40+
<test-case name="Option -q">
41+
<cmd>
42+
ident -q /bin/tcsh
43+
</cmd>
44+
</test-case>
45+
46+
<test-case name="Option -V on GNU/Linux">
47+
<cmd>
48+
IDENT_FLAVOUR=gnu:linux ident -V
49+
</cmd>
50+
</test-case>
51+
52+
<test-case name="Option -V on FreeBSD">
53+
<cmd>
54+
IDENT_FLAVOUR=bsd:freebsd ident -V
55+
</cmd>
56+
</test-case>
57+
58+
<test-case name="Options terminator handling">
59+
<cmd>
60+
ident -- /usr/bin/unifdef
61+
</cmd>
62+
</test-case>
63+
64+
<test-case name="Illegal option">
65+
<cmd>
66+
ident -i
67+
</cmd>
68+
</test-case>
69+
70+
<test-case name="Non existent file">
71+
<cmd>
72+
ident nonexistent
73+
</cmd>
74+
</test-case>
75+
76+
<test-case name="Empty file">
77+
<pre>
78+
touch empty_file
79+
</pre>
80+
<cmd>
81+
ident empty_file
82+
</cmd>
83+
</test-case>
84+
85+
</test-suite>

tests/manpath.xml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<?xml version="1.0"?>
2+
<test-suite program="manpath" processor="b2bt 1.1" ID="@(#) $Id: manpath.xml - back to back test suite for manpath v1.0.0 (March 6, 2022) by Hubert Tournier $">
3+
4+
<test-case name="Usual call #1">
5+
<cmd>
6+
unset MANPATH ; manpath
7+
</cmd>
8+
</test-case>
9+
10+
<test-case name="Usual call #1 with extra debugging level 1">
11+
<cmd>
12+
unset MANPATH ; manpath -d
13+
</cmd>
14+
</test-case>
15+
16+
<test-case name="Usual call #1 with extra debugging level 2">
17+
<cmd>
18+
unset MANPATH ; manpath -dd
19+
</cmd>
20+
</test-case>
21+
22+
<test-case name="Usual call #1 with extra debugging level 3">
23+
<cmd>
24+
unset MANPATH ; manpath -ddd
25+
</cmd>
26+
</test-case>
27+
28+
<test-case name="PATH unset">
29+
<cmd>
30+
unset PATH ; unset MANPATH ; manpath -dd
31+
</cmd>
32+
</test-case>
33+
34+
<test-case name="MANPATH set">
35+
<cmd>
36+
MANPATH=/usr/share/man manpath -d
37+
</cmd>
38+
</test-case>
39+
40+
<test-case name="MANPATH set and quiet mode">
41+
<cmd>
42+
MANPATH=/usr/share/man manpath -qd
43+
</cmd>
44+
</test-case>
45+
46+
<test-case name="Usual call #2">
47+
<cmd>
48+
unset MANLOCALES ; manpath -L
49+
</cmd>
50+
</test-case>
51+
52+
<test-case name="Usual call #2 with extra debugging level 1">
53+
<cmd>
54+
unset MANLOCALES ; manpath -Ld
55+
</cmd>
56+
</test-case>
57+
58+
<test-case name="Usual call #2 with extra debugging level 2">
59+
<cmd>
60+
unset MANLOCALES ; manpath -Ldd
61+
</cmd>
62+
</test-case>
63+
64+
<test-case name="Usual call #2 with extra debugging level 3">
65+
<cmd>
66+
unset MANLOCALES ; manpath -Lddd
67+
</cmd>
68+
</test-case>
69+
70+
<test-case name="MANLOCALES set">
71+
<cmd>
72+
MANLOCALES=fr_FR.UTF-8 manpath -Ld
73+
</cmd>
74+
</test-case>
75+
76+
<test-case name="MANLOCALES set and quiet mode">
77+
<cmd>
78+
MANLOCALES=fr_FR.UTF-8 manpath -Lqd
79+
</cmd>
80+
</test-case>
81+
82+
<test-case name="Illegal option">
83+
<cmd>
84+
manpath -i
85+
</cmd>
86+
</test-case>
87+
88+
</test-suite>

tests/rot13.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0"?>
2+
<test-suite program="rot13" processor="b2bt 1.1" ID="@(#) $Id: rot13.xml - back to back test suite for rot13 v1.0.0 (November 1, 2021) by Hubert Tournier $">
3+
4+
<test-case name="Usual call">
5+
<cmd>
6+
echo test | rot13
7+
</cmd>
8+
</test-case>
9+
10+
<test-case name="Double call">
11+
<cmd>
12+
echo test | rot13 | rot13
13+
</cmd>
14+
</test-case>
15+
16+
<test-case name="No arguments" timeout="0.5">
17+
<cmd>
18+
rot13
19+
</cmd>
20+
</test-case>
21+
22+
<test-case name="With file argument" timeout="0.5">
23+
<cmd>
24+
ROT13_FLAVOUR=bsd:freebsd rot13 /etc/passwd
25+
</cmd>
26+
</test-case>
27+
28+
<test-case name="With string argument" timeout="0.5">
29+
<cmd>
30+
ROT13_FLAVOUR=bsd:freebsd rot13 "my secret"
31+
</cmd>
32+
</test-case>
33+
34+
<test-case name="Illegal option" timeout="0.5">
35+
<cmd>
36+
ROT13_FLAVOUR=bsd:freebsd rot13 -i
37+
</cmd>
38+
</test-case>
39+
40+
</test-suite>

tests/what.xml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0"?>
2+
<test-suite program="what" processor="b2bt 1.1" ID="@(#) $Id: what.xml - back to back test suite for what v1.0.0 (October 31, 2021) by Hubert Tournier $">
3+
4+
<test-case name="Usual call">
5+
<cmd>
6+
what /usr/bin/unifdef
7+
</cmd>
8+
</test-case>
9+
10+
<test-case name="Multiple arguments">
11+
<cmd>
12+
what /usr/bin/unifdef /usr/bin/file
13+
</cmd>
14+
</test-case>
15+
16+
<test-case name="No arguments" timeout="0.5">
17+
<cmd>
18+
what
19+
</cmd>
20+
</test-case>
21+
22+
<test-case name="Standard input support">
23+
<cmd>
24+
cat /usr/bin/unifdef | what
25+
</cmd>
26+
</test-case>
27+
28+
<test-case name="Option -s">
29+
<cmd>
30+
what -s /usr/bin/unifdef
31+
</cmd>
32+
</test-case>
33+
34+
<test-case name="Option -q">
35+
<cmd>
36+
what -q /usr/bin/unifdef
37+
</cmd>
38+
</test-case>
39+
40+
<test-case name="Options terminator handling">
41+
<cmd>
42+
what -qs -- /usr/bin/unifdef
43+
</cmd>
44+
</test-case>
45+
46+
<test-case name="Illegal option">
47+
<cmd>
48+
what -i
49+
</cmd>
50+
</test-case>
51+
52+
<test-case name="Non existent file">
53+
<cmd>
54+
what nonexistent
55+
</cmd>
56+
</test-case>
57+
58+
<test-case name="Empty file">
59+
<pre>
60+
touch empty_file
61+
</pre>
62+
<cmd>
63+
what empty_file
64+
</cmd>
65+
</test-case>
66+
67+
<test-case name="POSIXLY_CORRECT environment variable handling">
68+
<cmd>
69+
POSIXLY_CORRECT=true what -q /usr/bin/unifdef
70+
</cmd>
71+
</test-case>
72+
73+
</test-suite>

0 commit comments

Comments
 (0)