mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 20:36:38 -05:00
Revise the RAID library Makefile
This commit is contained in:
parent
599a4fbb42
commit
1b8bf8dfd0
1 changed files with 29 additions and 9 deletions
|
|
@ -1,13 +1,25 @@
|
||||||
#
|
#
|
||||||
# Test programs for the RAID library
|
# Test programs for the RAID library
|
||||||
#
|
#
|
||||||
# selftest - Runs the same selftest and speedtest executed at the module startup.
|
# Primary Targets:
|
||||||
# fulltest - Runs a more extensive test that checks all the built-in functions.
|
# all - Builds all test and utility binaries (fulltest, speedtest, selftest, invtest, mktables).
|
||||||
# speedtest - Runs a more complete speed test.
|
# clean - Removes all temporary object files, build artifacts, and coverage metadata.
|
||||||
# invtest - Runs an extensive matrix inversion test of all the 377.342.351.231
|
# distclean - Runs clean and deletes all compiled test executables.
|
||||||
# possible square submatrices of the Cauchy matrix used.
|
#
|
||||||
# covtest - Runs a coverage test.
|
# Test & Diagnostic Binaries:
|
||||||
# sdecovtest - Runs a coverage test with the sde emulator.
|
# selftest - Runs the same verification and speed tests executed at module initialization.
|
||||||
|
# speedtest - Runs a comprehensive performance/throughput benchmark suite.
|
||||||
|
# fulltest - Runs an exhaustive test suite verifying all built-in RAID functions.
|
||||||
|
# invtest - Runs an extensive matrix inversion test on all 377,342,351,231
|
||||||
|
# possible square submatrices of the Cauchy matrix used.
|
||||||
|
#
|
||||||
|
# Test Automation & Emulation:
|
||||||
|
# test - Automated test runner that executes ./selftest, ./speedtest, and ./fulltest.
|
||||||
|
# covtest - Executes a code coverage test using lcov/genhtml to generate HTML reports.
|
||||||
|
# sdecovtest - Runs an extensive coverage test using the Intel SDE emulator across
|
||||||
|
# multiple CPU architectures (Prescott, Merom, Nehalem, Haswell, Skylake, Ice Lake).
|
||||||
|
# sde - Runs selftest, speedtest, and fulltest explicitly on the Ice Lake simulator.
|
||||||
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
MACHINE = $(shell uname -m)
|
MACHINE = $(shell uname -m)
|
||||||
|
|
@ -29,7 +41,7 @@ OBJS = raid.o check.o int.o intz.o x86.o x86z.o gfni.o tables.o memory.o test.o
|
||||||
%.o: ../%.c
|
%.o: ../%.c
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
all: fulltest speedtest selftest invtest mktables
|
all: fulltest speedtest selftest invtest mktables tables.c
|
||||||
|
|
||||||
fulltest: $(OBJS) fulltest.o
|
fulltest: $(OBJS) fulltest.o
|
||||||
$(CC) $(CFLAGS) -o fulltest $^
|
$(CC) $(CFLAGS) -o fulltest $^
|
||||||
|
|
@ -49,14 +61,20 @@ mktables: mktables.o
|
||||||
tables.c: mktables
|
tables.c: mktables
|
||||||
./mktables > tables.c
|
./mktables > tables.c
|
||||||
|
|
||||||
|
# Use this target to run a complete test
|
||||||
|
test:
|
||||||
|
./selftest
|
||||||
|
./speedtest
|
||||||
|
./fulltest
|
||||||
|
|
||||||
# Use this target to run a coverage test using lcov
|
# Use this target to run a coverage test using lcov
|
||||||
covtest:
|
covtest:
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
$(MAKE) lcov_reset
|
$(MAKE) lcov_reset
|
||||||
$(MAKE) COVERAGE=1 all
|
$(MAKE) COVERAGE=1 all
|
||||||
./fulltest
|
|
||||||
./selftest
|
./selftest
|
||||||
./speedtest
|
./speedtest
|
||||||
|
./fulltest
|
||||||
$(MAKE) lcov_capture
|
$(MAKE) lcov_capture
|
||||||
$(MAKE) lcov_html
|
$(MAKE) lcov_html
|
||||||
|
|
||||||
|
|
@ -79,9 +97,11 @@ sdecovtest:
|
||||||
$(MAKE) lcov_capture
|
$(MAKE) lcov_capture
|
||||||
$(MAKE) lcov_html
|
$(MAKE) lcov_html
|
||||||
|
|
||||||
|
# Use this target to run a complete test on Ice Lake simulator
|
||||||
sde:
|
sde:
|
||||||
$(SDE) -icl -- ./selftest
|
$(SDE) -icl -- ./selftest
|
||||||
$(SDE) -icl -- ./speedtest
|
$(SDE) -icl -- ./speedtest
|
||||||
|
$(SDE) -icl -- ./fulltest
|
||||||
|
|
||||||
lcov_reset:
|
lcov_reset:
|
||||||
lcov --directory . -z
|
lcov --directory . -z
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue