The source code and dockerfile for the GSW2024 AI Lab.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

16 lines
414 B

4 weeks ago
  1. // The Catch implementation is compiled here. This is a standalone
  2. // translation unit to avoid recompiling it for every test change.
  3. #include <pybind11/embed.h>
  4. #define CATCH_CONFIG_RUNNER
  5. #include <catch.hpp>
  6. namespace py = pybind11;
  7. int main(int argc, const char *argv[]) {
  8. py::scoped_interpreter guard{};
  9. auto result = Catch::Session().run(argc, argv);
  10. return result < 0xff ? result : 0xff;
  11. }