xref: /netbsd-src/external/bsd/ntp/dist/tests/libntp/run-lfpfunc.c (revision fdd524d4ccd2bb0c6f67401e938dabf773eb0372)
1 /*	$NetBSD: run-lfpfunc.c,v 1.1.1.6 2016/05/01 15:57:23 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 #include <float.h>
31 #include <math.h>
32 
33 //=======External Functions This Runner Calls=====
34 extern void setUp(void);
35 extern void tearDown(void);
36 extern void test_AdditionLR(void);
37 extern void test_AdditionRL(void);
38 extern void test_SubtractionLR(void);
39 extern void test_SubtractionRL(void);
40 extern void test_Negation(void);
41 extern void test_Absolute(void);
42 extern void test_FDF_RoundTrip(void);
43 extern void test_SignedRelOps(void);
44 extern void test_UnsignedRelOps(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("lfpfunc.c");
63   RUN_TEST(test_AdditionLR, 48);
64   RUN_TEST(test_AdditionRL, 49);
65   RUN_TEST(test_SubtractionLR, 50);
66   RUN_TEST(test_SubtractionRL, 51);
67   RUN_TEST(test_Negation, 52);
68   RUN_TEST(test_Absolute, 53);
69   RUN_TEST(test_FDF_RoundTrip, 54);
70   RUN_TEST(test_SignedRelOps, 55);
71   RUN_TEST(test_UnsignedRelOps, 56);
72 
73   return (UnityEnd());
74 }
75