Initial import from FreeBSD RELENG_4:
[games.git] / bin / test / TEST.csh
1 #       @(#)TEST.csh    5.2 (Berkeley) 4/30/93
2 # $FreeBSD: src/bin/test/TEST.csh,v 1.6 1999/08/27 23:15:47 peter Exp $
3
4 #alias t '/usr/src/bin/test/obj/test \!*; echo $status'
5 alias t '/bin/test \!*; echo $status'
6
7 echo 't -b /dev/ttyp2'
8 t -b /dev/ttyp2
9 echo 't -b /dev/jb1a'
10 t -b /dev/jb1a
11
12 echo 't -c test.c'
13 t -c test.c
14 echo 't -c /dev/tty'
15 t -c /dev/tty
16
17 echo 't -d test.c'
18 t -d test.c
19 echo 't -d /etc'
20 t -d /etc
21
22 echo 't -e noexist'
23 t -e noexist
24 echo 't -e test.c'
25 t -e test.c
26
27 echo 't -f noexist'
28 t -f noexist
29 echo 't -f /dev/tty'
30 t -f /dev/tty
31 echo 't -f test.c'
32 t -f test.c
33
34 echo 't -g test.c'
35 t -g test.c
36 echo 't -g /bin/ps'
37 t -g /bin/ps
38
39 echo 't -n ""'
40 t -n ""
41 echo 't -n "hello"'
42 t -n "hello"
43
44 echo 't -p test.c'
45 t -p test.c
46
47 echo 't -r noexist'
48 t -r noexist
49 echo 't -r /etc/master.passwd'
50 t -r /etc/master.passwd
51 echo 't -r test.c'
52 t -r test.c
53
54 echo 't -s noexist'
55 t -s noexist
56 echo 't -s /dev/null'
57 t -s /dev/null
58 echo 't -s test.c'
59 t -s test.c
60
61 echo 't -t 20'
62 t -t 20
63 echo 't -t 0'
64 t -t 0
65
66 echo 't -u test.c'
67 t -u test.c
68 echo 't -u /bin/rcp'
69 t -u /bin/rcp
70
71 echo 't -w noexist'
72 t -w noexist
73 echo 't -w /etc/master.passwd'
74 t -w /etc/master.passwd
75 echo 't -w /dev/null'
76 t -w /dev/null
77
78 echo 't -x noexist'
79 t -x noexist
80 echo 't -x /bin/ps'
81 t -x /bin/ps
82 echo 't -x /etc/motd'
83 t -x /etc/motd
84
85 echo 't -z ""'
86 t -z ""
87 echo 't -z "foo"'
88 t -z "foo"
89
90 echo 't "foo"'
91 t "foo"
92 echo 't ""'
93 t ""
94
95 echo 't "hello" = "hello"'
96 t "hello" = "hello"
97 echo 't "hello" = "goodbye"'
98 t "hello" = "goodbye"
99
100 echo 't "hello" != "hello"'
101 t "hello" != "hello"
102 echo 't "hello" != "goodbye"'
103 t "hello" != "goodbye"
104
105 echo 't 200 -eq 200'
106 t 200 -eq 200
107 echo 't 34 -eq 222'
108 t 34 -eq 222
109
110 echo 't 200 -ne 200'
111 t 200 -ne 200
112 echo 't 34 -ne 222'
113 t 34 -ne 222
114
115 echo 't 200 -gt 200'
116 t 200 -gt 200
117 echo 't 340 -gt 222'
118 t 340 -gt 222
119
120 echo 't 200 -ge 200'
121 t 200 -ge 200
122 echo 't 34 -ge 222'
123 t 34 -ge 222
124
125 echo 't 200 -lt 200'
126 t 200 -lt 200
127 echo 't 34 -lt 222'
128 t 34 -lt 222
129
130 echo 't 200 -le 200'
131 t 200 -le 200
132 echo 't 340 -le 222'
133 t 340 -le 222
134
135 echo 't 700 -le 1000 -a -n "1" -a "20" = "20"'
136 t 700 -le 1000 -a -n "1" -a "20" = "20"
137 echo 't ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)'
138 t ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)
139
140 echo 't -5 -eq 5'
141 t -5 -eq 5
142
143
144 echo 't foo -a ""'
145 t foo -a ""
146 echo 't "" -a foo'
147 t "" -a foo
148 echo 't "" -a ""'
149 t "" -a ""
150 echo 't "" -o ""'
151 t "" -o ""
152