Skip to content

Commit 53be3dd

Browse files
committed
test: introduce (mini) unit test framework
Lightweight unit testing framework, providing a structured way to define, execute, and report tests. It includes a central test registry, a flexible command-line argument parser of the form "-key=value" (facilitating future framework extensions), ability to run tests in parallel and accumulated test time logging reports. So far the supported command-line args are: - "-jobs=<num>" to specify the number of parallel workers. - "-seed=<hex>" to specify the context seed (random if not set). - "-iterations=<value>" to specify the number of iterations. Compatibility Note: To stay compatible with previous versions, the framework also supports the two original positional arguments: the iterations count and the RNG seed (in that order).
1 parent 8c97483 commit 53be3dd

File tree

4 files changed

+594
-139
lines changed

4 files changed

+594
-139
lines changed

Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ noinst_HEADERS += src/precomputed_ecmult.h
4545
noinst_HEADERS += src/precomputed_ecmult_gen.h
4646
noinst_HEADERS += src/assumptions.h
4747
noinst_HEADERS += src/checkmem.h
48+
noinst_HEADERS += src/unit_test.h
49+
noinst_HEADERS += src/unit_test.c
4850
noinst_HEADERS += src/testutil.h
4951
noinst_HEADERS += src/util.h
5052
noinst_HEADERS += src/util_local_visibility.h

0 commit comments

Comments
 (0)