testutils.h 992 字节
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 39

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

40 41 42 43 44 45 46 47
/*
 * Local variables:
 *  indent-tabs-mode: nil
 *  c-indent-level: 4
 *  c-basic-offset: 4
 *  tab-width: 4
 * End:
 */