1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00
libvirt/tests/testutils.h

44 lines
1005 B
C
Raw Normal View History

2006-05-09 19:35:46 +04:00
/*
* utils.c: test utils
*
* Copyright (C) 2005 Red Hat, Inc.
*
* See COPYING.LIB for the License of this software
*
* Karel Zak <kzak@redhat.com>
*
* $Id$
*/
#ifndef __VIT_TEST_UTILS_H__
#define __VIT_TEST_UTILS_H__
#ifdef __cplusplus
extern "C" {
#endif
2007-07-19 01:08:22 +04:00
double virtTestCountAverage(double *items,
int nitems);
2006-05-09 19:35:46 +04:00
2007-07-19 01:08:22 +04:00
int virtTestRun(const char *title,
int nloops,
int (*body)(const void *data),
const void *data);
int virtTestLoadFile(const char *name,
char **buf,
int buflen);
int virtTestCaptureProgramOutput(const char *const argv[],
char **buf,
int buflen);
2006-05-09 19:35:46 +04:00
int virtTestDifference(FILE *stream,
const char *expect,
const char *actual);
2006-05-09 19:35:46 +04:00
#ifdef __cplusplus
}
#endif
#endif /* __VIT_TEST_UTILS_H__ */