mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
Uses a more precise hardware emulation in the test.
This commit is contained in:
parent
a26607de8a
commit
31558ca5f4
2 changed files with 19 additions and 10 deletions
18
Makefile.am
18
Makefile.am
|
|
@ -174,17 +174,19 @@ check-local:
|
|||
$(TESTENV) ./snapraid$(EXEEXT) --test-skip-device -H
|
||||
$(TESTENV) ./snapraid$(EXEEXT) --test-skip-device -V
|
||||
$(TESTENV) ./mktest$(EXEEXT)
|
||||
echo --- Run the self test only this time
|
||||
$(TESTENV) ./snapraid$(EXEEXT) --test-skip-device -c $(CONF) status
|
||||
echo --- Run the speed test
|
||||
$(TESTENV) ./snapraid$(EXEEXT) --test-skip-device -T
|
||||
if HAVE_EMULATOR
|
||||
# Run speed test in different architectures
|
||||
$(TESTENV_SSE2) ./snapraid$(EXEEXT) --test-skip-device -T
|
||||
$(TESTENV_SSSE3) ./snapraid$(EXEEXT) --test-skip-device -T
|
||||
$(TESTENV_AVX2) ./snapraid$(EXEEXT) --test-skip-device -T
|
||||
# Run the self test in AVX2
|
||||
$(TESTENV_AVX2) ./snapraid$(EXEEXT) --test-skip-device -c $(CONF) status
|
||||
# Run the speed test in different architectures
|
||||
$(TESTENV_SSE2) ./snapraid$(EXEEXT) --test-skip-device -T
|
||||
$(TESTENV_SSSE3) ./snapraid$(EXEEXT) --test-skip-device -T
|
||||
$(TESTENV_SSE42) ./snapraid$(EXEEXT) --test-skip-device -T
|
||||
$(TESTENV_AVX2) ./snapraid$(EXEEXT) --test-skip-device -T
|
||||
else
|
||||
# Run the self test natively
|
||||
$(TESTENV) ./snapraid$(EXEEXT) --test-skip-device -c $(CONF) status
|
||||
# Run the speed test natively
|
||||
$(TESTENV) ./snapraid$(EXEEXT) --test-skip-device -T
|
||||
endif
|
||||
echo --- Some commands with empty array
|
||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS_VERBOSE) -c $(CONF) diff
|
||||
|
|
|
|||
11
configure.ac
11
configure.ac
|
|
@ -198,10 +198,16 @@ AC_ARG_ENABLE([sgcheck],
|
|||
|
||||
AC_ARG_ENABLE([sde],
|
||||
[AS_HELP_STRING([--enable-sde],[enable the use of SDE emulator in testing])],
|
||||
dnl p4 -> Pentium4 with SSE2
|
||||
dnl mrm -> Merom with SSSE3
|
||||
dnl nhm -> Nehalem with SSE4.2
|
||||
dnl hsw -> Haswell with AVX2
|
||||
dnl knl -> Knights Landing with AVX512
|
||||
[
|
||||
TESTENV_SSE2="$SDE -p4 --"
|
||||
TESTENV_SSE4="$SDE -msm --"
|
||||
TESTENV_AVX2="$SDE --"
|
||||
TESTENV_SSSE3="$SDE -mrm --"
|
||||
TESTENV_SSE42="$SDE -nhm --"
|
||||
TESTENV_AVX2="$SDE -hsw --"
|
||||
EMULATOR=1
|
||||
],
|
||||
[])
|
||||
|
|
@ -231,6 +237,7 @@ AC_ARG_VAR([TESTENV], [Test environment])
|
|||
AC_ARG_VAR([FAILENV], [Test environment for failing tests])
|
||||
AC_ARG_VAR([TESTENV_SSE2], [Test environment for SSE2])
|
||||
AC_ARG_VAR([TESTENV_SSSE3], [Test environment for SSSE3])
|
||||
AC_ARG_VAR([TESTENV_SSE42], [Test environment for SSE42])
|
||||
AC_ARG_VAR([TESTENV_AVX2], [Test environment for AVX2])
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue