xref: /freebsd/usr.bin/bmake/tests/shell/select/Makefile.test (revision d93a896ef95946b0bf1219866fcb324b78543444)
1#
2# We just select the builtin shells and check whether it is really
3# executed. This should print just the shell paths. Because we
4# normally don't have a ksh, we make this test conditional. This means
5# one has to recreate the test results once ksh is installed.
6#
7# $FreeBSD$
8#
9
10.ifmake sh_test
11
12.SHELL: name=sh
13sh_test: print_path
14
15.elifmake csh_test
16
17.SHELL: name=csh
18csh_test: print_path
19
20.elifmake ksh_test
21
22.SHELL: name=ksh
23ksh_test: print_path
24
25.endif
26
27print_path:
28	@ps -x -opid,command | awk '$$1=='$$$$' { print $$2; }'
29