Changeset 3faeba in git
- Timestamp:
- Feb 19, 1998, 4:10:07 PM (26 years ago)
- Branches:
- (u'spielwiese', '2fa36c576e6a4ddbb1093b43c7f8e9835e17e52a')
- Children:
- b257014f6f377126c7f9a83d3507e0359642b730
- Parents:
- 4f75c36732ca1d4ce09ccab17196480bd0e5bcc0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/ftest/ftest_util.m4
r4f75c3 r3faeba 1 dnl $Id: ftest_util.m4,v 1.1 4 1997-12-17 12:16:11schmidt Exp $1 dnl $Id: ftest_util.m4,v 1.15 1998-02-19 15:10:07 schmidt Exp $ 2 2 dnl 3 3 dnl ftest_util.m4 - m4 macros used by the factory test environment. … … 5 5 dnl "External" macro start with prefix `ftest', "internal" macros 6 6 dnl with prefix `_'. 7 dnl 8 dnl Almost all macros insert `#line'-preprocessor directives into 9 dnl code to aid debugging. 7 10 dnl 8 11 dnl Note: Be carefull where to place the ';'! … … 58 61 define(`ftestPreprocInit', `dnl 59 62 changecom(`//')dnl 63 `#line' __line__ "__file__" 60 64 `#include <unistd.h> 61 65 … … 66 70 67 71 #include "ftest_util.h" 68 #include "ftest_io.h" 69 '')72 #include "ftest_io.h"' 73 dnl') 70 74 71 75 # … … 73 77 # 74 78 define(`ftestGlobalInit', `dnl 79 `#line' __line__ "__file__" 75 80 `TIMING_DEFINE_PRINT( ftestTimer )'') 76 81 … … 82 87 # 83 88 define(`ftestMainInit', `dnl 84 `int optind = 0; 89 `#line' __line__ "__file__" 90 `int optind = 0; 85 91 ftestStatusT check = UndefinedResult; 86 92 … … 92 98 } 93 99 94 ftestSignalCatch()'') 100 ftestSignalCatch(); 101 #line' __line__ "__file__" 102 dnl') 95 103 96 104 # … … 98 106 # 99 107 define(`ftestMainExit', `dnl 100 `return check'') 108 `#line' __line__ "__file__" 109 `return check'') 101 110 102 111 # … … 142 151 # 143 152 define(`ftestGetOpts', `dnl 144 `ftestGetOpts( argc, argv, optind )'') 153 `#line' __line__ "__file__" 154 `ftestGetOpts( argc, argv, optind )'') 145 155 146 156 # … … 150 160 # 151 161 define(`ftestGetEnv', `dnl 152 `ftestGetEnv( argc, argv, optind ); 162 `#line' __line__ "__file__" 163 `ftestGetEnv( argc, argv, optind ); 153 164 154 165 ftestPrintEnv()'') … … 176 187 ftestError( CommandlineError, 177 188 "expected '_stripTWS(`_ftestInType_$1')` at position %d in commandline\n", 178 optind ) '',189 optind );'', 179 190 ``if ( argv[ optind ] ) { 180 191 ftestArgGiven$1 = true; 181 192 $1 = ftestGet'_stripTWS(`_ftestInType_$1')`( argv[ optind++ ] ); 182 193 } else 183 $1 = '_qstripTWS(`$2')')') 194 $1 = '_qstripTWS(`$2')`;'') 195 `#line' __line__ "__file__" 196 197 dnl') 184 198 185 199 # … … 200 214 # 201 215 define(`ftestRun', `dnl 202 `// save random generator seed now since the algorithm 216 `#line' __line__ "__file__" 217 `// save random generator seed now since the algorithm 203 218 // most likely is going to change it 204 219 ftestWriteSeed(); … … 221 236 # 222 237 define(`ftestCheck', `dnl 223 `if ( ftestCheckFlag ) 238 `#line' __line__ "__file__" 239 `if ( ftestCheckFlag ) 224 240 check = '_qstripTWS(`$1')') 225 241 … … 240 256 241 257 define(`ftestOutput', `dnl 242 `ftestPrintTimer( timing_ftestTimer_time ); 258 `#line' __line__ "__file__" 259 `ftestPrintTimer( timing_ftestTimer_time ); 243 260 ftestPrintCheck( check )'_ftestOutput($@)') 244 245 #246 # ftestSetEnv() - set factory environment.247 #248 # This macro is quite spurious, but I keep it for future249 # use.250 #251 define(`ftestSetEnv', `dnl252 `ftestSetEnv();253 ftestPrintEnv()'')254 261 255 262 dnl switch on output again
Note: See TracChangeset
for help on using the changeset viewer.