/* * testcode/unitmain.c - unit test main program for unbound. * * Copyright (c) 2007, NLnet Labs. All rights reserved. * * See LICENSE for the license. * */ /** * \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. */ #include "config.h" /** * Main unit test program. Setup, teardown and report errors. * @param argc: arg count. * @param argv: array of commandline arguments. */ 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; }