opnsense-src/usr.bin/bmake/tests/shell/select/Makefile.test
Franco Fichtner cd6ee62847 src: clean-cut move to 10.2-RELEASE
Start fresh on master, only apply needed patches on top now.

Upstream commit:	56279fdef34eb28a4655b489b992c651bd8379fc
Taken from:		FreeBSD
2015-08-14 14:15:00 +02:00

28 lines
531 B
Makefile

#
# We just select the builtin shells and check whether it is really
# executed. This should print just the shell paths. Because we
# normally don't have a ksh, we make this test conditional. This means
# one has to recreate the test results once ksh is installed.
#
# $FreeBSD$
#
.ifmake sh_test
.SHELL: name=sh
sh_test: print_path
.elifmake csh_test
.SHELL: name=csh
csh_test: print_path
.elifmake ksh_test
.SHELL: name=ksh
ksh_test: print_path
.endif
print_path:
@ps -x -opid,command | awk '$$1=='$$$$' { print $$2; }'