]> wimlib.net Git - wimlib/blobdiff - tests/win32-test-imagex-capture_and_apply.bat
Rename tests-common.sh => test_utils.sh
[wimlib] / tests / win32-test-imagex-capture_and_apply.bat
index 8283ddd44a40b5fe3f71dc4dd3820962675b8c1c..6ef76513b00344ea1fdc63466af6a25c598b7cc1 100644 (file)
@@ -207,6 +207,32 @@ echo 1 > file:aa
 call :do_test\r
 if %errorlevel% neq 0 goto :fail\r
 \r
+call :msg "empty reparse point"\r
+type nul > file\r
+%SET_REPARSE_POINT% file 0\r
+call :do_test\r
+if %errorlevel% neq 0 goto :fail\r
+\r
+call :msg "empty reparse point with unnamed data stream"\r
+echo hello > file\r
+%SET_REPARSE_POINT% file 0\r
+call :do_test\r
+if %errorlevel% neq 0 goto :fail\r
+\r
+call :msg "empty reparse point with unnamed data stream and named data streams"\r
+echo hello > file\r
+echo hello > file:ads1\r
+type nul > file:ads2\r
+%SET_REPARSE_POINT% file 0\r
+call :do_test\r
+if %errorlevel% neq 0 goto :fail\r
+\r
+call :msg "maximum length reparse point"\r
+type nul > file\r
+%SET_REPARSE_POINT% file 16376\r
+call :do_test\r
+if %errorlevel% neq 0 goto :fail\r
+\r
 call :msg "directory reparse point that is neither a symlink nor a junction"\r
 md subdir\r
 %SET_REPARSE_POINT% subdir\r
@@ -464,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