xref: /csrg-svn/bin/test/TEST.csh (revision 59575)
1*59575Sbostic#	@(#)TEST.csh	5.2 (Berkeley) 04/30/93
253959Sbostic
3*59575Sbostic#alias t '/usr/src/bin/test/obj/test \!*; echo $status'
4*59575Sbosticalias t '/bin/test \!*; echo $status'
553959Sbostic
653959Sbosticecho 't -b /dev/ttyp2'
753959Sbostict -b /dev/ttyp2
853959Sbosticecho 't -b /dev/jb1a'
953959Sbostict -b /dev/jb1a
1053959Sbostic
1153959Sbosticecho 't -c test.c'
1253959Sbostict -c test.c
1353959Sbosticecho 't -c /dev/tty'
1453959Sbostict -c /dev/tty
1553959Sbostic
1653959Sbosticecho 't -d test.c'
1753959Sbostict -d test.c
1853959Sbosticecho 't -d /etc'
1953959Sbostict -d /etc
2053959Sbostic
2153959Sbosticecho 't -e noexist'
2253959Sbostict -e noexist
2353959Sbosticecho 't -e test.c'
2453959Sbostict -e test.c
2553959Sbostic
2653959Sbosticecho 't -f noexist'
2753959Sbostict -f noexist
2853959Sbosticecho 't -f /dev/tty'
2953959Sbostict -f /dev/tty
3053959Sbosticecho 't -f test.c'
3153959Sbostict -f test.c
3253959Sbostic
3353959Sbosticecho 't -g test.c'
3453959Sbostict -g test.c
3553959Sbosticecho 't -g /bin/ps'
3653959Sbostict -g /bin/ps
3753959Sbostic
3853959Sbosticecho 't -n ""'
3953959Sbostict -n ""
4053959Sbosticecho 't -n "hello"'
4153959Sbostict -n "hello"
4253959Sbostic
4353959Sbosticecho 't -p test.c'
4453959Sbostict -p test.c
4553959Sbostic
4653959Sbosticecho 't -r noexist'
4753959Sbostict -r noexist
4853959Sbosticecho 't -r /etc/master.passwd'
4953959Sbostict -r /etc/master.passwd
5053959Sbosticecho 't -r test.c'
5153959Sbostict -r test.c
5253959Sbostic
5353959Sbosticecho 't -s noexist'
5453959Sbostict -s noexist
5553959Sbosticecho 't -s /dev/null'
5653959Sbostict -s /dev/null
5753959Sbosticecho 't -s test.c'
5853959Sbostict -s test.c
5953959Sbostic
6053959Sbosticecho 't -t 20'
6153959Sbostict -t 20
6253959Sbosticecho 't -t 0'
6353959Sbostict -t 0
6453959Sbostic
6553959Sbosticecho 't -u test.c'
6653959Sbostict -u test.c
6753959Sbosticecho 't -u /bin/rcp'
6853959Sbostict -u /bin/rcp
6953959Sbostic
7053959Sbosticecho 't -w noexist'
7153959Sbostict -w noexist
7253959Sbosticecho 't -w /etc/master.passwd'
7353959Sbostict -w /etc/master.passwd
7453959Sbosticecho 't -w /dev/null'
7553959Sbostict -w /dev/null
7653959Sbostic
7753959Sbosticecho 't -x noexist'
7853959Sbostict -x noexist
7953959Sbosticecho 't -x /bin/ps'
8053959Sbostict -x /bin/ps
8153959Sbosticecho 't -x /etc/motd'
8253959Sbostict -x /etc/motd
8353959Sbostic
8453959Sbosticecho 't -z ""'
8553959Sbostict -z ""
8653959Sbosticecho 't -z "foo"'
8753959Sbostict -z "foo"
8853959Sbostic
8953959Sbosticecho 't "foo"'
9053959Sbostict "foo"
9153959Sbosticecho 't ""'
9253959Sbostict ""
9353959Sbostic
9453959Sbosticecho 't "hello" = "hello"'
9553959Sbostict "hello" = "hello"
9653959Sbosticecho 't "hello" = "goodbye"'
9753959Sbostict "hello" = "goodbye"
9853959Sbostic
9953959Sbosticecho 't "hello" != "hello"'
10053959Sbostict "hello" != "hello"
10153959Sbosticecho 't "hello" != "goodbye"'
10253959Sbostict "hello" != "goodbye"
10353959Sbostic
10453959Sbosticecho 't 200 -eq 200'
10553959Sbostict 200 -eq 200
10653959Sbosticecho 't 34 -eq 222'
10753959Sbostict 34 -eq 222
10853959Sbostic
10953959Sbosticecho 't 200 -ne 200'
11053959Sbostict 200 -ne 200
11153959Sbosticecho 't 34 -ne 222'
11253959Sbostict 34 -ne 222
11353959Sbostic
11453959Sbosticecho 't 200 -gt 200'
11553959Sbostict 200 -gt 200
11653959Sbosticecho 't 340 -gt 222'
11753959Sbostict 340 -gt 222
11853959Sbostic
11953959Sbosticecho 't 200 -ge 200'
12053959Sbostict 200 -ge 200
12153959Sbosticecho 't 34 -ge 222'
12253959Sbostict 34 -ge 222
12353959Sbostic
12453959Sbosticecho 't 200 -lt 200'
12553959Sbostict 200 -lt 200
12653959Sbosticecho 't 34 -lt 222'
12753959Sbostict 34 -lt 222
12853959Sbostic
12953959Sbosticecho 't 200 -le 200'
13053959Sbostict 200 -le 200
13153959Sbosticecho 't 340 -le 222'
13253959Sbostict 340 -le 222
13353959Sbostic
13453959Sbosticecho 't 700 -le 1000 -a -n "1" -a "20" = "20"'
13553959Sbostict 700 -le 1000 -a -n "1" -a "20" = "20"
13653959Sbosticecho 't ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)'
13753959Sbostict ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)
138