2011-12-14 11:20:46 -06:00
|
|
|
/* unit.c unit tests driver */
|
|
|
|
#include <stdio.h>
|
2011-12-14 12:02:05 -06:00
|
|
|
#include "unit.h"
|
2011-12-14 11:20:46 -06:00
|
|
|
|
2012-08-02 15:41:40 -05:00
|
|
|
|
|
|
|
int myoptind = 0;
|
|
|
|
char* myoptarg = NULL;
|
|
|
|
|
|
|
|
|
2011-12-14 11:20:46 -06:00
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
printf("hello unit tests\n");
|
|
|
|
|
2011-12-14 12:02:05 -06:00
|
|
|
if (ApiTest() != 0)
|
|
|
|
printf("api test failed\n");
|
|
|
|
|
2011-12-14 12:55:19 -06:00
|
|
|
if (HashTest() != 0)
|
|
|
|
printf("hash test failed\n");
|
|
|
|
|
2011-12-14 11:20:46 -06:00
|
|
|
return 0;
|
|
|
|
}
|