Add randomized testing program
[wimlib] / include / wimlib / test_support.h
1 #ifndef _WIMLIB_TEST_SUPPORT_H
2 #define _WIMLIB_TEST_SUPPORT_H
3
4 #ifdef ENABLE_TEST_SUPPORT
5
6 #include "wimlib/types.h"
7
8 #define WIMLIB_ERR_IMAGES_ARE_DIFFERENT                 200
9
10 #define WIMLIB_ADD_FLAG_GENERATE_TEST_DATA              0x08000000
11
12 #define WIMLIB_CMP_FLAG_SHORT_NAMES_NOT_PRESERVED       0x00000001
13 #define WIMLIB_CMP_FLAG_ATTRIBUTES_NOT_PRESERVED        0x00000002
14 #define WIMLIB_CMP_FLAG_SECURITY_NOT_PRESERVED          0x00000004
15 #define WIMLIB_CMP_FLAG_ADS_NOT_PRESERVED               0x00000008
16 #define WIMLIB_CMP_FLAG_COMPRESSION_NOT_PRESERVED       0x00000010
17 #define WIMLIB_CMP_FLAG_IMAGE2_SHOULD_HAVE_SYMLINKS     0x00000020
18
19 extern int
20 wimlib_compare_images(WIMStruct *wim1, int image1,
21                       WIMStruct *wim2, int image2, int cmp_flags);
22
23 #endif /* ENABLE_TEST_SUPPORT */
24
25 #endif /* _WIMLIB_TEST_SUPPORT_H */