6cc00fe24c
using my own script to handle it. I wrote my own partially because of all the quoting-issues involved with testing what I wanted to test, and partially because this lets me commit one script and one data file, instead of one-file-per-regression-test. This suite was good enough for my initial testing (and it did help me find a few bugs that would have otherwise been missed). I'm not sure how well it will work in general use, but I figured I might as well commit it. It won't *hurt* to have it available. At the worst, people can just ignore it. Approved by: re (blanket `env')
17 lines
589 B
Makefile
17 lines
589 B
Makefile
# $FreeBSD$
|
|
|
|
TESTPGM?=TestProgramNotSpecifed
|
|
|
|
all:
|
|
@echo "Note that the 'env' command uses its own regression suite,"
|
|
@echo "which uses a single data file and a script written in ruby."
|
|
@echo "By default it will test /usr/bin/env"
|
|
@echo
|
|
@ruby regress-sb.rb --rgdata=${.CURDIR}/regress-env.rgdata
|
|
|
|
# A version which allows the user to specify which executable of `env'
|
|
# should be tested, e.g.: make testenv TESTPROG=/usr/bin/env-rel6
|
|
# This will probably need a bit more thought...
|
|
testenv:
|
|
@ruby regress-sb.rb --rgdata=${.CURDIR}/regress-env.rgdata \
|
|
--testpgm=${TESTPGM}
|