00001 /* 00002 FALCON - The Falcon Programming Language. 00003 FILE: testsuite.h 00004 00005 Helper functions allowing the application to inteact with the testsuite module. 00006 ------------------------------------------------------------------- 00007 Author: Giancarlo Niccolai 00008 Begin: lun feb 13 2006 00009 00010 ------------------------------------------------------------------- 00011 (C) Copyright 2004: the FALCON developers (see list in AUTHORS file) 00012 00013 See LICENSE file for licensing details. 00014 */ 00015 00020 #ifndef flc_testsuite_H 00021 #define flc_testsuite_H 00022 00023 #include <falcon/string.h> 00024 00025 namespace Falcon { 00026 00027 namespace TestSuite { 00028 00040 bool getSuccess(); 00041 00042 void setSuccess( bool mode ); 00043 00049 const ::Falcon::String &getFailureReason(); 00050 00051 00056 void setTestName( const ::Falcon::String &name ); 00057 00060 void getTimings( ::Falcon::numeric &totTime, ::Falcon::numeric &numOps ); 00061 00064 ::Falcon::int64 getTimeFactor(); 00065 00068 void setTimeFactor( ::Falcon::int64 factor ); 00069 } 00070 } 00071 00072 #ifdef FALCON_EMBED_MODULES 00073 00085 Falcon::Module *init_testsuite_module(); 00086 #endif 00087 00088 #endif 00089 00090 /* end of testsuite.h */