isctest.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2011, 2012  Internet Systems Consortium, Inc. ("ISC")
00003  *
00004  * Permission to use, copy, modify, and/or distribute this software for any
00005  * purpose with or without fee is hereby granted, provided that the above
00006  * copyright notice and this permission notice appear in all copies.
00007  *
00008  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00009  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00010  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00011  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00012  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00013  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00014  * PERFORMANCE OF THIS SOFTWARE.
00015  */
00016 
00017 /* $Id$ */
00018 
00019 /*! \file */
00020 
00021 #include <config.h>
00022 
00023 #include <isc/buffer.h>
00024 #include <isc/entropy.h>
00025 #include <isc/hash.h>
00026 #include <isc/log.h>
00027 #include <isc/mem.h>
00028 #include <isc/print.h>
00029 #include <isc/result.h>
00030 #include <isc/string.h>
00031 #include <isc/task.h>
00032 #include <isc/timer.h>
00033 #include <isc/util.h>
00034 
00035 #define CHECK(r) \
00036         do { \
00037                 result = (r); \
00038                 if (result != ISC_R_SUCCESS) \
00039                         goto cleanup; \
00040         } while (0)
00041 
00042 extern isc_mem_t *mctx;
00043 extern isc_entropy_t *ectx;
00044 extern isc_log_t *lctx;
00045 extern isc_taskmgr_t *taskmgr;
00046 extern isc_timermgr_t *timermgr;
00047 extern isc_socketmgr_t *socketmgr;
00048 extern int ncpus;
00049 
00050 isc_result_t
00051 isc_test_begin(FILE *logfile, isc_boolean_t start_managers);
00052 
00053 void
00054 isc_test_end(void);
00055 
00056 void
00057 isc_test_nap(isc_uint32_t usec);

Generated on Tue Apr 28 17:41:05 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha