From 967be9e750221ab2ab783f95df79bb26d290a45e Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:07:58 +0200 Subject: add: added projects --- tiger-compiler/src/testsuite/libtestsuite.cc | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tiger-compiler/src/testsuite/libtestsuite.cc (limited to 'tiger-compiler/src/testsuite/libtestsuite.cc') diff --git a/tiger-compiler/src/testsuite/libtestsuite.cc b/tiger-compiler/src/testsuite/libtestsuite.cc new file mode 100644 index 0000000..86a5661 --- /dev/null +++ b/tiger-compiler/src/testsuite/libtestsuite.cc @@ -0,0 +1,30 @@ +/** + ** \file testsuite/libtestsuite.cc + ** \brief Functions exported by the testsuite module. + */ + +#include + +#include +#include + +namespace testsuite +{ + + std::vector + find_program_tests(const ast::ChunkList& program) + { + TestsCollector tests_collector; + + tests_collector(program); + + return tests_collector.tests_get(); + } + + ast::ChunkInterface* + create_testsuite_runtime(const std::vector& tests) + { + return generate_testsuite_runtime(tests); + } + +} // namespace testsuite -- cgit v1.2.3