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