refactor
This commit is contained in:
parent
0f60a5a467
commit
5138b0d1ab
@ -6,7 +6,7 @@ pipeline {
|
|||||||
environment {
|
environment {
|
||||||
DEVELOPER_PRIVATE_KEY = "/.ci/repertory/cert/developer.priv"
|
DEVELOPER_PRIVATE_KEY = "/.ci/repertory/cert/developer.priv"
|
||||||
DEVELOPER_PUBLIC_KEY = "/.ci/repertory/cert/developer.pub"
|
DEVELOPER_PUBLIC_KEY = "/.ci/repertory/cert/developer.pub"
|
||||||
PROJECT_TEST_DIR = "/.ci/repertory/test"
|
PROJECT_TEST_CONFIG_DIR = "/.ci/repertory/test_config"
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
CURRENT_DIR=$(dirname "$0")
|
CURRENT_DIR=$(dirname "$0")
|
||||||
CURRENT_DIR=$(realpath ${CURRENT_DIR})
|
CURRENT_DIR=$(realpath ${CURRENT_DIR})
|
||||||
|
|
||||||
rsync -av --progress ${CURRENT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}_test/test_config/ \
|
rsync -av --progress ${CURRENT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}_test/test_input/ \
|
||||||
${PROJECT_BUILD_DIR}/build/test_config/
|
${PROJECT_BUILD_DIR}/build/test_input/
|
||||||
|
|
||||||
rsync -av --progress ${CURRENT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}_test/test_config/ \
|
rsync -av --progress ${CURRENT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}_test/test_input/ \
|
||||||
${PROJECT_DIST_DIR}/test_config/
|
${PROJECT_DIST_DIR}/test_input/
|
||||||
|
@ -165,65 +165,6 @@ namespace repertory {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
//
|
|
||||||
// TEST_F(winfsp_test, all_tests) {
|
|
||||||
// if (PROVIDER_INDEX == 0) {
|
|
||||||
// for (std::size_t idx = 0U; idx < 2U; idx++) {
|
|
||||||
// launch_app(
|
|
||||||
// ("cmd.exe /c unittests.exe --gtest_filter=winfsp_test.all_tests "
|
|
||||||
// "--provider_index " +
|
|
||||||
// std::to_string(idx) + " > unittests" + std::to_string(idx) +
|
|
||||||
// ".log 2>&1"));
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if (PROVIDER_INDEX == 1U) {
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// std::string mount_point;
|
|
||||||
// const auto drive_args = mount_setup(mount_point);
|
|
||||||
//
|
|
||||||
// event_capture ec({
|
|
||||||
// "drive_mounted",
|
|
||||||
// "drive_unmounted",
|
|
||||||
// "drive_unmount_pending",
|
|
||||||
// "drive_mount_result",
|
|
||||||
// });
|
|
||||||
//
|
|
||||||
// std::thread th([&] {
|
|
||||||
// const auto mounted = ec.wait_for_event("drive_mounted");
|
|
||||||
// EXPECT_TRUE(mounted);
|
|
||||||
// if (mounted) {
|
|
||||||
// root_creation_test(mount_point);
|
|
||||||
// {
|
|
||||||
// const auto file = create_test(this, mount_point);
|
|
||||||
// delete_file_test(file);
|
|
||||||
// }
|
|
||||||
// {
|
|
||||||
// const auto dir = utils::path::combine(mount_point, {"TestDir"});
|
|
||||||
// create_directory_test(dir);
|
|
||||||
// remove_directory_test(dir);
|
|
||||||
// }
|
|
||||||
// write_file_test(mount_point);
|
|
||||||
// read_file_test(mount_point);
|
|
||||||
// // TODO enable after rename support is available
|
|
||||||
// // rename_file_test(this, mount_point);
|
|
||||||
// // rename_directory_test(mount_point);
|
|
||||||
// overwrite_file_test(mount_point);
|
|
||||||
// get_set_basic_info_test(mount_point);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if (mounted) {
|
|
||||||
// unmount(this, mount_point);
|
|
||||||
// ec.wait_for_empty();
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
//
|
|
||||||
// execute_mount(this, drive_args, th);
|
|
||||||
// }
|
|
||||||
|
|
||||||
TYPED_TEST_CASE(winfsp_test, winfsp_provider_types);
|
TYPED_TEST_CASE(winfsp_test, winfsp_provider_types);
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
test
|
test
|
@ -1 +1 @@
|
|||||||
moose
|
moose
|
@ -110,10 +110,19 @@ auto generate_test_file_name(std::string_view file_name_no_extension)
|
|||||||
return generated_files.back()->get_path();
|
return generated_files.back()->get_path();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto get_test_config_dir() -> std::string {
|
||||||
|
static auto test_path = ([]() -> std::string {
|
||||||
|
auto dir = utils::get_environment_variable("PROJECT_TEST_CONFIG_DIR");
|
||||||
|
return utils::path::combine(dir.empty() ? "." : dir, {"test_config"});
|
||||||
|
})();
|
||||||
|
|
||||||
|
return test_path;
|
||||||
|
}
|
||||||
|
|
||||||
auto get_test_input_dir() -> std::string {
|
auto get_test_input_dir() -> std::string {
|
||||||
static auto test_path = ([]() -> std::string {
|
static auto test_path = ([]() -> std::string {
|
||||||
auto dir = utils::get_environment_variable("PROJECT_TEST_DIR");
|
auto dir = utils::get_environment_variable("PROJECT_TEST_INPUT_DIR");
|
||||||
return utils::path::combine(dir.empty() ? "." : dir, {"test_config"});
|
return utils::path::combine(dir.empty() ? "." : dir, {"test_input"});
|
||||||
})();
|
})();
|
||||||
|
|
||||||
return test_path;
|
return test_path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user