mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-12 06:04:46 -05:00
Do conditional driver config in Makefile.am, not source files
This commit is contained in:
+19
-27
@@ -13,40 +13,32 @@
|
||||
#ifndef __VIT_TEST_UTILS_H__
|
||||
#define __VIT_TEST_UTILS_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
double virtTestCountAverage(double *items,
|
||||
int nitems);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
double virtTestCountAverage(double *items,
|
||||
int nitems);
|
||||
int virtTestDifference(FILE *stream,
|
||||
const char *expect,
|
||||
const char *actual);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
int virtTestDifference(FILE *stream,
|
||||
const char *expect,
|
||||
const char *actual);
|
||||
|
||||
int virtTestMain(int argc,
|
||||
char **argv,
|
||||
int (*func)(int, char **));
|
||||
int virtTestMain(int argc,
|
||||
char **argv,
|
||||
int (*func)(int, char **));
|
||||
|
||||
#define VIRT_TEST_MAIN(func) \
|
||||
int main(int argc, char **argv) { \
|
||||
return virtTestMain(argc,argv, func); \
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* __VIT_TEST_UTILS_H__ */
|
||||
|
||||
Reference in New Issue
Block a user