diff --git a/post_build.sh b/post_build.sh new file mode 100644 index 00000000..d012e11c --- /dev/null +++ b/post_build.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +CURRENT_DIR=$(dirname "$0") +CURRENT_DIR=$(realpath ${CURRENT_DIR}) + +rsync -av --progress ${CURRENT_DIR}/repertory/repertory_test/data/ ${PROJECT_DIST_DIR}/data/ diff --git a/repertory/repertory_test/src/test_common.cpp b/repertory/repertory_test/src/test_common.cpp index 0116d7b7..a996a087 100644 --- a/repertory/repertory_test/src/test_common.cpp +++ b/repertory/repertory_test/src/test_common.cpp @@ -71,6 +71,6 @@ auto get_test_dir() -> std::string { if (not dir.empty()) { return utils::path::absolute(dir); } - return utils::path::absolute(utils::path::combine("..", {".."})); + return utils::path::absolute(utils::path::combine(".", "test_data")); } } // namespace repertory diff --git a/repertory/repertory_test/encrypt/sub10/moose.txt b/repertory/repertory_test/test_data/encrypt/sub10/moose.txt similarity index 83% rename from repertory/repertory_test/encrypt/sub10/moose.txt rename to repertory/repertory_test/test_data/encrypt/sub10/moose.txt index 9daeafb9..77356c31 100644 --- a/repertory/repertory_test/encrypt/sub10/moose.txt +++ b/repertory/repertory_test/test_data/encrypt/sub10/moose.txt @@ -1 +1 @@ -test +test diff --git a/repertory/repertory_test/encrypt/test.txt b/repertory/repertory_test/test_data/encrypt/test.txt similarity index 85% rename from repertory/repertory_test/encrypt/test.txt rename to repertory/repertory_test/test_data/encrypt/test.txt index a8cb35ca..8f0ef0d5 100644 --- a/repertory/repertory_test/encrypt/test.txt +++ b/repertory/repertory_test/test_data/encrypt/test.txt @@ -1 +1 @@ -moose +moose