mirror of
https://github.com/opnsense/src.git
synced 2026-02-13 07:44:48 -05:00
so that make(1) will run in an almost clean environment and enhance the description of the test infrastructure. Add the ability to have multiple tests carried out per test script. Give some tests more meaningful names. Fix the usage message from the test scripts. Make it possible to pass several commands to the test scripts like: 'sh test.t setup run compare clean'.
28 lines
528 B
Makefile
28 lines
528 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 -opid,command | awk '$$1=='$$$$' { print $$2; }'
|