added winfsp test executable

This commit is contained in:
2024-10-24 07:45:20 -05:00
parent cca53b2d26
commit 2169456d6a
8 changed files with 786 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
SOFTWARE.
*/
#if defined(_WIN32)
#if 0
// #if 0
#include "fixtures/winfsp_fixture.hpp"
@@ -219,7 +219,17 @@ TYPED_TEST(winfsp_test, can_get_and_set_basic_info_test) {
this->delete_file_and_test(file_path);
}
TYPED_TEST(winfsp_test, run_winfsp_tests) {
auto cur = std::filesystem::current_path();
std::filesystem::current_path(this->mount_location);
auto res = system("winfsp-tests-x64.exe --external --resilient");
EXPECT_EQ(0, res);
std::filesystem::current_path(cur);
}
} // namespace repertory
#endif // 0
// #endif // 0
#endif // defined(_WIN32)