mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 05:10:16 -05:00
Add SHORTCHECK variable to Makefile to control test dataset size
This commit is contained in:
parent
a4a8e817b4
commit
de809dda5e
2 changed files with 12 additions and 14 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
|
@ -54,7 +54,7 @@ jobs:
|
||||||
-cpu cortex-a15 \
|
-cpu cortex-a15 \
|
||||||
-L /usr/arm-linux-gnueabihf \
|
-L /usr/arm-linux-gnueabihf \
|
||||||
./snapraid -V
|
./snapraid -V
|
||||||
- run: make check
|
- run: make check SHORTCHECK=1
|
||||||
build-win:
|
build-win:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
defaults:
|
defaults:
|
||||||
|
|
|
||||||
24
Makefile.am
24
Makefile.am
|
|
@ -301,23 +301,21 @@ CHECKFLAGS = $(CHECKFLAGS_ALPHA) -q -q -q
|
||||||
# Snapshots with no parity limit
|
# Snapshots with no parity limit
|
||||||
CHECKFLAGS_SNAP = --test-skip-device --test-skip-self --test-io-advise-none --test-force-order-alpha -q -q -q
|
CHECKFLAGS_SNAP = --test-skip-device --test-skip-self --test-io-advise-none --test-force-order-alpha -q -q -q
|
||||||
|
|
||||||
# Number of files to create
|
# Short check options
|
||||||
if !HAVE_MEMORY_CHECKER
|
if HAVE_MEMORY_CHECKER
|
||||||
if HAVE_POSIX
|
SHORTCHECK = 1
|
||||||
CHECKCOUNT = 1000
|
|
||||||
else
|
|
||||||
CHECKCOUNT = 500
|
|
||||||
endif
|
endif
|
||||||
|
SHORTCHECK ?= 0
|
||||||
|
|
||||||
|
# Number of files to create
|
||||||
|
if HAVE_POSIX
|
||||||
|
CHECKCOUNT_DEFAULT = 1000
|
||||||
else
|
else
|
||||||
CHECKCOUNT = 500
|
CHECKCOUNT_DEFAULT = 500
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Size of files to create
|
CHECKCOUNT = $(if $(filter 1,$(SHORTCHECK)),500,$(CHECKCOUNT_DEFAULT))
|
||||||
if !HAVE_MEMORY_CHECKER
|
CHECKSIZE = $(if $(filter 1,$(SHORTCHECK)),100,4000)
|
||||||
CHECKSIZE = 4000
|
|
||||||
else
|
|
||||||
CHECKSIZE = 100
|
|
||||||
endif
|
|
||||||
|
|
||||||
CONF = $(srcdir)/test/test-par6.conf
|
CONF = $(srcdir)/test/test-par6.conf
|
||||||
THERMAL = $(srcdir)/test/test-par6-thermal.conf
|
THERMAL = $(srcdir)/test/test-par6-thermal.conf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue