/ unit_tests / interp / tests_main.cc
tests_main.cc
 1  #define CATCH_CONFIG_RUNNER
 2  #include "catch.hpp"
 3  
 4  #include <python_plugin.hh>
 5  #include <rs274ngc_interp.hh>
 6  #include <stdio.h>
 7  #include <saicanon.hh>
 8  
 9  int _task = 1; // Dummy this out, not used in unit test
10  InterpBase *pinterp;
11  
12  // KLUDGE fix missing symbol the ugly way
13  struct _inittab builtin_modules[] = {
14      { nullptr, nullptr }
15  };
16  
17  int main (int argc, char * argv[]) {
18      // KLUDGE just to satisfy saicanon dependencies, not used in tests
19      _outfile = fopen("test_interp_canon.log", "w");
20      PythonPlugin::instantiate(builtin_modules);
21      return Catch::Session().run( argc, argv );
22  }