catch.cpp revision 12391
12914SN/A// The Catch implementation is compiled here. This is a standalone 28856SN/A// translation unit to avoid recompiling it for every test change. 38856SN/A 48856SN/A#include <pybind11/embed.h> 58856SN/A 68856SN/A#define CATCH_CONFIG_RUNNER 78856SN/A#include <catch.hpp> 88856SN/A 98856SN/Anamespace py = pybind11; 108856SN/A 118856SN/Aint main(int argc, const char *argv[]) { 128856SN/A py::scoped_interpreter guard{}; 138856SN/A auto result = Catch::Session().run(argc, argv); 142914SN/A 152914SN/A return result < 0xff ? result : 0xff; 162914SN/A} 172914SN/A