• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ut_test.h

Go to the documentation of this file.
00001 /* AbiSource Program Utilities
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00017  * 02111-1307, USA.
00018  */
00019 
00020 #ifndef UT_TEST_H
00021 #define UT_TEST_H
00022 
00023 #ifdef HAVE_CONFIG_H
00024 #include "config.h"
00025 #endif
00026 
00027 // UT_TEST_H governs multiple inclusion of this header file
00028 //
00029 // UT_TEST is a compile option to select testing of src/util code
00030 // PT_TEST is a compile option to select testing of src/ptbl code
00031 // FMT_TEST is a compile option to select testing of src/fmt code
00032 //
00033 // UT_DEBUG is a compile option to select debugging, we piggy back
00034 //          inclusion of core test routines on this.  (we could
00035 //          also just do a (defined(UT_TEST) || ...)
00036 
00037 #include <stdio.h>
00038 
00039 #ifdef DEBUG
00040 typedef enum {  UT_Test_SystemError=-1,
00041                 UT_Test_Fail=0,
00042                 UT_Test_Pass=1
00043 } UT_TestStatus;
00044 
00045 const char * UT_TestStatus_GetMessage(UT_TestStatus status);
00046 #endif /* UT_DEBUG */
00047 
00048 #ifdef UT_TEST
00049 void UT_Test(FILE * fp);
00050 #endif
00051 
00052 #endif /* UT_TEST_H */

Generated on Mon May 28 2012 for AbiWord by  doxygen 1.7.1