42 touch /tmp/test.setgid
43 chmod ug+x /tmp/test.setgid
44 chmod g+s /tmp/test.setgid
45 echo 't -g /tmp/test.setgid'
47 rm -f /tmp/test.setgid
63 touch /tmp/test.noread
64 chmod a-r /tmp/test.noread
65 echo 't -r /tmp/test.noread'
67 rm -f /tmp/test.noread
90 touch /tmp/test.setuid
91 chmod u+x /tmp/test.setuid # some systems require this to turn on setuid bit
92 chmod u+s /tmp/test.setuid
93 echo 't -u /tmp/test.setuid'
95 rm -f /tmp/test.setuid
100 touch /tmp/test.nowrite
101 chmod a-w /tmp/test.nowrite
102 echo 't -w /tmp/test.nowrite'
103 t -w /tmp/test.nowrite
104 rm -f /tmp/test.nowrite
106 echo 't -w /dev/null'
113 chmod u+x /tmp/test.exec
114 echo 't -x /tmp/test.exec'
118 touch /tmp/test.noexec
119 chmod u-x /tmp/test.noexec
120 echo 't -x /tmp/test.noexec'
121 t -x /tmp/test.noexec
122 rm -f /tmp/test.noexec
134 touch /tmp/test.owner
135 echo 't -O /tmp/test.owner'
137 rm -f /tmp/test.owner
139 echo 't "hello" = "hello"'
141 echo 't "hello" = "goodbye"'
142 t "hello" = "goodbye"
144 echo 't "hello" == "hello"'
146 echo 't "hello" == "goodbye"'
147 t "hello" == "goodbye"
149 echo 't "hello" != "hello"'
151 echo 't "hello" != "goodbye"'
152 t "hello" != "goodbye"
154 echo 't "hello" < "goodbye"'
155 t "hello" \< "goodbye"
156 echo 't "hello" > "goodbye"'
157 t "hello" \> "goodbye"
159 echo 't ! "hello" > "goodbye"'
160 t "! hello" \> "goodbye"
192 echo 't 700 -le 1000 -a -n "1" -a "20" = "20"'
193 t 700 -le 1000 -a -n "1" -a "20" = "20"
194 echo 't ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)'
195 t ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)
201 echo 't /tmp/abc -nt /tmp/def'
202 t /tmp/abc -nt /tmp/def
203 echo 't /tmp/abc -ot /tmp/def'
204 t /tmp/abc -ot /tmp/def
205 echo 't /tmp/def -nt /tmp/abc'
206 t /tmp/def -nt /tmp/abc
207 echo 't /tmp/def -ot /tmp/abc'
208 t /tmp/def -ot /tmp/abc
210 echo 't /tmp/abc -ef /tmp/def'
211 t /tmp/abc -ef /tmp/def
213 echo 't /tmp/abc -ef /tmp/ghi'
214 t /tmp/abc -ef /tmp/ghi
216 rm /tmp/abc /tmp/def /tmp/ghi
218 echo 't -r /dev/fd/0'
220 echo 't -w /dev/fd/1'
222 echo 't -w /dev/fd/2'
232 echo 't -n abcd -o aaa'
234 echo 't -n abcd -o -z aaa'
237 echo 't -n abcd -a aaa'
239 echo 't -n abcd -a -z aaa'
243 echo 't -o allexport'
245 echo 't ! -o allexport'