X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=tests%2Ftest-imagex;fp=tests%2Ftest-imagex;h=1d9fe820833c69e58b5209526af85a5a87f7fb26;hb=f7a1aff52396cfeb373806ffd6b4ee56e0ade65c;hp=9c92715b1fca95a100939f7066088a632e535bf4;hpb=f73332717baf4ab155b57f64ec9dbcd344d7f0c1;p=wimlib 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