Skip to content

Commit

Permalink
copy test_permlinks.csv on build #897
Browse files Browse the repository at this point in the history
  • Loading branch information
zxcat committed Aug 29, 2019
1 parent c7f2081 commit bcada55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ endif(VERSION_OUTPUT STREQUAL "MATCH")
enable_testing()

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/contracts.hpp.in ${CMAKE_CURRENT_BINARY_DIR}/contracts.hpp)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test_permlinks.csv ${CMAKE_CURRENT_BINARY_DIR}/test_permlinks.csv COPYONLY)

include_directories(${CMAKE_BINARY_DIR})

Expand Down
2 changes: 1 addition & 1 deletion tests/golos.posting_unit_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ BOOST_FIXTURE_TEST_CASE(permlinks_internal_test, posting_tester) try {
BOOST_CHECK(post.get_permlink({parent, "one-more"}).is_null());

BOOST_TEST_MESSAGE("--- test batch add from file");
const auto filename = "../tests/test_permlinks.csv";
const auto filename = "test_permlinks.csv";
auto path = boost::filesystem::absolute(boost::filesystem::path(filename));
BOOST_CHECK(boost::filesystem::exists(path));
boost::filesystem::ifstream in(path);
Expand Down

0 comments on commit bcada55

Please sign in to comment.