You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
627 B

#include <glib.h>
#include "cmake.h"
#include "project_build.h"
#include <boost/filesystem.hpp>
int main() {
auto tests_path=boost::filesystem::canonical(JUCI_TESTS_PATH);
CMake cmake(tests_path);
g_assert(cmake.project_path==boost::filesystem::canonical(tests_path/".."));
auto functions_parameters=cmake.get_functions_parameters("project");
g_assert(functions_parameters.at(0).second.at(0)=="juci");
g_assert(cmake.get_executable(tests_path/"cmake_test.cc").filename()=="cmake_test");
auto build=Project::Build::create(tests_path);
g_assert(dynamic_cast<Project::CMakeBuild*>(build.get()));
}