Add SHORTCHECK variable to Makefile to control test dataset size

This commit is contained in:
Andrea Mazzoleni 2026-08-26 11:08:00 +02:00
parent a4a8e817b4
commit de809dda5e
2 changed files with 12 additions and 14 deletions

View file

@ -54,7 +54,7 @@ jobs:
-cpu cortex-a15 \
-L /usr/arm-linux-gnueabihf \
./snapraid -V
- run: make check
- run: make check SHORTCHECK=1
build-win:
runs-on: windows-latest
defaults:

View file

@ -301,23 +301,21 @@ CHECKFLAGS = $(CHECKFLAGS_ALPHA) -q -q -q
# Snapshots with no parity limit
CHECKFLAGS_SNAP = --test-skip-device --test-skip-self --test-io-advise-none --test-force-order-alpha -q -q -q
# Number of files to create
if !HAVE_MEMORY_CHECKER
if HAVE_POSIX
CHECKCOUNT = 1000
else
CHECKCOUNT = 500
# Short check options
if HAVE_MEMORY_CHECKER
SHORTCHECK = 1
endif
SHORTCHECK ?= 0
# Number of files to create
if HAVE_POSIX
CHECKCOUNT_DEFAULT = 1000
else
CHECKCOUNT = 500
CHECKCOUNT_DEFAULT = 500
endif
# Size of files to create
if !HAVE_MEMORY_CHECKER
CHECKSIZE = 4000
else
CHECKSIZE = 100
endif
CHECKCOUNT = $(if $(filter 1,$(SHORTCHECK)),500,$(CHECKCOUNT_DEFAULT))
CHECKSIZE = $(if $(filter 1,$(SHORTCHECK)),100,4000)
CONF = $(srcdir)/test/test-par6.conf
THERMAL = $(srcdir)/test/test-par6-thermal.conf