10 #include <boost/filesystem.hpp> 15 start_time = std::chrono::system_clock::now();
17 path current = current_path();
18 if ( current.stem() == path(
"test") ) {
19 current /= path(
"data");
21 current /=
"test_data";
24 std::cout <<
"current path : " << current << std::endl;
25 #if defined(BOOST_WINDOWS) 26 std::cout <<
"configure file: " << current.string() <<
"\\hikyuu_win.ini" << std::endl;
27 hikyuu_init(current.string() +
"\\hikyuu_win.ini");
29 std::cout <<
"configure file: " << current.string() <<
"/hikyuu_linux.ini" << std::endl;
30 hikyuu_init(current.string() +
"/hikyuu_linux.ini");
33 path tmp_dir = current;
35 if (!exists(tmp_dir)) {
36 create_directory(tmp_dir);
41 std::chrono::duration<double> sec = std::chrono::system_clock::now() - start_time;
42 std::cout <<
"All test spend time: " << sec.count() <<
"s" << std::endl;
BOOST_GLOBAL_FIXTURE(GConfig)