net-snmp 5.7
|
00001 #ifndef NETSNMP_LIBRARY_TESTING_H 00002 #define NETSNMP_LIBRARY_TESTING_H 00003 00004 /* These are macros used for the net-snmp testing infrastructure; see 00005 the "testing" subdirectory of the source code for details. */ 00006 00007 static int __test_counter = 0; 00008 static int __did_plan = 0; 00009 00010 #define OK(isok, description) { printf("%s %d - %s\n", ((isok) ? "ok" : "not ok"), ++__test_counter, description); } 00011 00012 #define OKF(isok, description) { printf("%s %d - \n", ((isok) ? "ok" : "not ok"), ++__test_counter); printf description; printf("\n"); } 00013 00014 #define PLAN(number) { printf("1..%d\n", number); __did_plan = 1;} 00015 00016 #endif /* NETSNMP_LIBRARY_TESTING_H */