]> wimlib.net Git - wimlib/blobdiff - tests/win32-test-imagex-capture_and_apply.sh
Fix win32-test-imagex-capture_and_apply.bat and add to CI
[wimlib] / tests / win32-test-imagex-capture_and_apply.sh
diff --git a/tests/win32-test-imagex-capture_and_apply.sh b/tests/win32-test-imagex-capture_and_apply.sh
new file mode 100755 (executable)
index 0000000..4a190c4
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -e -u -v
+
+./tools/windows-build.sh
+bindir=$(find . -name 'wimlib-*-bin' | tail -1)
+for helper in win32-tree-cmp set_reparse_point; do
+       cc -O2 -municode -Wall -Werror ./tests/$helper.c -o "$bindir"/$helper.exe
+       chmod 700 "$bindir"/$helper.exe
+done
+cd "$bindir"
+../tests/win32-test-imagex-capture_and_apply.bat