mirror of
https://github.com/opnsense/src.git
synced 2026-02-13 07:44:48 -05:00
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.
28 lines
531 B
Makefile
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; }'
|