]> wimlib.net Git - wimlib/blobdiff - tests/win32-test-imagex-capture_and_apply.bat
Add support for capturing/applying object IDs
[wimlib] / tests / win32-test-imagex-capture_and_apply.bat
index 8f573eceb62bd5ea4c7f8f7ca4b0692fa1ef816f..6ef76513b00344ea1fdc63466af6a25c598b7cc1 100644 (file)
@@ -490,6 +490,23 @@ mklink /h link file > nul
 call :do_test\r
 if %errorlevel% neq 0 goto :fail\r
 \r
+REM Note: since object IDs must be unique per filesystem, we can't expect them\r
+REM to preserved using our testing scheme.  Therefore, win32-tree-cmp doesn't\r
+REM compare them, and the below tests really just ensure the object ID code is\r
+REM run to some extent.\r
+\r
+call :msg "file with object ID"\r
+echo hello > file\r
+fsutil objectid create file > nul\r
+call :do_test\r
+if %errorlevel% neq 0 goto :fail\r
+\r
+call :msg "directory with object ID"\r
+md subdir\r
+fsutil objectid set f67394c12b17608e1d050d181ba8ffd2 7df80cbdf620f4c82c79b9e6799147b6 97621aff72915ade05abb96b15dea1a3 e0bda4caa9e33cfd461c92c16be9713d subdir\r
+call :do_test\r
+if %errorlevel% neq 0 goto :fail\r
+\r
 :rpfix_tests\r
 \r
 echo Testing rpfix junction\r