Skip to content

Commit

Permalink
added main driver to test and debug library.
Browse files Browse the repository at this point in the history
  • Loading branch information
zcutlip committed Jan 31, 2015
1 parent 65bbb58 commit 822ab7a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions nvram_faker_main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* test driver to debug nvram-faker code without
* having to LD_PRELOAD a lib.
*/
#include <stdio.h>
#include <stdlib.h>

#ifndef DEBUG
#define DEBUG
#endif

#ifndef NVRAM_EXE
#define NVRAM_EXE
#endif

//#ifndef INI_FILE_PATH
#define INI_FILE_PATH "./nvram.ini"
//#endif

#include "nvram-faker-internal.h"

extern void initialize_ini(void);
extern void end(void);

int main(void)
{
DEBUG_PRINTF("calling initalize_ini().\n");
initialize_ini();
DEBUG_PRINTF("calling end().\n");
end();
DEBUG_PRINTF("Done.\n");
return 0;
}

0 comments on commit 822ab7a

Please sign in to comment.