1/* $NetBSD: run-decodenetnum.c,v 1.4 2022/10/09 21:41:04 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 "ntp_stdlib.h" 29#include "sockaddrtest.h" 30 31//=======External Functions This Runner Calls===== 32extern void setUp(void); 33extern void tearDown(void); 34extern void test_IPv4AddressOnly(void); 35extern void test_IPv4AddressWithPort(void); 36extern void test_IPv6AddressOnly(void); 37extern void test_IPv6AddressWithPort(void); 38extern void test_IPv6AddressWithScope(void); 39extern void test_IPv6AddressWithPortAndScope(void); 40extern void test_IllegalAddress(void); 41extern void test_IllegalCharInPort(void); 42extern void test_NameBufOverflow(void); 43 44 45//=======Suite Setup===== 46static void suite_setup(void) 47{ 48extern int change_iobufs(int); 49extern int change_logfile(const char*, int); 50change_iobufs(1); 51change_logfile("stderr", 0); 52} 53 54//=======Test Reset Option===== 55void resetTest(void); 56void resetTest(void) 57{ 58 tearDown(); 59 setUp(); 60} 61 62char const *progname; 63 64 65//=======MAIN===== 66int main(int argc, char *argv[]) 67{ 68 progname = argv[0]; 69 suite_setup(); 70 UnityBegin("decodenetnum.c"); 71 RUN_TEST(test_IPv4AddressOnly, 8); 72 RUN_TEST(test_IPv4AddressWithPort, 9); 73 RUN_TEST(test_IPv6AddressOnly, 10); 74 RUN_TEST(test_IPv6AddressWithPort, 11); 75 RUN_TEST(test_IPv6AddressWithScope, 12); 76 RUN_TEST(test_IPv6AddressWithPortAndScope, 13); 77 RUN_TEST(test_IllegalAddress, 14); 78 RUN_TEST(test_IllegalCharInPort, 15); 79 RUN_TEST(test_NameBufOverflow, 16); 80 81 return (UnityEnd()); 82} 83