From: Tomasz Flendrich Date: Fri, 19 Jun 2015 06:20:32 +0000 (+0000) Subject: added autogenerated files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c49039bd5c05db2b0f94f1c91f3a404777bc128e;p=thirdparty%2Fntp.git added autogenerated files bk: 5583b4b0hgmlQM37e1PKAPoCF7yFOg --- diff --git a/tests/libntp/run-caltontp.c b/tests/libntp/run-caltontp.c new file mode 100644 index 000000000..b7b6626bf --- /dev/null +++ b/tests/libntp/run-caltontp.c @@ -0,0 +1,57 @@ +/* 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 + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_DateGivenMonthDay(void); +extern void test_DateGivenYearDay(void); +extern void test_DateLeapYear(void); +extern void test_WraparoundDateIn2036(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "caltontp.c"; + UnityBegin("caltontp.c"); + RUN_TEST(test_DateGivenMonthDay, 6); + RUN_TEST(test_DateGivenYearDay, 16); + RUN_TEST(test_DateLeapYear, 27); + RUN_TEST(test_WraparoundDateIn2036, 40); + + return (UnityEnd()); +} diff --git a/tests/libntp/run-msyslog.c b/tests/libntp/run-msyslog.c new file mode 100644 index 000000000..8ec7c24c6 --- /dev/null +++ b/tests/libntp/run-msyslog.c @@ -0,0 +1,65 @@ +/* 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 + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_msnprintf(void); +extern void test_msnprintfLiteralPercentm(void); +extern void test_msnprintfBackslashLiteralPercentm(void); +extern void test_msnprintfBackslashPercent(void); +extern void test_msnprintfHangingPercent(void); +extern void test_format_errmsgHangingPercent(void); +extern void test_msnprintfNullTarget(void); +extern void test_msnprintfTruncate(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "msyslog.c"; + UnityBegin("msyslog.c"); + RUN_TEST(test_msnprintf, 15); + RUN_TEST(test_msnprintfLiteralPercentm, 31); + RUN_TEST(test_msnprintfBackslashLiteralPercentm, 46); + RUN_TEST(test_msnprintfBackslashPercent, 60); + RUN_TEST(test_msnprintfHangingPercent, 75); + RUN_TEST(test_format_errmsgHangingPercent, 92); + RUN_TEST(test_msnprintfNullTarget, 107); + RUN_TEST(test_msnprintfTruncate, 118); + + return (UnityEnd()); +} diff --git a/tests/libntp/run-prettydate.c b/tests/libntp/run-prettydate.c new file mode 100644 index 000000000..cafdad41f --- /dev/null +++ b/tests/libntp/run-prettydate.c @@ -0,0 +1,51 @@ +/* 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 + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_ConstantDate(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "prettydate.c"; + UnityBegin("prettydate.c"); + RUN_TEST(test_ConstantDate, 9); + + return (UnityEnd()); +} diff --git a/tests/libntp/run-recvbuff.c b/tests/libntp/run-recvbuff.c new file mode 100644 index 000000000..75adc6b4c --- /dev/null +++ b/tests/libntp/run-recvbuff.c @@ -0,0 +1,55 @@ +/* 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 + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_Initialization(void); +extern void test_GetAndFree(void); +extern void test_GetAndFill(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "recvbuff.c"; + UnityBegin("recvbuff.c"); + RUN_TEST(test_Initialization, 16); + RUN_TEST(test_GetAndFree, 24); + RUN_TEST(test_GetAndFill, 35); + + return (UnityEnd()); +} diff --git a/tests/libntp/run-tstotv.c b/tests/libntp/run-tstotv.c new file mode 100644 index 000000000..34807b319 --- /dev/null +++ b/tests/libntp/run-tstotv.c @@ -0,0 +1,55 @@ +/* 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 + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +extern void test_Seconds(void); +extern void test_MicrosecondsExact(void); +extern void test_MicrosecondsRounding(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "tstotv.c"; + UnityBegin("tstotv.c"); + RUN_TEST(test_Seconds, 7); + RUN_TEST(test_MicrosecondsExact, 19); + RUN_TEST(test_MicrosecondsRounding, 33); + + return (UnityEnd()); +} diff --git a/tests/libntp/test-caltontp.c b/tests/libntp/test-caltontp.c new file mode 100644 index 000000000..e69de29bb diff --git a/tests/libntp/test-msyslog.c b/tests/libntp/test-msyslog.c new file mode 100644 index 000000000..e69de29bb diff --git a/tests/libntp/test-prettydate.c b/tests/libntp/test-prettydate.c new file mode 100644 index 000000000..e69de29bb diff --git a/tests/libntp/test-recvbuff.c b/tests/libntp/test-recvbuff.c new file mode 100644 index 000000000..e69de29bb diff --git a/tests/libntp/test-ssl_init.c b/tests/libntp/test-ssl_init.c new file mode 100644 index 000000000..e69de29bb diff --git a/tests/libntp/test-tstotv.c b/tests/libntp/test-tstotv.c new file mode 100644 index 000000000..e69de29bb diff --git a/tests/libntp/test-vi64ops.c b/tests/libntp/test-vi64ops.c new file mode 100644 index 000000000..e69de29bb