| 1 |
#include "xdvi-config.h" |
| 2 |
|
| 3 |
#include <sys/types.h> /* ZLB: must be before sys/socket.h for IRIX 5.3 */ |
| 4 |
#include <sys/socket.h> |
| 5 |
#include <sys/file.h> /* this defines FASYNC */ |
| 6 |
#include <sys/ioctl.h> /* this defines SIOCSPGRP and FIOASYNC */ |
| 7 |
#include <sys/wait.h> /* this defines WIFEXITED and WEXITSTATUS */ |
| 8 |
|
| 9 |
#include "xdvi.h" |
| 10 |
#include "hypertex.h" |
| 11 |
#include "dvi-init.h" |
| 12 |
#include "special.h" |
| 13 |
#include "string-utils.h" |
| 14 |
|
| 15 |
#include "kpathsea/tex-file.h" |
| 16 |
|
| 17 |
#include "events.h" |
| 18 |
#include "util.h" |
| 19 |
|
| 20 |
#define ERROR(X) do { fprintf(stderr, "%s:%d: Error: ", __FILE__, __LINE__); fprintf X; } while(0) |
| 21 |
#define INFO(X) do { fprintf(stderr, "%s:%d: Info: ", __FILE__, __LINE__); fprintf X; } while(0) |
| 22 |
|
| 23 |
typedef Boolean (*testProcT)(int verbosity); |
| 24 |
|
| 25 |
extern void register_test(testProcT testproc, const char *name); |
| 26 |
|
| 27 |
/* test helpers */ |
| 28 |
extern Boolean test_str_equality(int verbosity, const char *str1, const char *str2); |
| 29 |
extern Boolean test_str_list_equality(int verbosity, char **str_list1, char **str_list2); |
| 30 |
|
| 31 |
extern void register_all_from_test_dl_list(void); |
| 32 |
extern void register_all_from_test_string_utils(void); |
| 33 |
extern void register_all_from_test_string_list(void); |
| 34 |
extern void register_all_from_test_util(void); |