1/* $NetBSD: run-calendar.c,v 1.3 2020/05/25 20:47:36 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_calendar.h" 30#include "ntp_calgps.h" 31#include "ntp_unixtime.h" 32#include "ntp_fp.h" 33#include <string.h> 34 35//=======External Functions This Runner Calls===== 36extern void setUp(void); 37extern void tearDown(void); 38extern void test_Constants(void); 39extern void test_DaySplitMerge(void); 40extern void test_WeekSplitMerge(void); 41extern void test_SplitYearDays1(void); 42extern void test_SplitYearDays2(void); 43extern void test_SplitEraDays(void); 44extern void test_SplitEraWeeks(void); 45extern void test_RataDie1(void); 46extern void test_LeapYears1(void); 47extern void test_LeapYears2(void); 48extern void test_LeapYears3(void); 49extern void test_RoundTripDate(void); 50extern void test_RoundTripYearStart(void); 51extern void test_RoundTripMonthStart(void); 52extern void test_RoundTripWeekStart(void); 53extern void test_RoundTripDayStart(void); 54extern void test_IsoCalYearsToWeeks(void); 55extern void test_IsoCalWeeksToYearStart(void); 56extern void test_IsoCalWeeksToYearEnd(void); 57extern void test_DaySecToDate(void); 58extern void test_GpsRollOver(void); 59extern void test_GpsRemapFunny(void); 60extern void test_GpsNtpFixpoints(void); 61extern void test_NtpToNtp(void); 62extern void test_NtpToTime(void); 63extern void test_CalUMod7(void); 64extern void test_CalIMod7(void); 65extern void test_RellezCentury1_1(void); 66extern void test_RellezCentury3_1(void); 67extern void test_RellezYearZero(void); 68extern void test_RellezEra(void); 69extern void test_zellerDirect(void); 70extern void test_ZellerDirectBad(void); 71extern void test_zellerModInv(void); 72 73 74//=======Suite Setup===== 75static void suite_setup(void) 76{ 77extern int change_iobufs(int); 78extern int change_logfile(const char*, int); 79change_iobufs(1); 80change_logfile("stderr", 0); 81} 82 83//=======Test Reset Option===== 84void resetTest(void); 85void resetTest(void) 86{ 87 tearDown(); 88 setUp(); 89} 90 91char const *progname; 92 93 94//=======MAIN===== 95int main(int argc, char *argv[]) 96{ 97 progname = argv[0]; 98 suite_setup(); 99 UnityBegin("calendar.c"); 100 RUN_TEST(test_Constants, 28); 101 RUN_TEST(test_DaySplitMerge, 29); 102 RUN_TEST(test_WeekSplitMerge, 30); 103 RUN_TEST(test_SplitYearDays1, 31); 104 RUN_TEST(test_SplitYearDays2, 32); 105 RUN_TEST(test_SplitEraDays, 33); 106 RUN_TEST(test_SplitEraWeeks, 34); 107 RUN_TEST(test_RataDie1, 35); 108 RUN_TEST(test_LeapYears1, 36); 109 RUN_TEST(test_LeapYears2, 37); 110 RUN_TEST(test_LeapYears3, 38); 111 RUN_TEST(test_RoundTripDate, 39); 112 RUN_TEST(test_RoundTripYearStart, 40); 113 RUN_TEST(test_RoundTripMonthStart, 41); 114 RUN_TEST(test_RoundTripWeekStart, 42); 115 RUN_TEST(test_RoundTripDayStart, 43); 116 RUN_TEST(test_IsoCalYearsToWeeks, 44); 117 RUN_TEST(test_IsoCalWeeksToYearStart, 45); 118 RUN_TEST(test_IsoCalWeeksToYearEnd, 46); 119 RUN_TEST(test_DaySecToDate, 47); 120 RUN_TEST(test_GpsRollOver, 48); 121 RUN_TEST(test_GpsRemapFunny, 49); 122 RUN_TEST(test_GpsNtpFixpoints, 51); 123 RUN_TEST(test_NtpToNtp, 52); 124 RUN_TEST(test_NtpToTime, 53); 125 RUN_TEST(test_CalUMod7, 55); 126 RUN_TEST(test_CalIMod7, 56); 127 RUN_TEST(test_RellezCentury1_1, 57); 128 RUN_TEST(test_RellezCentury3_1, 58); 129 RUN_TEST(test_RellezYearZero, 59); 130 RUN_TEST(test_RellezEra, 1059); 131 RUN_TEST(test_zellerDirect, 1144); 132 RUN_TEST(test_ZellerDirectBad, 1192); 133 RUN_TEST(test_zellerModInv, 1207); 134 135 return (UnityEnd()); 136} 137