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.

18 lines
459 B

#include "test_suite.h"
#include <iostream>
int main() {
auto &config = Config::get();
config.project.cmake.command = "cmake";
auto suite_name = "CMake_tests";
suite test_suite(suite_name);
auto module = py::module::import("cmake_test");
try {
module.attr("run")((test_suite.test_file_path / "cmake_project").string());
test_suite.has_assertion = true;
} catch(const py::error_already_set &error){
std::cout << error.what();
}
}