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