| #ifndef NETSNMP_LIBRARY_TESTING_H |
| #define NETSNMP_LIBRARY_TESTING_H |
| |
| /* These are macros used for the net-snmp testing infrastructure; see |
| the "testing" subdirectory of the source code for details. */ |
| |
| static int __test_counter = 0; |
| static int __did_plan = 0; |
| |
| #define OK(isok, description) do { printf("%s %d - %s\n", ((isok) ? "ok" : "not ok"), ++__test_counter, description); } while (0) |
| |
| #define OKF(isok, description) do { printf("%s %d - ", ((isok) ? "ok" : "not ok"), ++__test_counter); printf description; printf("\n"); } while (0) |
| |
| #define PLAN(number) do { printf("1..%d\n", number); __did_plan = 1; } while (0) |
| |
| #endif /* NETSNMP_LIBRARY_TESTING_H */ |