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