#include "wimlib/paths.h"
#include "wimlib/progress.h"
#include "wimlib/scan.h"
+#include "wimlib/test_support.h"
#include "wimlib/xml_windows.h"
/* Saved specification of a "primitive" update operation that was performed. */
"/swapfile.sys\n"
"/System Volume Information\n"
"/RECYCLER\n"
+"/$RECYCLE.BIN\n"
+"/$Recycle.Bin\n"
"/Windows/CSC\n";
static const tchar *wimboot_cfgfile =
scan_tree = ntfs_3g_build_dentry_tree;
#endif
+#ifdef ENABLE_TEST_SUPPORT
+ if (add_flags & WIMLIB_ADD_FLAG_GENERATE_TEST_DATA)
+ scan_tree = generate_dentry_tree;
+#endif
+
ret = get_capture_config(config_file, &config,
add_flags, fs_source_path);
if (ret)
WIMLIB_ADD_FLAG_NO_REPLACE |
WIMLIB_ADD_FLAG_TEST_FILE_EXCLUSION |
WIMLIB_ADD_FLAG_SNAPSHOT |
+ #ifdef ENABLE_TEST_SUPPORT
+ WIMLIB_ADD_FLAG_GENERATE_TEST_DATA |
+ #endif
WIMLIB_ADD_FLAG_FILE_PATHS_UNNEEDED))
return WIMLIB_ERR_INVALID_PARAM;
#ifndef WITH_NTFS_3G
if (add_flags & WIMLIB_ADD_FLAG_NTFS) {
- ERROR("NTFS-3g capture mode is unsupported because wimlib "
+ ERROR("NTFS-3G capture mode is unsupported because wimlib "
"was compiled --without-ntfs-3g");
return WIMLIB_ERR_UNSUPPORTED;
}