[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / regress

Annotation of src/regress/Makefile, Revision 1.21

1.21    ! schwarze    1: #      $OpenBSD: Makefile,v 1.20 2010/06/28 16:03:15 phessler Exp $
1.8       art         2:
                      3: #
                      4: # To run full regression tests you just need two steps:
                      5: # 1. make depend
                      6: # 2. make regress
                      7: #
                      8: # A normal "make" is not necessary and will simply do the same thing
                      9: # as "regress" (possibly with more bugs). This allows us to include
                     10: # compilation as a part of the regression test.
                     11: #
1.13      avsm       12: # To get a log of test results set the REGRESS_LOG make variable to
1.8       art        13: # a log file, use an absolute path.
1.13      avsm       14: # To mail the test results set the REGRESS_MAIL make variable to an
1.20      phessler   15: # email address.
1.13      avsm       16: # To skip the really slow tests, set the REGRESS_SKIP_SLOW variable.
1.1       deraadt    17:
1.21    ! schwarze   18: SUBDIR+= etc bin include lib libexec sbin sys usr.bin usr.sbin misc gnu
1.1       deraadt    19:
                     20: install:
1.13      avsm       21:
                     22: REGRESS_MAIL?=
                     23:
                     24: .if !empty(REGRESS_MAIL)
                     25: _REGRESS_TMP!=/usr/bin/mktemp
                     26: .endif
                     27:
                     28: .if empty(REGRESS_MAIL) || empty(_REGRESS_TMP)
                     29: _REGRESS_TMP=
                     30: _REGRESS_CLEAN=exit 0
                     31: .else
                     32: _REGRESS_CLEAN=rm -f ${_REGRESS_TMP}
                     33: .endif
1.19      espie      34: MAKE_FLAGS+= _REGRESS_TMP=${_REGRESS_TMP}
1.13      avsm       35:
                     36: .INTERRUPT:
                     37:        ${_REGRESS_CLEAN}
                     38:
                     39: .END: .SILENT
                     40: .if ${.TARGETS:Mall} || ${.TARGETS:Mregress}
                     41:        echo ====================================================================
                     42: .if empty(REGRESS_MAIL) || empty(_REGRESS_TMP)
1.14      avsm       43:        echo You can set REGRESS_LOG to point to a file and mail it manually.
1.13      avsm       44:        echo $$ make REGRESS_LOG=/var/log/regress-tests regress
                     45: .else
                     46:        echo Mailing regress results to ${REGRESS_MAIL} ...
                     47:        echo If you want them to be also logged locally, you can set the
                     48:        echo REGRESS_LOG make variable to the full path of a log file.
1.15      avsm       49:        (sysctl -n kern.version && cat ${_REGRESS_TMP}) | /usr/bin/mail -s "Regress: `uname -a`" ${REGRESS_MAIL}
1.13      avsm       50: .endif
                     51:        echo ====================================================================
                     52:        ${_REGRESS_CLEAN}
                     53: .endif
1.1       deraadt    54:
                     55: .include <bsd.subdir.mk>