X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=tests%2Fwin32-test-imagex-capture_and_apply.bat;h=458d2b8a235caaa2ed43e849bb1b29e0313ed9c7;hb=6456b91be4f0c69faa66b24b25dddfe5d463fece;hp=023beaf4a8329ee6e93f6c183dad682dcd17d7cc;hpb=d07c69b525404a9826caf386f27623eb894db989;p=wimlib diff --git a/tests/win32-test-imagex-capture_and_apply.bat b/tests/win32-test-imagex-capture_and_apply.bat index 023beaf4..458d2b8a 100644 --- a/tests/win32-test-imagex-capture_and_apply.bat +++ b/tests/win32-test-imagex-capture_and_apply.bat @@ -257,6 +257,56 @@ attrib +h hidden call :do_test if %errorlevel% neq 0 exit /b %errorlevel% +call :msg "hidden directory" +md subdir +attrib +h subdir +call :do_test +if %errorlevel% neq 0 exit /b %errorlevel% + +call :msg "encrypted file" +echo "hello" > encrypted +cipher /e encrypted > nul +call :do_test +if %errorlevel% neq 0 exit /b %errorlevel% + +call :msg "identical encrypted files" +echo "hello" > encrypted1 +echo "hello" > encrypted2 +cipher /e encrypted1 > nul +cipher /e encrypted2 > nul +call :do_test +if %errorlevel% neq 0 exit /b %errorlevel% + +call :msg "encrypted directory" +md subdir +cipher /e subdir > nul +call :do_test +if %errorlevel% neq 0 exit /b %errorlevel% + +call :msg "encrypted directory with encrypted file in it" +md subdir +echo 1 > subdir\1 +cipher /e subdir > nul +cipher /e subdir\1 > nul +call :do_test +if %errorlevel% neq 0 exit /b %errorlevel% + +call :msg "encrypted directory with unencrypted file in it" +md subdir +echo 1 > subdir\1 +cipher /e subdir > nul +cipher /d subdir\1 > nul +call :do_test +if %errorlevel% neq 0 exit /b %errorlevel% + +call :msg "hardlinked, encrypted file with alternate data streams" +echo hello > file +echo hello > file:ads +cipher /e file > nul +mklink /h link file > nul +call :do_test +if %errorlevel% neq 0 exit /b %errorlevel% + REM REM END OF TESTS REM