• 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., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 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 enum UT_TestStatus {
00041   UT_Test_SystemError = -1,
00042   UT_Test_Fail = 0,
00043   UT_Test_Pass = 1
00044 };
00045 
00046 const char * UT_TestStatus_GetMessage(UT_TestStatus status);
00047 #endif /* UT_DEBUG */
00048 
00049 #ifdef UT_TEST
00050 void UT_Test(FILE * fp);
00051 #endif
00052 
00053 #endif /* UT_TEST_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1