1 /* AUTOGENERATED FILE. DO NOT EDIT. */ 2 3 //=======Test Runner Used To Run Each Test Below===== 4 #define RUN_TEST(TestFunc, TestLineNum) \ 5 { \ 6 Unity.CurrentTestName = #TestFunc; \ 7 Unity.CurrentTestLineNumber = TestLineNum; \ 8 Unity.NumberOfTests++; \ 9 if (TEST_PROTECT()) \ 10 { \ 11 setUp(); \ 12 TestFunc(); \ 13 } \ 14 if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 15 { \ 16 tearDown(); \ 17 } \ 18 UnityConcludeTest(); \ 19 } 20 21 //=======Automagically Detected Files To Include===== 22 #include "unity.h" 23 #include <setjmp.h> 24 #include <stdio.h> 25 #include "config.h" 26 #include "ntp.h" 27 #include "ntp_stdlib.h" 28 #include <fcntl.h> 29 #include <sys/types.h> 30 #include <sys/stat.h> 31 #include <unistd.h> 32 33 //=======External Functions This Runner Calls===== 34 extern void setUp(void); 35 extern void tearDown(void); 36 extern void test_Digest_AES128CMAC(void); 37 extern void test_Digest_MD4(void); 38 extern void test_Digest_MD5(void); 39 extern void test_Digest_MDC2(void); 40 extern void test_Digest_RIPEMD160(void); 41 extern void test_Digest_SHA1(void); 42 extern void test_Digest_SHAKE128(void); 43 extern void test_Digest_DSA(void); 44 extern void test_Digest_DSA_SHA(void); 45 extern void test_Digest_SHA(void); 46 47 48 //=======Suite Setup===== 49 static void suite_setup(void) 50 { 51 extern int change_iobufs(int); 52 extern int change_logfile(const char*, int); 53 change_iobufs(1); 54 change_logfile("stderr", 0); 55 } 56 57 //=======Test Reset Option===== 58 void resetTest(void); 59 void resetTest(void) 60 { 61 tearDown(); 62 setUp(); 63 } 64 65 char const *progname; 66 67 68 //=======MAIN===== 69 int main(int argc, char *argv[]) 70 { 71 progname = argv[0]; 72 suite_setup(); 73 UnityBegin("digests.c"); 74 RUN_TEST(test_Digest_AES128CMAC, 131); 75 RUN_TEST(test_Digest_MD4, 168); 76 RUN_TEST(test_Digest_MD5, 205); 77 RUN_TEST(test_Digest_MDC2, 238); 78 RUN_TEST(test_Digest_RIPEMD160, 275); 79 RUN_TEST(test_Digest_SHA1, 314); 80 RUN_TEST(test_Digest_SHAKE128, 353); 81 RUN_TEST(test_Digest_DSA, 390); 82 RUN_TEST(test_Digest_DSA_SHA, 429); 83 RUN_TEST(test_Digest_SHA, 468); 84 85 return (UnityEnd()); 86 } 87