added winfsp test executable
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user