diff options
author | Cy Schubert <cy@FreeBSD.org> | 2015-07-05 15:42:16 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2015-07-05 15:42:16 +0000 |
commit | 276da39af92f48350aa01091a2b8b3e735217eea (patch) | |
tree | fb96356e3ef85aaa8d1f5939a9decd315a7ca596 /contrib/ntp/tests/libntp/run-netof.c | |
parent | 31c98473c1337a238b00342edd7ef85dfb378e24 (diff) | |
parent | 873997f35a991eee09ed91148a0cf332360380da (diff) |
Notes
Diffstat (limited to 'contrib/ntp/tests/libntp/run-netof.c')
-rw-r--r-- | contrib/ntp/tests/libntp/run-netof.c | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/contrib/ntp/tests/libntp/run-netof.c b/contrib/ntp/tests/libntp/run-netof.c new file mode 100644 index 0000000000000..401192d26d674 --- /dev/null +++ b/contrib/ntp/tests/libntp/run-netof.c @@ -0,0 +1,58 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ + +//=======Test Runner Used To Run Each Test Below===== +#define RUN_TEST(TestFunc, TestLineNum) \ +{ \ + Unity.CurrentTestName = #TestFunc; \ + Unity.CurrentTestLineNumber = TestLineNum; \ + Unity.NumberOfTests++; \ + if (TEST_PROTECT()) \ + { \ + setUp(); \ + TestFunc(); \ + } \ + if (TEST_PROTECT() && !TEST_IS_IGNORED) \ + { \ + tearDown(); \ + } \ + UnityConcludeTest(); \ +} + +//=======Automagically Detected Files To Include===== +#include "unity.h" +#include <setjmp.h> +#include <stdio.h> + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +void resetTest(void); +extern void test_ClassBAddress(void); +extern void test_ClassCAddress(void); +extern void test_ClassAAddress(void); +extern void test_IPv6Address(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "netof.c"; + UnityBegin("netof.c"); + RUN_TEST(test_ClassBAddress, 10); + RUN_TEST(test_ClassCAddress, 20); + RUN_TEST(test_ClassAAddress, 30); + RUN_TEST(test_IPv6Address, 43); + + return (UnityEnd()); +} |