1 /* AbiSource Program Utilities 2 * Copyright (C) 1998 AbiSource, Inc. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 * 02110-1301 USA. 18 */ 19 20 #ifndef UT_TEST_H 21 #define UT_TEST_H 22 23 #ifdef HAVE_CONFIG_H 24 #include "config.h" 25 #endif 26 27 // UT_TEST_H governs multiple inclusion of this header file 28 // 29 // UT_TEST is a compile option to select testing of src/util code 30 // PT_TEST is a compile option to select testing of src/ptbl code 31 // FMT_TEST is a compile option to select testing of src/fmt code 32 // 33 // UT_DEBUG is a compile option to select debugging, we piggy back 34 // inclusion of core test routines on this. (we could 35 // also just do a (defined(UT_TEST) || ...) 36 37 #include <stdio.h> 38 39 #ifdef DEBUG 40 typedef enum { UT_Test_SystemError=-1, 41 UT_Test_Fail=0, 42 UT_Test_Pass=1 43 } UT_TestStatus; 44 45 const char * UT_TestStatus_GetMessage(UT_TestStatus status); 46 #endif /* UT_DEBUG */ 47 48 #ifdef UT_TEST 49 void UT_Test(FILE * fp); 50 #endif 51 52 #endif /* UT_TEST_H */ 53