mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
tst: add oplock testsuite run and disable some tests according to configuration
This commit is contained in:
parent
2e089b92c5
commit
b0a59e42fc
@ -32,11 +32,13 @@ for %%f in (^
|
|||||||
:winfsp-tests-x64-mountpoint-drive ^
|
:winfsp-tests-x64-mountpoint-drive ^
|
||||||
:winfsp-tests-x64-mountpoint-dir ^
|
:winfsp-tests-x64-mountpoint-dir ^
|
||||||
:winfsp-tests-x64-no-traverse ^
|
:winfsp-tests-x64-no-traverse ^
|
||||||
|
:winfsp-tests-x64-oplock ^
|
||||||
:winfsp-tests-x86 ^
|
:winfsp-tests-x86 ^
|
||||||
:winfsp-tests-x86-case-randomize ^
|
:winfsp-tests-x86-case-randomize ^
|
||||||
:winfsp-tests-x86-mountpoint-drive ^
|
:winfsp-tests-x86-mountpoint-drive ^
|
||||||
:winfsp-tests-x86-mountpoint-dir ^
|
:winfsp-tests-x86-mountpoint-dir ^
|
||||||
:winfsp-tests-x86-no-traverse ^
|
:winfsp-tests-x86-no-traverse ^
|
||||||
|
:winfsp-tests-x86-oplock ^
|
||||||
:winfsp-tests-x64-external-share ^
|
:winfsp-tests-x64-external-share ^
|
||||||
:fsx-memfs-x64-disk ^
|
:fsx-memfs-x64-disk ^
|
||||||
:fsx-memfs-x64-net ^
|
:fsx-memfs-x64-net ^
|
||||||
@ -127,6 +129,11 @@ winfsp-tests-x64 --no-traverse
|
|||||||
if !ERRORLEVEL! neq 0 goto fail
|
if !ERRORLEVEL! neq 0 goto fail
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
|
||||||
|
:winfsp-tests-x64-oplock
|
||||||
|
winfsp-tests-x64 --oplock=filter --resilient
|
||||||
|
if !ERRORLEVEL! neq 0 goto fail
|
||||||
|
exit /b 0
|
||||||
|
|
||||||
:winfsp-tests-x86
|
:winfsp-tests-x86
|
||||||
winfsp-tests-x86
|
winfsp-tests-x86
|
||||||
if !ERRORLEVEL! neq 0 goto fail
|
if !ERRORLEVEL! neq 0 goto fail
|
||||||
@ -152,6 +159,11 @@ winfsp-tests-x86 --no-traverse
|
|||||||
if !ERRORLEVEL! neq 0 goto fail
|
if !ERRORLEVEL! neq 0 goto fail
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
|
||||||
|
:winfsp-tests-x86-oplock
|
||||||
|
winfsp-tests-x86 --oplock=filter --resilient
|
||||||
|
if !ERRORLEVEL! neq 0 goto fail
|
||||||
|
exit /b 0
|
||||||
|
|
||||||
:winfsp-tests-x64-external-share
|
:winfsp-tests-x64-external-share
|
||||||
M:
|
M:
|
||||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --share=winfsp-tests-share=M:\ --resilient ^
|
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --share=winfsp-tests-share=M:\ --resilient ^
|
||||||
|
@ -867,7 +867,8 @@ void create_tests(void)
|
|||||||
TEST(create_test);
|
TEST(create_test);
|
||||||
TEST(create_related_test);
|
TEST(create_related_test);
|
||||||
TEST(create_sd_test);
|
TEST(create_sd_test);
|
||||||
TEST(create_notraverse_test);
|
if (!OptNoTraverseToken && !OptShareName)
|
||||||
|
TEST(create_notraverse_test);
|
||||||
TEST(create_backup_test);
|
TEST(create_backup_test);
|
||||||
TEST(create_restore_test);
|
TEST(create_restore_test);
|
||||||
TEST(create_share_test);
|
TEST(create_share_test);
|
||||||
|
@ -544,6 +544,7 @@ void dirctl_tests(void)
|
|||||||
{
|
{
|
||||||
TEST(querydir_test);
|
TEST(querydir_test);
|
||||||
TEST(querydir_expire_cache_test);
|
TEST(querydir_expire_cache_test);
|
||||||
TEST(querydir_buffer_overflow_test);
|
if (!OptShareName)
|
||||||
|
TEST(querydir_buffer_overflow_test);
|
||||||
TEST(dirnotify_test);
|
TEST(dirnotify_test);
|
||||||
}
|
}
|
||||||
|
@ -969,7 +969,8 @@ void info_tests(void)
|
|||||||
TEST(delete_access_test);
|
TEST(delete_access_test);
|
||||||
TEST(rename_test);
|
TEST(rename_test);
|
||||||
TEST(rename_caseins_test);
|
TEST(rename_caseins_test);
|
||||||
TEST(rename_flipflop_test);
|
if (!OptShareName)
|
||||||
|
TEST(rename_flipflop_test);
|
||||||
TEST(getvolinfo_test);
|
TEST(getvolinfo_test);
|
||||||
TEST(setvolinfo_test);
|
TEST(setvolinfo_test);
|
||||||
}
|
}
|
||||||
|
@ -274,6 +274,9 @@ void mount_volume_transact_test(void)
|
|||||||
|
|
||||||
void mount_tests(void)
|
void mount_tests(void)
|
||||||
{
|
{
|
||||||
|
if (NtfsTests || OptOplock)
|
||||||
|
return;
|
||||||
|
|
||||||
TEST(mount_invalid_test);
|
TEST(mount_invalid_test);
|
||||||
TEST(mount_open_device_test);
|
TEST(mount_open_device_test);
|
||||||
TEST(mount_create_volume_test);
|
TEST(mount_create_volume_test);
|
||||||
|
@ -2186,7 +2186,8 @@ void stream_tests(void)
|
|||||||
TEST(stream_setfileinfo_test);
|
TEST(stream_setfileinfo_test);
|
||||||
TEST(stream_delete_test);
|
TEST(stream_delete_test);
|
||||||
TEST(stream_delete_pending_test);
|
TEST(stream_delete_pending_test);
|
||||||
TEST(stream_rename_flipflop_test);
|
if (!OptShareName)
|
||||||
|
TEST(stream_rename_flipflop_test);
|
||||||
TEST(stream_getsecurity_test);
|
TEST(stream_getsecurity_test);
|
||||||
TEST(stream_setsecurity_test);
|
TEST(stream_setsecurity_test);
|
||||||
TEST(stream_getstreaminfo_test);
|
TEST(stream_getstreaminfo_test);
|
||||||
|
@ -262,6 +262,9 @@ void timeout_transact_test(void)
|
|||||||
|
|
||||||
void timeout_tests(void)
|
void timeout_tests(void)
|
||||||
{
|
{
|
||||||
|
if (NtfsTests || OptOplock)
|
||||||
|
return;
|
||||||
|
|
||||||
TEST(timeout_pending_test);
|
TEST(timeout_pending_test);
|
||||||
TEST(timeout_transact_test);
|
TEST(timeout_transact_test);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user