]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - usr.bin/bmake/tests/shell/select/Makefile.test
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / usr.bin / bmake / tests / shell / select / Makefile.test
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
13 sh_test: print_path
14
15 .elifmake csh_test
16
17 .SHELL: name=csh
18 csh_test: print_path
19
20 .elifmake ksh_test
21
22 .SHELL: name=ksh
23 ksh_test: print_path
24
25 .endif
26
27 print_path:
28         @ps -x -opid,command | awk '$$1=='$$$$' { print $$2; }'