|
Revision 3376, 0.8 KB
(checked in by JimLi, 6 months ago)
|
|
Add file helper functions for testing. This should replace ugly
system() call to improve the portability of the testsuite.
Also deal with the situation which the name of GNU diff is gdiff
in Solaris
osync_bool osync_testing_file_copy(const char *source, const char *dest)
osync_bool osync_testing_diff(const char *file1, const char *file2)
|
| Line | |
|---|
| 1 | #ifndef _CONFIG_H_OPENSYNC |
|---|
| 2 | #define _CONFIG_H_OPENSYNC |
|---|
| 3 | |
|---|
| 4 | #define OPENSYNC_PLUGINDIR "${OPENSYNC_PLUGINDIR}" |
|---|
| 5 | #define OPENSYNC_FORMATSDIR "${OPENSYNC_FORMATSDIR}" |
|---|
| 6 | |
|---|
| 7 | #define OPENSYNC_CONFIGDIR "${OPENSYNC_CONFIGDIR}" |
|---|
| 8 | |
|---|
| 9 | #define OPENSYNC_SCHEMASDIR "${OPENSYNC_SCHEMASDIR}" |
|---|
| 10 | #define OPENSYNC_DESCRIPTIONSDIR "${OPENSYNC_DESCRIPTIONSDIR}" |
|---|
| 11 | #define OPENSYNC_CAPABILITIESDIR "${OPENSYNC_CAPABILITIESDIR}" |
|---|
| 12 | #define OPENSYNC_UPDATESDIR "${OPENSYNC_UPDATESDIR}" |
|---|
| 13 | |
|---|
| 14 | #define OPENSYNC_VERSION "${OPENSYNC_VERSION}" |
|---|
| 15 | |
|---|
| 16 | #define OPENSYNC_PLUGINVERSION ${OPENSYNC_PLUGINVERSION} |
|---|
| 17 | |
|---|
| 18 | #cmakedefine OPENSYNC_DEBUG_MODULES |
|---|
| 19 | #cmakedefine OPENSYNC_TRACE |
|---|
| 20 | |
|---|
| 21 | #cmakedefine HAVE_FLOCK |
|---|
| 22 | #cmakedefine HAVE_SOLARIS |
|---|
| 23 | |
|---|
| 24 | #define OPENSYNC_TESTDATA "${CMAKE_CURRENT_SOURCE_DIR}/tests/data" |
|---|
| 25 | #cmakedefine OPENSYNC_UNITTESTS |
|---|
| 26 | |
|---|
| 27 | #endif /* _CONFIG_H_OPENSYNC */ |
|---|