testutils.h 867 字节
Newer Older
K
Karel Zak 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/*
 * 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

20

21 22
    double virtTestCountAverage(double *items,
                                int nitems);
K
Karel Zak 已提交
23

24 25 26 27 28 29 30 31 32 33
    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);
K
Karel Zak 已提交
34 35 36 37 38

#ifdef __cplusplus
}
#endif
#endif /* __VIT_TEST_UTILS_H__ */