2 #include <boost/test/unit_test.hpp>
3 #include <boost/shared_ptr.hpp>
5 BOOST_AUTO_TEST_SUITE(Embedded_Suite )
7 bool is_critical( CStdErrorInfo const& ex ) {
return ex.m_lError < 0; }
9 BOOST_AUTO_TEST_CASE( Dynamic_Loading )
11 Py_SetProgramName(
"AnimatLab");
13 PyRun_SimpleString(
"import os\n"
15 "sys.path.append(\"C:/Projects/AnimatLabSDK/AnimatLabPublicSource/bin\")\n"
16 "os.chdir(\"C:/Projects/AnimatLabSDK/AnimatLabPublicSource/bin\")\n"
17 "import AnimatSimPy\n"
18 "simthread = AnimatSimPy.SimulationMgr.Instance().CreateSimulation(\"C:\\Projects\\AnimatLabSDK\\AnimatLabPublicSource\\Tutorials\\Examples\\StandAloneSimTest\\Bullet_Single_x32_Debug.asim\")\n"
19 "simthread.Simulate(2)\n");
22 int iCount = SimulationMgr::Instance().SimThreads().GetSize();
41 BOOST_AUTO_TEST_SUITE_END()