1 /* $NetBSD: run-lfptostr.c,v 1.1.1.3 2015/10/23 17:47:45 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 "ntp_fp.h" 30 31 //=======External Functions This Runner Calls===== 32 extern void setUp(void); 33 extern void tearDown(void); 34 extern void test_PositiveInteger(void); 35 extern void test_NegativeInteger(void); 36 extern void test_PositiveIntegerWithFraction(void); 37 extern void test_NegativeIntegerWithFraction(void); 38 extern void test_RoundingDownToInteger(void); 39 extern void test_RoundingMiddleToInteger(void); 40 extern void test_RoundingUpToInteger(void); 41 extern void test_SingleDecimal(void); 42 extern void test_MillisecondsRoundingUp(void); 43 extern void test_MillisecondsRoundingDown(void); 44 extern void test_UnsignedInteger(void); 45 46 47 //=======Test Reset Option===== 48 void resetTest(void); 49 void resetTest(void) 50 { 51 tearDown(); 52 setUp(); 53 } 54 55 char const *progname; 56 57 58 //=======MAIN===== 59 int main(int argc, char *argv[]) 60 { 61 progname = argv[0]; 62 UnityBegin("lfptostr.c"); 63 RUN_TEST(test_PositiveInteger, 23); 64 RUN_TEST(test_NegativeInteger, 24); 65 RUN_TEST(test_PositiveIntegerWithFraction, 25); 66 RUN_TEST(test_NegativeIntegerWithFraction, 26); 67 RUN_TEST(test_RoundingDownToInteger, 27); 68 RUN_TEST(test_RoundingMiddleToInteger, 28); 69 RUN_TEST(test_RoundingUpToInteger, 29); 70 RUN_TEST(test_SingleDecimal, 30); 71 RUN_TEST(test_MillisecondsRoundingUp, 31); 72 RUN_TEST(test_MillisecondsRoundingDown, 32); 73 RUN_TEST(test_UnsignedInteger, 33); 74 75 return (UnityEnd()); 76 } 77