1275970Scy/*
2275970Scy * Copyright (C) 2011, 2012  Internet Systems Consortium, Inc. ("ISC")
3275970Scy *
4275970Scy * Permission to use, copy, modify, and/or distribute this software for any
5275970Scy * purpose with or without fee is hereby granted, provided that the above
6275970Scy * copyright notice and this permission notice appear in all copies.
7275970Scy *
8275970Scy * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9275970Scy * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10275970Scy * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11275970Scy * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12275970Scy * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13275970Scy * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14275970Scy * PERFORMANCE OF THIS SOFTWARE.
15275970Scy */
16275970Scy
17275970Scy/* $Id$ */
18275970Scy
19275970Scy/*! \file */
20275970Scy
21275970Scy#include <config.h>
22275970Scy
23275970Scy#include <isc/buffer.h>
24275970Scy#include <isc/entropy.h>
25275970Scy#include <isc/hash.h>
26275970Scy#include <isc/log.h>
27275970Scy#include <isc/mem.h>
28275970Scy#include <isc/print.h>
29275970Scy#include <isc/result.h>
30275970Scy#include <isc/string.h>
31275970Scy#include <isc/task.h>
32275970Scy#include <isc/timer.h>
33275970Scy#include <isc/util.h>
34275970Scy
35275970Scy#define CHECK(r) \
36275970Scy	do { \
37275970Scy		result = (r); \
38275970Scy		if (result != ISC_R_SUCCESS) \
39275970Scy			goto cleanup; \
40275970Scy	} while (0)
41275970Scy
42275970Scyextern isc_mem_t *mctx;
43275970Scyextern isc_entropy_t *ectx;
44275970Scyextern isc_log_t *lctx;
45275970Scyextern isc_taskmgr_t *taskmgr;
46275970Scyisc_timermgr_t *timermgr;
47275970Scyisc_socketmgr_t *socketmgr;
48275970Scyextern int ncpus;
49275970Scy
50275970Scyisc_result_t
51275970Scyisc_test_begin(FILE *logfile, isc_boolean_t start_managers);
52275970Scy
53275970Scyvoid
54275970Scyisc_test_end(void);
55275970Scy
56275970Scyvoid
57275970Scyisc_test_nap(isc_uint32_t usec);
58