mirror of
https://github.com/opnsense/src.git
synced 2026-02-12 23:36:07 -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'.
31 lines
642 B
Makefile
31 lines
642 B
Makefile
#
|
|
# Change the path for builtin shells. There are two methods to do this.
|
|
# This is the first of them when the basename of the path is equal to
|
|
# one of the builtin shells so that the .SHELL target automatically
|
|
# also selectes the shell without specifying the name.
|
|
#
|
|
# Be sure to include a meta-character into the command line, so that
|
|
# really our shell is executed.
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
.ifmake sh_test
|
|
|
|
.SHELL: path=${.OBJDIR}/sh
|
|
sh_test:
|
|
@: This is the shell.
|
|
|
|
.elifmake csh_test
|
|
|
|
.SHELL: path=${.OBJDIR}/csh
|
|
csh_test:
|
|
@: This is the C-shell.
|
|
|
|
.elifmake ksh_test
|
|
|
|
.SHELL: path=${.OBJDIR}/ksh
|
|
ksh_test:
|
|
@: This is the Korn-shell.
|
|
|
|
.endif
|