tst: winfsp-tests: add --ntfs option

This commit is contained in:
Bill Zissimopoulos
2016-10-25 14:03:26 -07:00
parent 8abadf94f3
commit 66d5fe98df
2 changed files with 14 additions and 4 deletions

View File

@ -301,7 +301,14 @@ int main(int argc, char *argv[])
const char *a = argv[argi];
if ('-' == a[0])
{
if (0 == strcmp("--case-insensitive", a))
if (0 == strcmp("--ntfs", a) || 0 == strcmp("--external", a))
{
NtfsTests = 1;
WinFspDiskTests = 0;
WinFspNetTests = 0;
rmarg(argv, argc, argi);
}
else if (0 == strcmp("--case-insensitive", a))
{
OptCaseInsensitive = TRUE;
rmarg(argv, argc, argi);
@ -341,6 +348,7 @@ int main(int argc, char *argv[])
OptSharePrefixLength = (ULONG)
(sizeof OptShareComputer - 2 * sizeof(WCHAR) + (wcslen(OptShareName) * sizeof(WCHAR)));
WinFspDiskTests = 0;
WinFspNetTests = 0;
}
}
@ -356,8 +364,13 @@ int main(int argc, char *argv[])
}
}
if (!NtfsTests && OptShareName)
ABORT("option --share requires --ntfs/--external");
DisableBackupRestorePrivileges();
AddNetShareIfNeeded();
myrandseed = (unsigned)time(0);
tlib_run_tests(argc, argv);