Return to Makefile CVS log | Up to [local] / src / regress |
File: [local] / src / regress / Makefile (download)
Revision 1.21, Mon Nov 24 01:12:14 2014 UTC (9 years, 6 months ago) by schwarze
Kill old crap that is unbelievably slow and produces hundreds of false positives. Fixing it is not worth the hassle; if we want something like this, it ought to be done in the context of makewhatis(8) and mandoc.db(5). As it stands, its only effect is to discourage people from running our regression suite, which is bad. I got a report from daniel@ that part of it even crashes. |
# $OpenBSD: Makefile,v 1.21 2014/11/24 01:12:14 schwarze Exp $ # # To run full regression tests you just need two steps: # 1. make depend # 2. make regress # # A normal "make" is not necessary and will simply do the same thing # as "regress" (possibly with more bugs). This allows us to include # compilation as a part of the regression test. # # To get a log of test results set the REGRESS_LOG make variable to # a log file, use an absolute path. # To mail the test results set the REGRESS_MAIL make variable to an # email address. # To skip the really slow tests, set the REGRESS_SKIP_SLOW variable. SUBDIR+= etc bin include lib libexec sbin sys usr.bin usr.sbin misc gnu install: REGRESS_MAIL?= .if !empty(REGRESS_MAIL) _REGRESS_TMP!=/usr/bin/mktemp .endif .if empty(REGRESS_MAIL) || empty(_REGRESS_TMP) _REGRESS_TMP= _REGRESS_CLEAN=exit 0 .else _REGRESS_CLEAN=rm -f ${_REGRESS_TMP} .endif MAKE_FLAGS+= _REGRESS_TMP=${_REGRESS_TMP} .INTERRUPT: ${_REGRESS_CLEAN} .END: .SILENT .if ${.TARGETS:Mall} || ${.TARGETS:Mregress} echo ==================================================================== .if empty(REGRESS_MAIL) || empty(_REGRESS_TMP) echo You can set REGRESS_LOG to point to a file and mail it manually. echo $$ make REGRESS_LOG=/var/log/regress-tests regress .else echo Mailing regress results to ${REGRESS_MAIL} ... echo If you want them to be also logged locally, you can set the echo REGRESS_LOG make variable to the full path of a log file. (sysctl -n kern.version && cat ${_REGRESS_TMP}) | /usr/bin/mail -s "Regress: `uname -a`" ${REGRESS_MAIL} .endif echo ==================================================================== ${_REGRESS_CLEAN} .endif .include <bsd.subdir.mk>