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