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