00001 #include <stdlib.h>
00002 #include <stdio.h>
00003 #include <errno.h>
00004 #include <math.h>
00005 #include "gridlabd.h"
00006 #include "plc.h"
00007
00008 #ifndef _NO_CPPUNIT
00009 #include "plc_test.h"
00010
00011
00012
00013
00024 EXPORT int module_test(TEST_CALLBACKS *callbacks,int argc, char* argv[]){
00025 local_callbacks = callbacks;
00026 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
00027
00028
00029 CppUnit::TextUi::TestRunner runner;
00030 runner.addTest( suite );
00031
00032
00033 runner.setOutputter( new CppUnit::TextOutputter( &runner.result(),std::cerr ) );
00034
00035 bool wasSucessful = runner.run();
00036 if(wasSucessful == false)
00037 return 0;
00038 return 1;
00039 }
00040
00041 #endif