00001
00026 #include <stdlib.h>
00027 #include <stdio.h>
00028 #include <errno.h>
00029 #include <math.h>
00030 #include "gridlabd.h"
00031
00032 #ifndef _NO_CPPUNIT
00033
00034
00035 #include "./test.h"
00036
00037
00048 EXPORT int module_test(TEST_CALLBACKS *callbacks,int argc, char* argv[]){
00049
00050
00051
00052 local_callbacks = callbacks;
00053 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
00054
00055
00056 CppUnit::TextUi::TestRunner runner;
00057 runner.addTest( suite );
00058
00059
00060 runner.setOutputter( new CppUnit::TextOutputter( &runner.result(),std::cerr ) );
00061
00062 bool wasSucessful = runner.run();
00063 if(wasSucessful == false)
00064 return 0;
00065 return 1;
00066 }
00067 #endif