xref: /freebsd/usr.bin/jot/tests/regress.sh (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1
2echo 1..60
3
4REGRESSION_START($1)
5
6REGRESSION_TEST(`x', `jot -w "%X" -s , 100 1 200')
7REGRESSION_TEST(`hhhh', `jot 50 20 120 2')
8REGRESSION_TEST(`hhhd', `jot 50 20 120 -')
9REGRESSION_TEST(`hhdh', `jot 50 20 - 2')
10REGRESSION_TEST(`hhdd', `jot 50 20 - -')
11REGRESSION_TEST(`hdhh', `jot 50 - 120 2')
12REGRESSION_TEST(`hdhd', `jot 50 - 120 -')
13REGRESSION_TEST(`hddh', `jot 50 - - 2')
14REGRESSION_TEST(`hddd', `jot 50 - - -')
15REGRESSION_TEST(`dhhh', `jot - 20 120 2')
16REGRESSION_TEST(`dhhd', `jot - 20 120 -')
17REGRESSION_TEST(`dhdh', `jot - 20 - 2')
18REGRESSION_TEST(`dhdd', `jot - 20 - -')
19REGRESSION_TEST(`ddhh', `jot - - 120 2')
20REGRESSION_TEST(`ddhd', `jot - - 120 -')
21REGRESSION_TEST(`dddh', `jot - - - 2')
22REGRESSION_TEST(`dddd', `jot - - - -')
23REGRESSION_TEST(`hhhh2', `jot 30 20 160 2')
24REGRESSION_TEST(`hhhd2', `jot 30 20 160 -')
25REGRESSION_TEST(`hhdh2', `jot 30 20 - 2')
26REGRESSION_TEST(`hhdd2', `jot 30 20 - -')
27REGRESSION_TEST(`hdhh2', `jot 30 - 160 2')
28REGRESSION_TEST(`hdhd2', `jot 30 - 160 -')
29REGRESSION_TEST(`hddh2', `jot 30 - - 2')
30REGRESSION_TEST(`hddd2', `jot 30 - - -')
31REGRESSION_TEST(`dhhh2', `jot - 20 160 2')
32REGRESSION_TEST(`dhhd2', `jot - 20 160 -')
33REGRESSION_TEST(`ddhh2', `jot - - 160 2')
34REGRESSION_TEST(`rand1', `jot -r 10000 0 9 | sort -u')
35REGRESSION_TEST(`rand2', `jot -r 10000 9 0 | sort -u')
36REGRESSION_TEST(`n21', `jot 21 -1 1.00')
37REGRESSION_TEST(`ascii', `jot -c 128 0')
38REGRESSION_TEST(`xaa', `jot -w xa%c 26 a')
39REGRESSION_TEST(`yes', `jot -b yes 10')
40REGRESSION_TEST(`ed', `jot -w %ds/old/new/ 30 2 - 5')
41REGRESSION_TEST(`stutter', `jot - 9 0 -.5')
42REGRESSION_TEST(`stutter2', `jot -w %d - 9.5 0 -.5')
43REGRESSION_TEST(`block', `jot -b x 512')
44REGRESSION_TEST(`tabs', `jot -s, - 10 132 4')
45REGRESSION_TEST(`grep', `jot -s "" -b . 80')
46REGRESSION_TEST(`wf', `jot -w "a%.1fb" 10')
47REGRESSION_TEST(`we', `jot -w "a%eb" 10')
48REGRESSION_TEST(`wwe', `jot -w "a%-15eb" 10')
49REGRESSION_TEST(`wg', `jot -w "a%20gb" 10')
50REGRESSION_TEST(`wc', `jot -w "a%cb" 10 33 43')
51REGRESSION_TEST(`wgd', `jot -w "a%gb" 10 .2')
52REGRESSION_TEST(`wu', `jot -w "a%ub" 10')
53REGRESSION_TEST(`wo', `jot -w "a%ob" 10')
54REGRESSION_TEST(`wx', `jot -w "a%xb" 10')
55REGRESSION_TEST(`wX1', `jot -w "a%Xb" 10')
56REGRESSION_TEST(`wXl', `jot -w "a%Xb" 10 2147483648')
57REGRESSION_TEST(`wdl', `jot -w "a%db" 10 2147483648 2>/dev/null')
58REGRESSION_TEST(`wxn', `jot -w "a%xb" 10 -5 2>/dev/null')
59REGRESSION_TEST(`wdn', `jot -w "a%db" 10 -5')
60REGRESSION_TEST(`wp1', `jot -w "%%%d%%%%" 10')
61REGRESSION_TEST(`wp2', `jot -w "%d%%d%%" 10')
62REGRESSION_TEST(`wp3', `jot -w "a%%A%%%d%%B%%b" 10')
63REGRESSION_TEST(`wp4', `jot -w "%%d%d%%d%%" 10')
64REGRESSION_TEST(`wp5', `jot -w ftp://www.example.com/pub/uploaded%%20files/disk%03d.iso 10')
65REGRESSION_TEST(`wp6', `jot -w "%d%" 10')
66
67REGRESSION_END()
68