From: Eric Biggers Date: Sat, 18 Mar 2023 07:17:54 +0000 (-0700) Subject: Add a basic test for wimverify and the SHA-1 code X-Git-Tag: v1.14.0~90 X-Git-Url: https://wimlib.net/git/?a=commitdiff_plain;h=f7a1aff52396cfeb373806ffd6b4ee56e0ade65c;p=wimlib Add a basic test for wimverify and the SHA-1 code --- diff --git a/tests/test-imagex b/tests/test-imagex index 9c92715b..1d9fe820 100755 --- a/tests/test-imagex +++ b/tests/test-imagex @@ -65,6 +65,17 @@ for comp_type in None LZX XPRESS; do rm -rf dir.wim tmp done +# Test wimverify and the SHA-1 code +WIMLIB_DISABLE_CPU_FEATURES='*' wimcapture dir dir.wim --compress=none +disabled='' +for cpu_feature in '' sha1 bmi2 avx sse4.2 sse4.1 ssse3; do + [ -n "$disabled" ] && disabled+=',' + disabled+="$cpu_feature" + if ! WIMLIB_DISABLE_CPU_FEATURES=$disabled wimverify dir.wim; then + error "wimverify failed (cpu_features_disabled=$disabled)" + fi +done + # Test wimappend --create rm -f dir.wim if wimappend dir dir.wim; then