-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added main driver to test and debug library.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |