1 /* $NetBSD: run-utilities.c,v 1.3 2020/05/25 20:47:35 christos Exp $ */ 2 3 /* AUTOGENERATED FILE. DO NOT EDIT. */ 4 5 //=======Test Runner Used To Run Each Test Below===== 6 #define RUN_TEST(TestFunc, TestLineNum) \ 7 { \ 8 Unity.CurrentTestName = #TestFunc; \ 9 Unity.CurrentTestLineNumber = TestLineNum; \ 10 Unity.NumberOfTests++; \ 11 if (TEST_PROTECT()) \ 12 { \ 13 setUp(); \ 14 TestFunc(); \ 15 } \ 16 if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 17 { \ 18 tearDown(); \ 19 } \ 20 UnityConcludeTest(); \ 21 } 22 23 //=======Automagically Detected Files To Include===== 24 #include "unity.h" 25 #include <setjmp.h> 26 #include <stdio.h> 27 #include "config.h" 28 #include "sntptest.h" 29 #include "fileHandlingTest.h" 30 #include "main.h" 31 #include "utilities.h" 32 #include <math.h> 33 34 //=======External Functions This Runner Calls===== 35 extern void setUp(void); 36 extern void tearDown(void); 37 extern void test_IPv4Address(void); 38 extern void test_IPv6Address(void); 39 extern void test_SetLiVnMode1(void); 40 extern void test_SetLiVnMode2(void); 41 extern void test_PktOutput(void); 42 extern void test_LfpOutputBinaryFormat(void); 43 extern void test_LfpOutputDecimalFormat(void); 44 45 46 //=======Suite Setup===== 47 static void suite_setup(void) 48 { 49 extern int change_iobufs(int); 50 extern int change_logfile(const char*, int); 51 change_iobufs(1); 52 change_logfile("stderr", 0); 53 } 54 55 //=======Test Reset Option===== 56 void resetTest(void); 57 void resetTest(void) 58 { 59 tearDown(); 60 setUp(); 61 } 62 63 char const *progname; 64 65 66 //=======MAIN===== 67 int main(int argc, char *argv[]) 68 { 69 progname = argv[0]; 70 suite_setup(); 71 UnityBegin("utilities.c"); 72 RUN_TEST(test_IPv4Address, 16); 73 RUN_TEST(test_IPv6Address, 17); 74 RUN_TEST(test_SetLiVnMode1, 18); 75 RUN_TEST(test_SetLiVnMode2, 19); 76 RUN_TEST(test_PktOutput, 20); 77 RUN_TEST(test_LfpOutputBinaryFormat, 21); 78 RUN_TEST(test_LfpOutputDecimalFormat, 22); 79 80 return (UnityEnd()); 81 } 82