]> wimlib.net Git - wimlib/blob - include/wimlib/test_support.h
Improve random number generation
[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_UNIX_MODE       0x00000001
13 #define WIMLIB_CMP_FLAG_NTFS_3G_MODE    0x00000002
14 #define WIMLIB_CMP_FLAG_WINDOWS_MODE    0x00000004
15
16 extern int
17 wimlib_compare_images(WIMStruct *wim1, int image1,
18                       WIMStruct *wim2, int image2, int cmp_flags);
19
20 #endif /* ENABLE_TEST_SUPPORT */
21
22 #endif /* _WIMLIB_TEST_SUPPORT_H */