2007-01-03 05:42:32 -05:00
|
|
|
/*
|
|
|
|
|
* testcode/unitmain.c - unit test main program for unbound.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) 2007, NLnet Labs. All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* See LICENSE for the license.
|
|
|
|
|
*
|
|
|
|
|
*/
|
2007-01-03 09:55:21 -05:00
|
|
|
/**
|
|
|
|
|
* \file
|
|
|
|
|
* Unit test main program. Calls all the other unit tests.
|
|
|
|
|
* Exits with code 1 on a failure. 0 if all unit tests are successfull.
|
|
|
|
|
*/
|
2007-01-03 05:42:32 -05:00
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
2007-01-03 09:55:21 -05:00
|
|
|
/**
|
|
|
|
|
* Main unit test program. Setup, teardown and report errors.
|
|
|
|
|
* @param argc: arg count.
|
|
|
|
|
* @param argv: array of commandline arguments.
|
|
|
|
|
*/
|
2007-01-03 05:42:32 -05:00
|
|
|
int main(int argc, char* argv[])
|
|
|
|
|
{
|
|
|
|
|
if(argc != 1) {
|
|
|
|
|
printf("usage: %s\n", argv[0]);
|
|
|
|
|
printf("\tperforms unit tests.\n");
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
printf("Start of %s unit test.\n", PACKAGE_STRING);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|