X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Fwin32-test-imagex-capture_and_apply.bat;h=8f573eceb62bd5ea4c7f8f7ca4b0692fa1ef816f;hp=98064adedea7a92658593a7e5601740f2749c8ee;hb=10625fec55941b45fc8ae6cf4b74fa8e629d21a7;hpb=3a8c277a01de54d7a35078e66072671e8242af67 diff --git a/tests/win32-test-imagex-capture_and_apply.bat b/tests/win32-test-imagex-capture_and_apply.bat index 98064ade..8f573ece 100644 --- a/tests/win32-test-imagex-capture_and_apply.bat +++ b/tests/win32-test-imagex-capture_and_apply.bat @@ -10,8 +10,9 @@ REM Administrator privileges. wimlib-imagex and win32-tree-cmp must be REM executable using the paths set below. setlocal EnableDelayedExpansion -set WIN32_TREE_CMP=win32-tree-cmp set WIMLIB_IMAGEX=wimlib-imagex +set WIN32_TREE_CMP=win32-tree-cmp +set SET_REPARSE_POINT=set_reparse_point if exist in.dir rd /S /Q in.dir if exist out.dir rd /S /Q out.dir @@ -178,6 +179,74 @@ echo "hello world!!!!" > subdir2\otherfile call :do_test if %errorlevel% neq 0 goto :fail +call :msg "reparse point that is neither a symlink nor a junction" +type nul > file +%SET_REPARSE_POINT% file +call :do_test +if %errorlevel% neq 0 goto :fail + +call :msg "reparse point with named data streams" +type nul > file +echo 11 > file:a +echo 1 > file:aa +%SET_REPARSE_POINT% file +call :do_test +if %errorlevel% neq 0 goto :fail + +call :msg "reparse point with unnamed data stream" +echo "test" > file +%SET_REPARSE_POINT% file +call :do_test +if %errorlevel% neq 0 goto :fail + +call :msg "reparse point with unnamed data stream and named data streams" +echo "test" > file +echo 11 > file:a +echo 1 > file:aa +%SET_REPARSE_POINT% file +call :do_test +if %errorlevel% neq 0 goto :fail + +call :msg "empty reparse point" +type nul > file +%SET_REPARSE_POINT% file 0 +call :do_test +if %errorlevel% neq 0 goto :fail + +call :msg "empty reparse point with unnamed data stream" +echo hello > file +%SET_REPARSE_POINT% file 0 +call :do_test +if %errorlevel% neq 0 goto :fail + +call :msg "empty reparse point with unnamed data stream and named data streams" +echo hello > file +echo hello > file:ads1 +type nul > file:ads2 +%SET_REPARSE_POINT% file 0 +call :do_test +if %errorlevel% neq 0 goto :fail + +call :msg "maximum length reparse point" +type nul > file +%SET_REPARSE_POINT% file 16376 +call :do_test +if %errorlevel% neq 0 goto :fail + +call :msg "directory reparse point that is neither a symlink nor a junction" +md subdir +%SET_REPARSE_POINT% subdir +call :do_test +if %errorlevel% neq 0 goto :fail + +call :msg "directory reparse point with named data streams" +md subdir +echo 11 > subdir:a +echo 1 > subdir:aa +%SET_REPARSE_POINT% subdir +call :do_test +if %errorlevel% neq 0 goto :fail + call :msg "compressed file" echo "test" > test compact /C test > nul