diff options
author | djm@openbsd.org <djm@openbsd.org> | 2018-10-17 23:28:05 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-11-22 16:14:31 +1100 |
commit | 35d0e5fefc419bddcbe09d7fc163d8cd3417125b (patch) | |
tree | c47dbf67447dddd82deb0539ce01b574f09a3819 /regress/unittests/Makefile.inc | |
parent | c1941293d9422a14dda372b4c21895e72aa7a063 (diff) |
upstream: add some knobs:
UNITTEST_FAST?= no # Skip slow tests (e.g. less intensive fuzzing).
UNITTEST_SLOW?= no # Include slower tests (e.g. more intensive fuzzing).
UNITTEST_VERBOSE?= no # Verbose test output (inc. per-test names).
useful if you want to run the tests as a smoke test to exercise the
functionality without waiting for all the fuzzers to run.
OpenBSD-Regress-ID: e04d82ebec86068198cd903acf1c67563c57315e
Diffstat (limited to 'regress/unittests/Makefile.inc')
-rw-r--r-- | regress/unittests/Makefile.inc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/regress/unittests/Makefile.inc b/regress/unittests/Makefile.inc index d662a46bc..428ef6836 100644 --- a/regress/unittests/Makefile.inc +++ b/regress/unittests/Makefile.inc | |||
@@ -1,10 +1,15 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.12 2017/12/21 00:41:22 djm Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.13 2018/10/17 23:28:05 djm Exp $ |
2 | 2 | ||
3 | REGRESS_FAIL_EARLY?= yes | 3 | REGRESS_FAIL_EARLY?= yes |
4 | 4 | ||
5 | .include <bsd.own.mk> | 5 | .include <bsd.own.mk> |
6 | .include <bsd.obj.mk> | 6 | .include <bsd.obj.mk> |
7 | 7 | ||
8 | # User-settable options | ||
9 | UNITTEST_FAST?= no # Skip slow tests (e.g. less intensive fuzzing). | ||
10 | UNITTEST_SLOW?= no # Include slower tests (e.g. more intensive fuzzing). | ||
11 | UNITTEST_VERBOSE?= no # Verbose test output (inc. per-test names). | ||
12 | |||
8 | MALLOC_OPTIONS?= CFGJRSUX | 13 | MALLOC_OPTIONS?= CFGJRSUX |
9 | TEST_ENV?= MALLOC_OPTIONS=${MALLOC_OPTIONS} | 14 | TEST_ENV?= MALLOC_OPTIONS=${MALLOC_OPTIONS} |
10 | 15 | ||
@@ -68,3 +73,14 @@ DPADD+= ${LIBUTIL} | |||
68 | LDADD+= -lcrypto | 73 | LDADD+= -lcrypto |
69 | DPADD+= ${LIBCRYPTO} | 74 | DPADD+= ${LIBCRYPTO} |
70 | .endif | 75 | .endif |
76 | |||
77 | UNITTEST_ARGS?= | ||
78 | |||
79 | .if (${UNITTEST_VERBOSE:L} != "no") | ||
80 | UNITTEST_ARGS+= -v | ||
81 | .endif | ||
82 | .if (${UNITTEST_FAST:L} != "no") | ||
83 | UNITTEST_ARGS+= -f | ||
84 | .elif (${UNITTEST_SLOW:L} != "no") | ||
85 | UNITTEST_ARGS+= -F | ||
86 | .endif | ||