]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/usr.bin/make/shell/select/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / usr.bin / make / shell / select / Makefile
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 -opid,command | awk '$$1=='$$$$' { print $$2; }'