/* $NetBSD: run-calendar.c,v 1.3 2020/05/25 20:47:36 christos Exp $ */ /* AUTOGENERATED FILE. DO NOT EDIT. */ //=======Test Runner Used To Run Each Test Below===== #define RUN_TEST(TestFunc, TestLineNum) \ { \ Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestLineNumber = TestLineNum; \ Unity.NumberOfTests++; \ if (TEST_PROTECT()) \ { \ setUp(); \ TestFunc(); \ } \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \ { \ tearDown(); \ } \ UnityConcludeTest(); \ } //=======Automagically Detected Files To Include===== #include "unity.h" #include #include #include "config.h" #include "ntp_stdlib.h" #include "ntp_calendar.h" #include "ntp_calgps.h" #include "ntp_unixtime.h" #include "ntp_fp.h" #include //=======External Functions This Runner Calls===== extern void setUp(void); extern void tearDown(void); extern void test_Constants(void); extern void test_DaySplitMerge(void); extern void test_WeekSplitMerge(void); extern void test_SplitYearDays1(void); extern void test_SplitYearDays2(void); extern void test_SplitEraDays(void); extern void test_SplitEraWeeks(void); extern void test_RataDie1(void); extern void test_LeapYears1(void); extern void test_LeapYears2(void); extern void test_LeapYears3(void); extern void test_RoundTripDate(void); extern void test_RoundTripYearStart(void); extern void test_RoundTripMonthStart(void); extern void test_RoundTripWeekStart(void); extern void test_RoundTripDayStart(void); extern void test_IsoCalYearsToWeeks(void); extern void test_IsoCalWeeksToYearStart(void); extern void test_IsoCalWeeksToYearEnd(void); extern void test_DaySecToDate(void); extern void test_GpsRollOver(void); extern void test_GpsRemapFunny(void); extern void test_GpsNtpFixpoints(void); extern void test_NtpToNtp(void); extern void test_NtpToTime(void); extern void test_CalUMod7(void); extern void test_CalIMod7(void); extern void test_RellezCentury1_1(void); extern void test_RellezCentury3_1(void); extern void test_RellezYearZero(void); extern void test_RellezEra(void); extern void test_zellerDirect(void); extern void test_ZellerDirectBad(void); extern void test_zellerModInv(void); //=======Suite Setup===== static void suite_setup(void) { extern int change_iobufs(int); extern int change_logfile(const char*, int); change_iobufs(1); change_logfile("stderr", 0); } //=======Test Reset Option===== void resetTest(void); void resetTest(void) { tearDown(); setUp(); } char const *progname; //=======MAIN===== int main(int argc, char *argv[]) { progname = argv[0]; suite_setup(); UnityBegin("calendar.c"); RUN_TEST(test_Constants, 28); RUN_TEST(test_DaySplitMerge, 29); RUN_TEST(test_WeekSplitMerge, 30); RUN_TEST(test_SplitYearDays1, 31); RUN_TEST(test_SplitYearDays2, 32); RUN_TEST(test_SplitEraDays, 33); RUN_TEST(test_SplitEraWeeks, 34); RUN_TEST(test_RataDie1, 35); RUN_TEST(test_LeapYears1, 36); RUN_TEST(test_LeapYears2, 37); RUN_TEST(test_LeapYears3, 38); RUN_TEST(test_RoundTripDate, 39); RUN_TEST(test_RoundTripYearStart, 40); RUN_TEST(test_RoundTripMonthStart, 41); RUN_TEST(test_RoundTripWeekStart, 42); RUN_TEST(test_RoundTripDayStart, 43); RUN_TEST(test_IsoCalYearsToWeeks, 44); RUN_TEST(test_IsoCalWeeksToYearStart, 45); RUN_TEST(test_IsoCalWeeksToYearEnd, 46); RUN_TEST(test_DaySecToDate, 47); RUN_TEST(test_GpsRollOver, 48); RUN_TEST(test_GpsRemapFunny, 49); RUN_TEST(test_GpsNtpFixpoints, 51); RUN_TEST(test_NtpToNtp, 52); RUN_TEST(test_NtpToTime, 53); RUN_TEST(test_CalUMod7, 55); RUN_TEST(test_CalIMod7, 56); RUN_TEST(test_RellezCentury1_1, 57); RUN_TEST(test_RellezCentury3_1, 58); RUN_TEST(test_RellezYearZero, 59); RUN_TEST(test_RellezEra, 1059); RUN_TEST(test_zellerDirect, 1144); RUN_TEST(test_ZellerDirectBad, 1192); RUN_TEST(test_zellerModInv, 1207); return (UnityEnd()); }