added winfsp test executable

This commit is contained in:
Scott E. Graves 2024-10-24 08:02:39 -05:00
parent 2169456d6a
commit 26e1975edc
2 changed files with 13 additions and 5 deletions

View File

@ -21,7 +21,7 @@
*/
#ifndef REPERTORY_TEST_INCLUDE_FIXTURES_WINFSP_FIXTURE_HPP
#define REPERTORY_TEST_INCLUDE_FIXTURES_WINFSP_FIXTURE_HPP
#if 0
// #if 0
#if defined(_WIN32)
#include "test_common.hpp"
@ -247,5 +247,5 @@ using winfsp_provider_types = ::testing::Types<s3_provider, sia_provider>;
} // namespace repertory
#endif // defined(_WIN32)
#endif // 0
// #endif // 0
#endif // REPERTORY_TEST_INCLUDE_FIXTURES_WINFSP_FIXTURE_HPP

View File

@ -20,7 +20,7 @@
SOFTWARE.
*/
#if defined(_WIN32)
// #if 0
#if 0
#include "fixtures/winfsp_fixture.hpp"
@ -224,12 +224,20 @@ 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");
std::vector<std::string> test_options{
"--external",
"--resilient",
};
auto res =
system((utils::path::combine(cur.string(), {"winfsp-tests-x64.exe"}) +
' ' + utils::string::join(test_options, ' '))
.c_str());
EXPECT_EQ(0, res);
std::filesystem::current_path(cur);
}
} // namespace repertory
// #endif // 0
#endif // 0
#endif // defined(_WIN32)