82b33c0034
This commit establishes a unit test framework for OpenZFS, and integrates it into the build. It includes: - the "munit" unit test framework (munit.c, munit.h) - some light extensions to munit and glue for OpenZFS (unit.c, unit.h) - make targets for running tests and generating coverage reports - a document explaining the what, how and why This is a first step; I expect we will extend all of this as we use it more places and gain experience with it. Sponsored-by: TrueNAS Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <rob.norris@truenas.com> Closes #18564
34 lines
914 B
Makefile
34 lines
914 B
Makefile
# SPDX-License-Identifier: CDDL-1.0
|
|
include $(srcdir)/%D%/unit/Makefile.am
|
|
include $(srcdir)/%D%/zfs-tests/Makefile.am
|
|
|
|
|
|
scripts_test_runner_bindir = $(datadir)/$(PACKAGE)/test-runner/bin
|
|
scripts_test_runner_bin_SCRIPTS = \
|
|
%D%/test-runner/bin/test-runner.py \
|
|
%D%/test-runner/bin/zts-report.py
|
|
|
|
SUBSTFILES += $(scripts_test_runner_bin_SCRIPTS)
|
|
|
|
|
|
scripts_test_runner_includedir = $(datadir)/$(PACKAGE)/test-runner/include
|
|
dist_scripts_test_runner_include_DATA = \
|
|
%D%/test-runner/include/logapi.shlib
|
|
|
|
|
|
scripts_runfilesdir = $(datadir)/$(PACKAGE)/runfiles
|
|
dist_scripts_runfiles_DATA = \
|
|
%D%/runfiles/bclone.run \
|
|
%D%/runfiles/common.run \
|
|
%D%/runfiles/freebsd.run \
|
|
%D%/runfiles/linux.run \
|
|
%D%/runfiles/longevity.run \
|
|
%D%/runfiles/perf-regression.run \
|
|
%D%/runfiles/sanity.run \
|
|
%D%/runfiles/sunos.run
|
|
|
|
|
|
dist_noinst_DATA += %D%/README.md
|
|
|
|
SHELLCHECKSCRIPTS += $(shell find $(srcdir)/%D% -name '*.sh')
|