opnsense-src/usr.bin/bmake/tests/shell/select/Makefile.test
Julio Merino 5ae59dec60 Move old fmake tests into bmake and hook them to the build.
This first step is mostly to prevent the code from rotting even further
and to ensure these do not get wiped when fmake's code is removed from
the tree.

These tests are currently being skipped because they detect the underlying
make is not fmake and thus disable themselves -- and the reason is that
some of the tests fail, possibly due to legitimate bugs.  Enabling them to
run against bmake will come separately.

Lastly, it would be ideal if these tests were fed upstream but they are
not ready for that yet.  In the interim, just put them under usr.bin/bmake/
while we sort things out.  The existence of a different unit-tests directory
within here makes me feel less guilty about this.

Change confirmed working with a clean amd64 build.
2014-05-14 18:43:13 +00: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; }'