00001 #include <stdlib.h>
00002 #include <stdio.h>
00003 #include <errno.h>
00004 #include <math.h>
00005 #include "gridlabd.h"
00006
00007 #include "climate.h"
00008
00009 #ifndef _NO_CPPUNIT
00010
00011 #include "./test.h"
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