1284990Scy/* AUTOGENERATED FILE. DO NOT EDIT. */ 2284990Scy 3284990Scy//=======Test Runner Used To Run Each Test Below===== 4284990Scy#define RUN_TEST(TestFunc, TestLineNum) \ 5284990Scy{ \ 6284990Scy Unity.CurrentTestName = #TestFunc; \ 7284990Scy Unity.CurrentTestLineNumber = TestLineNum; \ 8284990Scy Unity.NumberOfTests++; \ 9284990Scy if (TEST_PROTECT()) \ 10284990Scy { \ 11284990Scy setUp(); \ 12284990Scy TestFunc(); \ 13284990Scy } \ 14284990Scy if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 15284990Scy { \ 16284990Scy tearDown(); \ 17284990Scy } \ 18284990Scy UnityConcludeTest(); \ 19284990Scy} 20284990Scy 21284990Scy//=======Automagically Detected Files To Include===== 22284990Scy#include "unity.h" 23284990Scy#include <setjmp.h> 24284990Scy#include <stdio.h> 25289764Sglebius#include "config.h" 26289764Sglebius#include "fileHandlingTest.h" 27289764Sglebius#include "ntp_stdlib.h" 28289764Sglebius#include "ntp_types.h" 29289764Sglebius#include "crypto.h" 30284990Scy 31284990Scy//=======External Functions This Runner Calls===== 32284990Scyextern void setUp(void); 33284990Scyextern void tearDown(void); 34289764Sglebiusextern void test_ReadEmptyKeyFile(void); 35289764Sglebiusextern void test_ReadASCIIKeys(void); 36289764Sglebiusextern void test_ReadHexKeys(void); 37289764Sglebiusextern void test_ReadKeyFileWithComments(void); 38289764Sglebiusextern void test_ReadKeyFileWithInvalidHex(void); 39284990Scy 40284990Scy 41330106Sdelphij//=======Suite Setup===== 42330106Sdelphijstatic void suite_setup(void) 43330106Sdelphij{ 44358659Scyextern int change_iobufs(int); 45330106Sdelphijextern int change_logfile(const char*, int); 46358659Scychange_iobufs(1); 47330106Sdelphijchange_logfile("stderr", 0); 48330106Sdelphij} 49330106Sdelphij 50284990Scy//=======Test Reset Option===== 51289764Sglebiusvoid resetTest(void); 52289764Sglebiusvoid resetTest(void) 53284990Scy{ 54284990Scy tearDown(); 55284990Scy setUp(); 56284990Scy} 57284990Scy 58289764Sglebiuschar const *progname; 59284990Scy 60284990Scy 61284990Scy//=======MAIN===== 62284990Scyint main(int argc, char *argv[]) 63284990Scy{ 64284990Scy progname = argv[0]; 65330106Sdelphij suite_setup(); 66284990Scy UnityBegin("keyFile.c"); 67289764Sglebius RUN_TEST(test_ReadEmptyKeyFile, 12); 68289764Sglebius RUN_TEST(test_ReadASCIIKeys, 13); 69289764Sglebius RUN_TEST(test_ReadHexKeys, 14); 70289764Sglebius RUN_TEST(test_ReadKeyFileWithComments, 15); 71289764Sglebius RUN_TEST(test_ReadKeyFileWithInvalidHex, 16); 72284990Scy 73284990Scy return (UnityEnd()); 74284990Scy} 75