added test data to distribution

This commit is contained in:
Scott E. Graves 2024-07-16 07:48:13 -05:00
parent 12c7c48b20
commit 2e6ecf8ddb
4 changed files with 9 additions and 3 deletions

6
post_build.sh Normal file
View File

@ -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/

View File

@ -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