]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex
Add a basic test for wimverify and the SHA-1 code
[wimlib] / tests / test-imagex
index 9c92715b1fca95a100939f7066088a632e535bf4..1d9fe820833c69e58b5209526af85a5a87f7fb26 100755 (executable)
@@ -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