Browse Source

Fixed cmake_test in case jucipp folder is not named jucipp

merge-requests/365/head
eidheim 10 years ago
parent
commit
51de983d8f
  1. 6
      tests/cmake_test.cc

6
tests/cmake_test.cc

@ -4,9 +4,11 @@
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
int main() { int main() {
CMake cmake(JUCI_TESTS_PATH); auto tests_path=boost::filesystem::canonical(JUCI_TESTS_PATH);
g_assert(cmake.project_path.filename()=="jucipp"); CMake cmake(tests_path);
g_assert(cmake.project_path==boost::filesystem::canonical(tests_path/".."));
auto functions_parameters=cmake.get_functions_parameters("project"); auto functions_parameters=cmake.get_functions_parameters("project");
g_assert(functions_parameters.at(0).second.at(0)=="juci"); g_assert(functions_parameters.at(0).second.at(0)=="juci");

Loading…
Cancel
Save