1*276da39aSCy Schubert /* AUTOGENERATED FILE. DO NOT EDIT. */ 2*276da39aSCy Schubert 3*276da39aSCy Schubert //=======Test Runner Used To Run Each Test Below===== 4*276da39aSCy Schubert #define RUN_TEST(TestFunc, TestLineNum) \ 5*276da39aSCy Schubert { \ 6*276da39aSCy Schubert Unity.CurrentTestName = #TestFunc; \ 7*276da39aSCy Schubert Unity.CurrentTestLineNumber = TestLineNum; \ 8*276da39aSCy Schubert Unity.NumberOfTests++; \ 9*276da39aSCy Schubert if (TEST_PROTECT()) \ 10*276da39aSCy Schubert { \ 11*276da39aSCy Schubert setUp(); \ 12*276da39aSCy Schubert TestFunc(); \ 13*276da39aSCy Schubert } \ 14*276da39aSCy Schubert if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 15*276da39aSCy Schubert { \ 16*276da39aSCy Schubert tearDown(); \ 17*276da39aSCy Schubert } \ 18*276da39aSCy Schubert UnityConcludeTest(); \ 19*276da39aSCy Schubert } 20*276da39aSCy Schubert 21*276da39aSCy Schubert //=======Automagically Detected Files To Include===== 22*276da39aSCy Schubert #include "unity.h" 23*276da39aSCy Schubert #include <setjmp.h> 24*276da39aSCy Schubert #include <stdio.h> 25*276da39aSCy Schubert 26*276da39aSCy Schubert //=======External Functions This Runner Calls===== 27*276da39aSCy Schubert extern void setUp(void); 28*276da39aSCy Schubert extern void tearDown(void); 29*276da39aSCy Schubert extern void test_ReadEmptyKeyFile(); 30*276da39aSCy Schubert extern void test_ReadASCIIKeys(); 31*276da39aSCy Schubert extern void test_ReadHexKeys(); 32*276da39aSCy Schubert extern void test_ReadKeyFileWithComments(); 33*276da39aSCy Schubert extern void test_ReadKeyFileWithInvalidHex(); 34*276da39aSCy Schubert 35*276da39aSCy Schubert 36*276da39aSCy Schubert //=======Test Reset Option===== 37*276da39aSCy Schubert void resetTest() 38*276da39aSCy Schubert { 39*276da39aSCy Schubert tearDown(); 40*276da39aSCy Schubert setUp(); 41*276da39aSCy Schubert } 42*276da39aSCy Schubert 43*276da39aSCy Schubert char *progname; 44*276da39aSCy Schubert 45*276da39aSCy Schubert 46*276da39aSCy Schubert //=======MAIN===== 47*276da39aSCy Schubert int main(int argc, char *argv[]) 48*276da39aSCy Schubert { 49*276da39aSCy Schubert progname = argv[0]; 50*276da39aSCy Schubert Unity.TestFile = "keyFile.c"; 51*276da39aSCy Schubert UnityBegin("keyFile.c"); 52*276da39aSCy Schubert RUN_TEST(test_ReadEmptyKeyFile, 53); 53*276da39aSCy Schubert RUN_TEST(test_ReadASCIIKeys, 61); 54*276da39aSCy Schubert RUN_TEST(test_ReadHexKeys, 79); 55*276da39aSCy Schubert RUN_TEST(test_ReadKeyFileWithComments, 105); 56*276da39aSCy Schubert RUN_TEST(test_ReadKeyFileWithInvalidHex, 124); 57*276da39aSCy Schubert 58*276da39aSCy Schubert return (UnityEnd()); 59*276da39aSCy Schubert } 60