4a1fcab2dc2fc3881dd6a31512b715d0842a48c6
[platform/upstream/bash.git] / tests / test.right
1 t -a noexist
2 1
3 t -a run-all
4 0
5 t -b run-all
6 1
7 t -b /dev/jb1a
8 1
9 t -c run-all
10 1
11 t -c /dev/tty
12 0
13 t -d run-all
14 1
15 t -d /etc
16 0
17 t -d ""
18 1
19 b -d ""
20 1
21 t -e noexist
22 1
23 t -e run-all
24 0
25 t -f noexist
26 1
27 t -f /dev/tty
28 1
29 t -f run-all
30 0
31 t -g run-all
32 1
33 t -g /tmp/test.setgid
34 0
35 t -k run-all
36 1
37 t -n ""
38 1
39 t -n "hello"
40 0
41 t -p run-all
42 1
43 t -r noexist
44 1
45 t -r /tmp/test.noread
46 1
47 t -r run-all
48 0
49 t -s noexist
50 1
51 t -s /dev/null
52 1
53 t -s run-all
54 0
55 t -t 20
56 1
57 t -t 0
58 0
59 t -u noexist
60 1
61 t -u run-all
62 1
63 t -u /tmp/test.setuid
64 0
65 t -w noexist
66 1
67 t -w /tmp/test.nowrite
68 1
69 t -w /dev/null
70 0
71 t -x noexist
72 1
73 t -x /tmp/test.exec
74 0
75 t -x /tmp/test.noexec
76 1
77 t -z ""
78 0
79 t -z "foo"
80 1
81 t "foo"
82 0
83 t ""
84 1
85 t -O /tmp/test.owner
86 0
87 t "hello" = "hello"
88 0
89 t "hello" = "goodbye"
90 1
91 t "hello" == "hello"
92 0
93 t "hello" == "goodbye"
94 1
95 t "hello" != "hello"
96 1
97 t "hello" != "goodbye"
98 0
99 t "hello" < "goodbye"
100 1
101 t "hello" > "goodbye"
102 0
103 t ! "hello" > "goodbye"
104 1
105 t 200 -eq 200
106 0
107 t 34 -eq 222
108 1
109 t -32 -eq 32
110 1
111 t 200 -ne 200
112 1
113 t 34 -ne 222
114 0
115 t 200 -gt 200
116 1
117 t 340 -gt 222
118 0
119 t 200 -ge 200
120 0
121 t 34 -ge 222
122 1
123 t 200 -lt 200
124 1
125 t 34 -lt 222
126 0
127 t 200 -le 200
128 0
129 t 340 -le 222
130 1
131 t 700 -le 1000 -a -n "1" -a "20" = "20"
132 0
133 t ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)
134 1
135 t /tmp/abc -nt /tmp/def
136 1
137 t /tmp/abc -ot /tmp/def
138 0
139 t /tmp/def -nt /tmp/abc
140 0
141 t /tmp/def -ot /tmp/abc
142 1
143 t /tmp/abc -ef /tmp/def
144 1
145 t /tmp/abc -ef /tmp/ghi
146 0
147 t -r /dev/fd/0
148 0
149 t -w /dev/fd/1
150 0
151 t -w /dev/fd/2
152 0
153 t
154 1
155 b
156 1
157 t 12 -eq 34
158 1
159 t ! 12 -eq 34
160 0
161 t -n abcd -o aaa
162 0
163 t -n abcd -o -z aaa
164 0
165 t -n abcd -a aaa
166 0
167 t -n abcd -a -z aaa
168 1
169 t -o allexport
170 1
171 t ! -o allexport
172 0
173 t xx -a yy
174 0
175 t xx -o ""
176 0
177 t xx -a ""
178 1
179 t -X -a -X
180 0
181 t -X -o -X
182 0
183 t -X -o ""
184 0
185 t -X -a ""
186 1
187 t "" -a -X
188 1
189 t "" -o -X
190 0
191 t "" -a ""
192 1
193 t "" -o ""
194 1
195 t true -o -X
196 0
197 t true -a -X
198 0
199 t ( -E )
200 0
201 t ( "" )
202 1
203 t ! -z "$z"
204 0
205 t ! -n "$z"
206 1
207 t "$zero"
208 1
209 t ! "$zero"
210 0
211 b "$zero"
212 1
213 b ! "$zero"
214 0
215 t -G /tmp/test.group
216 0
217 t -h /tmp/test.symlink
218 0
219 t 4+3 -eq 7
220 ./test-tests: test: 4+3: integer expression expected
221 1
222 b 4-5 -eq 7
223 ./test-tests: [: 4+3: integer expression expected
224 1
225 t 9 -eq 4+5
226 ./test-tests: test: 4+5: integer expression expected
227 1
228 b 9 -eq 4+5
229 ./test-tests: [: 4+5: integer expression expected
230 1
231 t A -eq 7
232 ./test-tests: test: A: integer expression expected
233 1
234 b A -eq 7
235 ./test-tests: [: A: integer expression expected
236 1
237 t 9 -eq B
238 ./test-tests: test: B: integer expression expected
239 1
240 b 9 -eq B
241 ./test-tests: [: B: integer expression expected
242 1
243 t ( 1 = 2
244 ./test-tests: test: `)' expected
245 1
246 b ( 1 = 2
247 ./test-tests: [: `)' expected, found ]
248 1
249 ./test-tests: test: a: unary operator expected
250 1
251 ./test-tests: test: b: binary operator expected
252 1
253 ./test-tests: test: -A: unary operator expected
254 1
255 ./test-tests: test: too many arguments
256 1
257 ./test-tests: test: too many arguments
258 1
259 ./test-tests: [: missing `]'
260 1
261 ./test-tests: test: (: unary operator expected
262 1