run-kodFile.c revision 330106
156160Sru/* AUTOGENERATED FILE. DO NOT EDIT. */ 2116525Sru 356160Sru//=======Test Runner Used To Run Each Test Below===== 4116525Sru#define RUN_TEST(TestFunc, TestLineNum) \ 556160Sru{ \ 656160Sru Unity.CurrentTestName = #TestFunc; \ 756160Sru Unity.CurrentTestLineNumber = TestLineNum; \ 856160Sru Unity.NumberOfTests++; \ 956160Sru if (TEST_PROTECT()) \ 1056160Sru { \ 1156160Sru setUp(); \ 1256160Sru TestFunc(); \ 1356160Sru } \ 1456160Sru if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 1556160Sru { \ 1656160Sru tearDown(); \ 1756160Sru } \ 1856160Sru UnityConcludeTest(); \ 1956160Sru} 2056160Sru 2156160Sru//=======Automagically Detected Files To Include===== 2256160Sru#include "unity.h" 2356160Sru#include <setjmp.h> 2456160Sru#include <stdio.h> 2556160Sru#include "config.h" 2656160Sru#include "ntp_types.h" 27114472Sru#include "ntp_stdlib.h" 28114472Sru#include "fileHandlingTest.h" 29116525Sru#include "kod_management.h" 30116525Sru 3156160Sru//=======External Functions This Runner Calls===== 3256160Sruextern void setUp(void); 33114472Sruextern void tearDown(void); 3456160Sruextern void test_ReadEmptyFile(void); 35116525Sruextern void test_ReadCorrectFile(void); 3656160Sruextern void test_ReadFileWithBlankLines(void); 3756160Sruextern void test_WriteEmptyFile(void); 3856160Sruextern void test_WriteFileWithSingleEntry(void); 39116525Sruextern void test_WriteFileWithMultipleEntries(void); 4093139Sru 4156160Sru 4256160Sru//=======Suite Setup===== 4356160Srustatic void suite_setup(void) 4456160Sru{ 4593139Sruextern int change_logfile(const char*, int); 4693139Sruchange_logfile("stderr", 0); 4793139Sru} 4856160Sru 4993139Sru//=======Test Reset Option===== 5056160Sruvoid resetTest(void); 5156160Sruvoid resetTest(void) 5256160Sru{ 5393139Sru tearDown(); 5493139Sru setUp(); 55116525Sru} 5656160Sru 5793139Sruchar const *progname; 5893139Sru 5993139Sru 6093139Sru//=======MAIN===== 61114472Sruint main(int argc, char *argv[]) 6293139Sru{ 63114472Sru progname = argv[0]; 64114472Sru suite_setup(); 65116525Sru UnityBegin("kodFile.c"); 66116525Sru RUN_TEST(test_ReadEmptyFile, 19); 67116525Sru RUN_TEST(test_ReadCorrectFile, 20); 68114472Sru RUN_TEST(test_ReadFileWithBlankLines, 21); 69114472Sru RUN_TEST(test_WriteEmptyFile, 22); 70116525Sru RUN_TEST(test_WriteFileWithSingleEntry, 23); 71100513Sru RUN_TEST(test_WriteFileWithMultipleEntries, 24); 72100513Sru 73100513Sru return (UnityEnd()); 74100513Sru} 75100513Sru