diff --git a/.travis.yml b/.travis.yml index 760847978e0..9022fdec282 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,17 @@ env: - OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release" - OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON" +addons: + apt: + packages: + - cmake + - libssh2-1-dev + - openssh-client + - openssh-server + - valgrind + +sudo: false + matrix: fast_finish: true exclude: @@ -44,7 +55,7 @@ matrix: OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Debug" install: - - ./script/install-deps-${TRAVIS_OS_NAME}.sh + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./script/install-deps-${TRAVIS_OS_NAME}.sh; fi # Run the Build script and tests script: @@ -52,7 +63,6 @@ script: # Run Tests after_success: - - if [ "$TRAVIS_OS_NAME" = "linux" -a -n "$VALGRIND" ]; then sudo apt-get -qq install valgrind; fi - if [ "$TRAVIS_OS_NAME" = "linux" -a -n "$VALGRIND" ]; then valgrind --leak-check=full --show-reachable=yes --suppressions=./libgit2_clar.supp _build/libgit2_clar -ionline; fi # Only watch the development and master branches diff --git a/CHANGELOG.md b/CHANGELOG.md index a8e3e18ac07..e1406085d6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,7 +32,7 @@ v0.22 + 1 commit with unstaged changes. * On Mac OS X, we now use SecureTransport to provide the cryptographic -support for HTTPS connections insead of OpenSSL. + support for HTTPS connections insead of OpenSSL. * Checkout can now accept an index for the baseline computations via the `baseline_index` member. @@ -42,6 +42,10 @@ support for HTTPS connections insead of OpenSSL. remote functions now take these options or the callbacks instead of setting them beforehand. +* `git_submodule` instances are no longer cached or shared across + lookup. Each submodule represents the configuration at the time of + loading. + * The index now uses diffs for `add_all()` and `update_all()` which gives it a speed boost and closer semantics to git. @@ -69,6 +73,12 @@ support for HTTPS connections insead of OpenSSL. and `git_diff_buffers` now accept a new binary callback of type `git_diff_binary_cb` that includes the binary diff information. +* The race condition mitigations described in `racy-git.txt` have been + implemented. + +* If libcurl is installed, we will use it to connect to HTTP(S) + servers. + ### API additions * The `git_merge_options` gained a `file_flags` member. @@ -121,6 +131,9 @@ support for HTTPS connections insead of OpenSSL. configuration of the server, and tools can use this to show messages about failing to communicate with the server. +* A new error code `GIT_EINVALID` indicates that an argument to a + function is invalid, or an invalid operation was requested. + * `git_diff_index_to_workdir()` and `git_diff_tree_to_index()` will now produce deltas of type `GIT_DELTA_CONFLICTED` to indicate that the index side of the delta is a conflict. @@ -140,6 +153,12 @@ support for HTTPS connections insead of OpenSSL. * `git_filter_list_contains` will indicate whether a particular filter will be run in the given filter list. +* `git_commit_header_field()` has been added, which allows retrieving + the contents of an arbitrary header field. + +* `git_submodule_set_branch()` allows to set the configured branch for + a submodule. + ### API removals * `git_remote_save()` and `git_remote_clear_refspecs()` have been @@ -155,6 +174,9 @@ support for HTTPS connections insead of OpenSSL. `git_remote_set_push_refspecs()` have been removed. There is no longer a way to set the base refspecs at run-time. +* `git_submodule_save()` has been removed. The submodules are no + longer configured via the objects. + ### Breaking API changes * `git_smart_subtransport_cb` now has a `param` parameter. @@ -218,7 +240,7 @@ support for HTTPS connections insead of OpenSSL. * The remote callbacks has gained a new member `push_negotiation` which gets called before sending the update commands to the server. -* The following functions now longer act on a remote instance but +* The following functions no longer act on a remote instance but change the repository's configuration. Their signatures have changed accordingly: @@ -233,7 +255,7 @@ support for HTTPS connections insead of OpenSSL. to fetch options which determine the runtime configuration. * The `git_remote_autotag_option_t` values have been changed. It has - gained a `_FALLBACK` default value to specify no override for the + gained a `_UNSPECIFIED` default value to specify no override for the configured setting. * `git_remote_update_tips()` now takes a pointer to the callbacks as @@ -247,6 +269,17 @@ support for HTTPS connections insead of OpenSSL. the `fetch_opts` field instead of callbacks in the `remote_callbacks` field. +* The following functions no longer act on a submodule instance but + change the repository's configuration. Their signatures have changed + accordingly: + + * `git_submodule_set_url()`, `git_submodule_set_ignore()`, + `git_submodule_set_update()`, + `git_submodule_set_fetch_recurse_submodules()`. + +* `git_submodule_status()` no longer takes a submodule instance but a + repsitory, a submodule name and an ignore setting. + * The `push` function in the `git_transport` interface now takes a pointer to the remote callbacks. @@ -258,6 +291,9 @@ support for HTTPS connections insead of OpenSSL. * `GIT_EMERGECONFLICT` is now `GIT_ECONFLICT`, which more accurately describes the nature of the error. +* It is no longer allowed to call `git_buf_grow()` on buffers + borrowing the memory they point to. + v0.22 ------ diff --git a/CMakeLists.txt b/CMakeLists.txt index c3c7a154398..5c55ddd1a2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,7 @@ OPTION( USE_ICONV "Link with and use iconv library" OFF ) OPTION( USE_SSH "Link with libssh to enable SSH support" ON ) OPTION( USE_GSSAPI "Link with libgssapi for SPNEGO auth" OFF ) OPTION( VALGRIND "Configure build for valgrind" OFF ) +OPTION( CURL "User curl for HTTP if available" ON) IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") SET( USE_ICONV ON ) @@ -99,12 +100,14 @@ FUNCTION(TARGET_OS_LIBRARIES target) TARGET_LINK_LIBRARIES(${target} ws2_32) ELSEIF(CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)") TARGET_LINK_LIBRARIES(${target} socket nsl) - SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} -lsocket -lnsl" PARENT_SCOPE) + LIST(APPEND LIBGIT2_PC_LIBS "-lsocket" "-lnsl") + SET(LIBGIT2_PC_LIBS ${LIBGIT2_PC_LIBS} PARENT_SCOPE) ENDIF() CHECK_LIBRARY_EXISTS(rt clock_gettime "time.h" NEED_LIBRT) IF(NEED_LIBRT) TARGET_LINK_LIBRARIES(${target} rt) - SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} -lrt" PARENT_SCOPE) + LIST(APPEND LIBGIT2_PC_LIBS "-lrt") + SET(LIBGIT2_PC_LIBS ${LIBGIT2_PC_LIBS} PARENT_SCOPE) ENDIF() IF(THREADSAFE) @@ -150,12 +153,12 @@ INCLUDE_DIRECTORIES(src include) IF (SECURITY_FOUND) MESSAGE("-- Found Security ${SECURITY_DIRS}") - SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} -framework Security") + LIST(APPEND LIBGIT2_PC_LIBS "-framework Security") ENDIF() IF (COREFOUNDATION_FOUND) MESSAGE("-- Found CoreFoundation ${COREFOUNDATION_DIRS}") - SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} -framework CoreFoundation") + LIST(APPEND LIBGIT2_PC_LIBS "-framework CoreFoundation") ENDIF() @@ -199,15 +202,26 @@ IF (WIN32 AND WINHTTP) LINK_LIBRARIES(winhttp rpcrt4 crypt32) ELSE () + IF (CURL) + PKG_CHECK_MODULES(CURL libcurl) + ENDIF () + IF (NOT AMIGA AND USE_OPENSSL) FIND_PACKAGE(OpenSSL) ENDIF () + IF (CURL_FOUND) + ADD_DEFINITIONS(-DGIT_CURL) + INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIRS}) + LINK_LIBRARIES(${CURL_LIBRARIES}) + LIST(APPEND LIBGIT2_PC_LIBS ${CURL_LDFLAGS}) + ENDIF() + FIND_PACKAGE(HTTP_Parser) IF (HTTP_PARSER_FOUND AND HTTP_PARSER_VERSION_MAJOR EQUAL 2) INCLUDE_DIRECTORIES(${HTTP_PARSER_INCLUDE_DIRS}) LINK_LIBRARIES(${HTTP_PARSER_LIBRARIES}) - SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} -lhttp_parser") + LIST(APPEND LIBGIT2_PC_LIBS "-lhttp_parser") ELSE() MESSAGE(STATUS "http-parser was not found or is too old; using bundled 3rd-party sources.") INCLUDE_DIRECTORIES(deps/http-parser) @@ -224,7 +238,7 @@ ELSEIF (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") ELSEIF (OPENSSL_FOUND AND NOT SHA1_TYPE STREQUAL "builtin") ADD_DEFINITIONS(-DOPENSSL_SHA1) IF (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") - SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} -lssl") + LIST(APPEND LIBGIT2_PC_LIBS "-lssl") ELSE() SET(LIBGIT2_PC_REQUIRES "${LIBGIT2_PC_REQUIRES} openssl") ENDIF () @@ -249,7 +263,7 @@ IF (ZLIB_FOUND) INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIRS}) LINK_LIBRARIES(${ZLIB_LIBRARIES}) IF(APPLE OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD") - SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} -lz") + LIST(APPEND LIBGIT2_PC_LIBS "-lz") ELSE() SET(LIBGIT2_PC_REQUIRES "${LIBGIT2_PC_REQUIRES} zlib") ENDIF() @@ -268,10 +282,11 @@ IF (LIBSSH2_FOUND) ADD_DEFINITIONS(-DGIT_SSH) INCLUDE_DIRECTORIES(${LIBSSH2_INCLUDE_DIRS}) LINK_DIRECTORIES(${LIBSSH2_LIBRARY_DIRS}) - SET(LIBGIT2_PC_REQUIRES "${LIBGIT2_PC_REQUIRES} libssh2") + LIST(APPEND LIBGIT2_PC_LIBS ${LIBSSH2_LDFLAGS}) + #SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} ${LIBSSH2_LDFLAGS}") SET(SSH_LIBRARIES ${LIBSSH2_LIBRARIES}) - CHECK_LIBRARY_EXISTS(${LIBSSH2_LIBRARIES} libssh2_userauth_publickey_frommemory "" HAVE_LIBSSH2_MEMORY_CREDENTIALS) + CHECK_LIBRARY_EXISTS("${LIBSSH2_LIBRARIES}" libssh2_userauth_publickey_frommemory "" HAVE_LIBSSH2_MEMORY_CREDENTIALS) IF (HAVE_LIBSSH2_MEMORY_CREDENTIALS) ADD_DEFINITIONS(-DGIT_SSH_MEMORY_CREDENTIALS) ENDIF() @@ -294,7 +309,7 @@ ENDIF() IF (ICONV_FOUND) ADD_DEFINITIONS(-DGIT_USE_ICONV) INCLUDE_DIRECTORIES(${ICONV_INCLUDE_DIR}) - SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} ${ICONV_LIBRARIES}") + LIST(APPEND LIBGIT2_PC_LIBS ${ICONV_LIBRARIES}) ENDIF() # Platform specific compilation flags @@ -499,6 +514,7 @@ IF (SONAME) SET_TARGET_PROPERTIES(git2 PROPERTIES OUTPUT_NAME ${LIBGIT2_FILENAME}) ENDIF() ENDIF() +STRING(REPLACE ";" " " LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS}") CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/libgit2.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libgit2.pc @ONLY) IF (MSVC_IDE) diff --git a/THREADING.md b/THREADING.md index cf7ac1ff0cf..3717d6c8859 100644 --- a/THREADING.md +++ b/THREADING.md @@ -47,9 +47,14 @@ you. On Mac OS X ----------- -On OS X, the library makes use of CommonCrypto and SecureTransport for -cryptographic support. These are thread-safe and you do not need to do -anything special. +By default we use libcurl to perform the encryption. The +system-provided libcurl uses SecureTransport, so no special steps are +necessary. If you link against another libcurl (e.g. from homebrew) +refer to the general case. + +If the option to use libcurl was deactivated, the library makes use of +CommonCrypto and SecureTransport for cryptographic support. These are +thread-safe and you do not need to do anything special. Note that libssh2 may still use OpenSSL itself. In that case, the general case still affects you if you use ssh. @@ -57,12 +62,15 @@ general case still affects you if you use ssh. General Case ------------ -On the rest of the platforms, libgit2 uses OpenSSL to be able to use -HTTPS as a transport. This library is made to be thread-implementation -agnostic, and the users of the library must set which locking function -it should use. This means that libgit2 cannot know what to set as the -user of libgit2 may use OpenSSL independently and the locking settings -must survive libgit2 shutting down. +By default we use libcurl, which has its own ![recommendations for +thread safety](http://curl.haxx.se/libcurl/c/libcurl-tutorial.html#Multi-threading). + +If libcurl was not found or was disabled, libgit2 uses OpenSSL to be +able to use HTTPS as a transport. This library is made to be +thread-implementation agnostic, and the users of the library must set +which locking function it should use. This means that libgit2 cannot +know what to set as the user of libgit2 may use OpenSSL independently +and the locking settings must survive libgit2 shutting down. libgit2 does provide a last-resort convenience function `git_openssl_set_locking()` (available in `sys/openssl.h`) to use the diff --git a/examples/blame.c b/examples/blame.c index b126c0d331d..9288352e2e0 100644 --- a/examples/blame.c +++ b/examples/blame.c @@ -37,8 +37,8 @@ static void parse_opts(struct opts *o, int argc, char *argv[]); int main(int argc, char *argv[]) { - int i, line, break_on_null_hunk; - size_t rawsize; + int line, break_on_null_hunk; + size_t i, rawsize; char spec[1024] = {0}; struct opts o = {0}; const char *rawdata; diff --git a/examples/network/clone.c b/examples/network/clone.c index b2d80ed013b..caf41cca84a 100644 --- a/examples/network/clone.c +++ b/examples/network/clone.c @@ -48,6 +48,8 @@ static void print_progress(const progress_data *pd) static int sideband_progress(const char *str, int len, void *payload) { + (void)payload; // unused + printf("remote: %*s", len, str); fflush(stdout); return 0; diff --git a/examples/status.c b/examples/status.c index 62cb5b24f03..49f006dcc64 100644 --- a/examples/status.c +++ b/examples/status.c @@ -384,25 +384,19 @@ static void print_short(git_repository *repo, git_status_list *status) if (s->index_to_workdir && s->index_to_workdir->new_file.mode == GIT_FILEMODE_COMMIT) { - git_submodule *sm = NULL; unsigned int smstatus = 0; - if (!git_submodule_lookup( - &sm, repo, s->index_to_workdir->new_file.path)) { - - if (!git_submodule_status(&smstatus, sm)) { - if (smstatus & GIT_SUBMODULE_STATUS_WD_MODIFIED) - extra = " (new commits)"; - else if (smstatus & GIT_SUBMODULE_STATUS_WD_INDEX_MODIFIED) - extra = " (modified content)"; - else if (smstatus & GIT_SUBMODULE_STATUS_WD_WD_MODIFIED) - extra = " (modified content)"; - else if (smstatus & GIT_SUBMODULE_STATUS_WD_UNTRACKED) - extra = " (untracked content)"; - } + if (!git_submodule_status(&smstatus, repo, s->index_to_workdir->new_file.path, + GIT_SUBMODULE_IGNORE_UNSPECIFIED)) { + if (smstatus & GIT_SUBMODULE_STATUS_WD_MODIFIED) + extra = " (new commits)"; + else if (smstatus & GIT_SUBMODULE_STATUS_WD_INDEX_MODIFIED) + extra = " (modified content)"; + else if (smstatus & GIT_SUBMODULE_STATUS_WD_WD_MODIFIED) + extra = " (modified content)"; + else if (smstatus & GIT_SUBMODULE_STATUS_WD_UNTRACKED) + extra = " (untracked content)"; } - - git_submodule_free(sm); } /** diff --git a/include/git2/blob.h b/include/git2/blob.h index c24ff7e7f5d..4a6d8e50aaf 100644 --- a/include/git2/blob.h +++ b/include/git2/blob.h @@ -107,12 +107,10 @@ GIT_EXTERN(git_off_t) git_blob_rawsize(const git_blob *blob); * The output is written into a `git_buf` which the caller must free * when done (via `git_buf_free`). * - * If no filters need to be applied, then the `out` buffer will just be - * populated with a pointer to the raw content of the blob. In that case, - * be careful to *not* free the blob until done with the buffer. To keep - * the data detached from the blob, call `git_buf_grow` on the buffer - * with a `want_size` of 0 and the buffer will be reallocated to be - * detached from the blob. + * If no filters need to be applied, then the `out` buffer will just + * be populated with a pointer to the raw content of the blob. In + * that case, be careful to *not* free the blob until done with the + * buffer or copy it into memory you own. * * @param out The git_buf to be filled in * @param blob Pointer to the blob diff --git a/include/git2/commit.h b/include/git2/commit.h index fb53a701bbf..04711c1fa5e 100644 --- a/include/git2/commit.h +++ b/include/git2/commit.h @@ -239,6 +239,17 @@ GIT_EXTERN(int) git_commit_nth_gen_ancestor( const git_commit *commit, unsigned int n); +/** + * Get an arbitrary header field + * + * @param out the buffer to fill + * @param commit the commit to look in + * @param field the header field to return + * @return 0 on succeess, GIT_ENOTFOUND if the field does not exist, + * or an error code + */ +GIT_EXTERN(int) git_commit_header_field(git_buf *out, const git_commit *commit, const char *field); + /** * Create new commit in the repository from a list of `git_object` pointers * diff --git a/include/git2/describe.h b/include/git2/describe.h index d01a3f74c81..3044d91657f 100644 --- a/include/git2/describe.h +++ b/include/git2/describe.h @@ -94,7 +94,7 @@ typedef struct { * If the workdir is dirty and this is set, this string will * be appended to the description string. */ - char *dirty_suffix; + const char *dirty_suffix; } git_describe_format_options; #define GIT_DESCRIBE_FORMAT_OPTIONS_VERSION 1 diff --git a/include/git2/diff.h b/include/git2/diff.h index 0ecdc1bed87..b3ab5397e21 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -399,7 +399,7 @@ typedef struct { * `git_diff_options_init` programmatic initialization. */ #define GIT_DIFF_OPTIONS_INIT \ - {GIT_DIFF_OPTIONS_VERSION, 0, GIT_SUBMODULE_IGNORE_DEFAULT, {NULL,0}, NULL, NULL, 3} + {GIT_DIFF_OPTIONS_VERSION, 0, GIT_SUBMODULE_IGNORE_UNSPECIFIED, {NULL,0}, NULL, NULL, 3} /** * Initializes a `git_diff_options` with default values. Equivalent to diff --git a/include/git2/errors.h b/include/git2/errors.h index dda0f8a572a..a81aa05d9ce 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -46,6 +46,8 @@ typedef enum { GIT_EAPPLIED = -18, /**< Patch/merge has already been applied */ GIT_EPEEL = -19, /**< The requested peel operation is not possible */ GIT_EEOF = -20, /**< Unexpected EOF */ + GIT_EINVALID = -21, /**< Invalid operation or input */ + GIT_EUNCOMMITTED = -22, /**< Uncommitted changes in index prevented operation */ GIT_PASSTHROUGH = -30, /**< Internal only */ GIT_ITEROVER = -31, /**< Signals end of iteration with iterator */ diff --git a/include/git2/index.h b/include/git2/index.h index 49bbe161452..7caf3ed78ea 100644 --- a/include/git2/index.h +++ b/include/git2/index.h @@ -273,6 +273,18 @@ GIT_EXTERN(int) git_index_write(git_index *index); */ GIT_EXTERN(const char *) git_index_path(const git_index *index); +/** + * Get the checksum of the index + * + * This checksum is the SHA-1 hash over the index file (except the + * last 20 bytes which are the checksum itself). In cases where the + * index does not exist on-disk, it will be zeroed out. + * + * @param index an existing index object + * @return a pointer to the checksum of the index + */ +GIT_EXTERN(const git_oid *) git_index_checksum(git_index *index); + /** * Read a tree into the index file with stats * diff --git a/include/git2/remote.h b/include/git2/remote.h index ccd0b43f466..e47f00881ba 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -475,7 +475,7 @@ typedef enum { /** * Use the setting from the configuration */ - GIT_FETCH_PRUNE_FALLBACK, + GIT_FETCH_PRUNE_UNSPECIFIED, /** * Force pruning on */ @@ -495,7 +495,7 @@ typedef enum { /** * Use the setting from the configuration. */ - GIT_REMOTE_DOWNLOAD_TAGS_FALLBACK = 0, + GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED = 0, /** * Ask the server for tags pointing to objects we're already * downloading. @@ -541,7 +541,7 @@ typedef struct { } git_fetch_options; #define GIT_FETCH_OPTIONS_VERSION 1 -#define GIT_FETCH_OPTIONS_INIT { GIT_FETCH_OPTIONS_VERSION, GIT_REMOTE_CALLBACKS_INIT, GIT_FETCH_PRUNE_FALLBACK, 1 } +#define GIT_FETCH_OPTIONS_INIT { GIT_FETCH_OPTIONS_VERSION, GIT_REMOTE_CALLBACKS_INIT, GIT_FETCH_PRUNE_UNSPECIFIED, 1 } /** * Initializes a `git_fetch_options` with default values. Equivalent to diff --git a/include/git2/submodule.h b/include/git2/submodule.h index 48faf8a49f7..cbafccd1be8 100644 --- a/include/git2/submodule.h +++ b/include/git2/submodule.h @@ -300,20 +300,6 @@ GIT_EXTERN(int) git_submodule_add_to_index( git_submodule *submodule, int write_index); -/** - * Write submodule settings to .gitmodules file. - * - * This commits any in-memory changes to the submodule to the gitmodules - * file on disk. You may also be interested in `git_submodule_init()` which - * writes submodule info to ".git/config" (which is better for local changes - * to submodule settings) and/or `git_submodule_sync()` which writes - * settings about remotes to the actual submodule repository. - * - * @param submodule The submodule to write. - * @return 0 on success, <0 on failure. - */ -GIT_EXTERN(int) git_submodule_save(git_submodule *submodule); - /** * Get the containing repository for a submodule. * @@ -373,36 +359,31 @@ GIT_EXTERN(int) git_submodule_resolve_url(git_buf *out, git_repository *repo, co GIT_EXTERN(const char *) git_submodule_branch(git_submodule *submodule); /** - * Set the branch for the submodule. + * Set the branch for the submodule in the configuration * - * This sets the branch in memory for the submodule. This will be used for - * any following submodule actions while this submodule data is in memory. - * - * After calling this, you may wish to call `git_submodule_save()` to write - * the changes back to the ".gitmodules" file and `git_submodule_sync()` to + * After calling this, you may wish to call `git_submodule_sync()` to * write the changes to the checked out submodule repository. * - * @param submodule Pointer to the submodule object + * @param repo the repository to affect + * @param name the name of the submodule to configure * @param branch Branch that should be used for the submodule * @return 0 on success, <0 on failure */ -GIT_EXTERN(int) git_submodule_set_branch(git_submodule *submodule, const char *branch); +GIT_EXTERN(int) git_submodule_set_branch(git_repository *repo, const char *name, const char *branch); /** - * Set the URL for the submodule. + * Set the URL for the submodule in the configuration * - * This sets the URL in memory for the submodule. This will be used for - * any following submodule actions while this submodule data is in memory. * - * After calling this, you may wish to call `git_submodule_save()` to write - * the changes back to the ".gitmodules" file and `git_submodule_sync()` to + * After calling this, you may wish to call `git_submodule_sync()` to * write the changes to the checked out submodule repository. * - * @param submodule Pointer to the submodule object + * @param repo the repository to affect + * @param name the name of the submodule to configure * @param url URL that should be used for the submodule * @return 0 on success, <0 on failure */ -GIT_EXTERN(int) git_submodule_set_url(git_submodule *submodule, const char *url); +GIT_EXTERN(int) git_submodule_set_url(git_repository *repo, const char *name, const char *url); /** * Get the OID for the submodule in the index. @@ -452,9 +433,6 @@ GIT_EXTERN(const git_oid *) git_submodule_wd_id(git_submodule *submodule); * The working directory will be consider clean so long as there is a * checked out version present. * - * plus the special **GIT_SUBMODULE_IGNORE_RESET** which can be used with - * `git_submodule_set_ignore()` to revert to the on-disk setting. - * * @param submodule The submodule to check * @return The current git_submodule_ignore_t valyue what will be used for * this submodule. @@ -463,32 +441,25 @@ GIT_EXTERN(git_submodule_ignore_t) git_submodule_ignore( git_submodule *submodule); /** - * Set the ignore rule for the submodule. - * - * This sets the in-memory ignore rule for the submodule which will - * control the behavior of `git_submodule_status()`. + * Set the ignore rule for the submodule in the configuration * - * To make changes persistent, call `git_submodule_save()` to write the - * value to disk (in the ".gitmodules" and ".git/config" files). + * This does not affect any currently-loaded instances. * - * Call with `GIT_SUBMODULE_IGNORE_RESET` or call `git_submodule_reload()` - * to revert the in-memory rule to the value that is on disk. - * - * @param submodule The submodule to update + * @param repo the repository to affect + * @param name the name of the submdule * @param ignore The new value for the ignore rule - * @return old value for ignore + * @return 0 or an error code */ -GIT_EXTERN(git_submodule_ignore_t) git_submodule_set_ignore( - git_submodule *submodule, +GIT_EXTERN(int) git_submodule_set_ignore( + git_repository *repo, + const char *name, git_submodule_ignore_t ignore); /** * Get the update rule that will be used for the submodule. * * This value controls the behavior of the `git submodule update` command. - * There are four useful values documented with `git_submodule_update_t` - * plus the `GIT_SUBMODULE_UPDATE_RESET` which can be used to revert to - * the on-disk setting. + * There are four useful values documented with `git_submodule_update_t`. * * @param submodule The submodule to check * @return The current git_submodule_update_t value that will be used @@ -498,23 +469,18 @@ GIT_EXTERN(git_submodule_update_t) git_submodule_update_strategy( git_submodule *submodule); /** - * Set the update rule for the submodule. - * - * The initial value comes from the ".git/config" setting of - * `submodule.$name.update` for this submodule (which is initialized from - * the ".gitmodules" file). Using this function sets the update rule in - * memory for the submodule. Call `git_submodule_save()` to write out the - * new update rule. + * Set the update rule for the submodule in the configuration * - * Calling this again with GIT_SUBMODULE_UPDATE_RESET or calling - * `git_submodule_reload()` will revert the rule to the on disk value. + * This setting won't affect any existing instances. * - * @param submodule The submodule to update + * @param repo the repository to affect + * @param name the name of the submodule to configure * @param update The new value to use - * @return old value for update + * @return 0 or an error code */ -GIT_EXTERN(git_submodule_update_t) git_submodule_set_update( - git_submodule *submodule, +GIT_EXTERN(int) git_submodule_set_update( + git_repository *repo, + const char *name, git_submodule_update_t update); /** @@ -532,18 +498,18 @@ GIT_EXTERN(git_submodule_recurse_t) git_submodule_fetch_recurse_submodules( git_submodule *submodule); /** - * Set the fetchRecurseSubmodules rule for a submodule. + * Set the fetchRecurseSubmodules rule for a submodule in the configuration * - * This sets the submodule..fetchRecurseSubmodules value for - * the submodule. You should call `git_submodule_save()` if you want - * to persist the new value. + * This setting won't affect any existing instances. * - * @param submodule The submodule to modify + * @param repo the repository to affect + * @param name the submodule to configure * @param fetch_recurse_submodules Boolean value * @return old value for fetchRecurseSubmodules */ -GIT_EXTERN(git_submodule_recurse_t) git_submodule_set_fetch_recurse_submodules( - git_submodule *submodule, +GIT_EXTERN(int) git_submodule_set_fetch_recurse_submodules( + git_repository *repo, + const char *name, git_submodule_recurse_t fetch_recurse_submodules); /** @@ -634,16 +600,19 @@ GIT_EXTERN(int) git_submodule_reload_all(git_repository *repo, int force); * This looks at a submodule and tries to determine the status. It * will return a combination of the `GIT_SUBMODULE_STATUS` values above. * How deeply it examines the working directory to do this will depend - * on the `git_submodule_ignore_t` value for the submodule - which can be - * set either temporarily or permanently with `git_submodule_set_ignore()`. + * on the `git_submodule_ignore_t` value for the submodule. * * @param status Combination of `GIT_SUBMODULE_STATUS` flags - * @param submodule Submodule for which to get status + * @param repo the repository in which to look + * @param name name of the submodule + * @param ignore the ignore rules to follow * @return 0 on success, <0 on error */ GIT_EXTERN(int) git_submodule_status( unsigned int *status, - git_submodule *submodule); + git_repository *repo, + const char *name, + git_submodule_ignore_t ignore); /** * Get the locations of submodule information. diff --git a/include/git2/sys/stream.h b/include/git2/sys/stream.h index c22179fab7c..55a714bbb18 100644 --- a/include/git2/sys/stream.h +++ b/include/git2/sys/stream.h @@ -29,8 +29,10 @@ typedef struct git_stream { int version; int encrypted; + int proxy_support; int (*connect)(struct git_stream *); int (*certificate)(git_cert **, struct git_stream *); + int (*set_proxy)(struct git_stream *, const char *proxy_url); ssize_t (*read)(struct git_stream *, void *, size_t); ssize_t (*write)(struct git_stream *, const char *, size_t, int); int (*close)(struct git_stream *); diff --git a/include/git2/types.h b/include/git2/types.h index d1e7cd92c67..6f41014b377 100644 --- a/include/git2/types.h +++ b/include/git2/types.h @@ -284,6 +284,11 @@ typedef int (*git_transport_message_cb)(const char *str, int len, void *payload) * Type of host certificate structure that is passed to the check callback */ typedef enum git_cert_t { + /** + * No information about the certificate is available. This may + * happen when using curl. + */ + GIT_CERT_NONE, /** * The `data` argument to the callback will be a pointer to * the DER-encoded data. @@ -294,6 +299,13 @@ typedef enum git_cert_t { * `git_cert_hostkey` structure. */ GIT_CERT_HOSTKEY_LIBSSH2, + /** + * The `data` argument to the callback will be a pointer to a + * `git_strarray` with `name:content` strings containing + * information about the certificate. This is used when using + * curl. + */ + GIT_CERT_STRARRAY, } git_cert_t; /** @@ -337,7 +349,6 @@ typedef struct git_submodule git_submodule; * * The values are: * - * - GIT_SUBMODULE_UPDATE_RESET: reset to the on-disk value. * - GIT_SUBMODULE_UPDATE_CHECKOUT: the default; when a submodule is * updated, checkout the new detached HEAD to the submodule directory. * - GIT_SUBMODULE_UPDATE_REBASE: update by rebasing the current checked @@ -350,8 +361,6 @@ typedef struct git_submodule git_submodule; * when we don't want any particular update rule to be specified. */ typedef enum { - GIT_SUBMODULE_UPDATE_RESET = -1, - GIT_SUBMODULE_UPDATE_CHECKOUT = 1, GIT_SUBMODULE_UPDATE_REBASE = 2, GIT_SUBMODULE_UPDATE_MERGE = 3, @@ -374,7 +383,7 @@ typedef enum { * * The values are: * - * - GIT_SUBMODULE_IGNORE_RESET: reset to the on-disk value. + * - GIT_SUBMODULE_IGNORE_UNSPECIFIED: use the submodule's configuration * - GIT_SUBMODULE_IGNORE_NONE: don't ignore any change - i.e. even an * untracked file, will mark the submodule as dirty. Ignored files are * still ignored, of course. @@ -388,14 +397,12 @@ typedef enum { * when we don't want any particular ignore rule to be specified. */ typedef enum { - GIT_SUBMODULE_IGNORE_RESET = -1, /**< reset to on-disk value */ + GIT_SUBMODULE_IGNORE_UNSPECIFIED = -1, /**< use the submodule's configuration */ GIT_SUBMODULE_IGNORE_NONE = 1, /**< any change or untracked == dirty */ GIT_SUBMODULE_IGNORE_UNTRACKED = 2, /**< dirty if tracked files change */ GIT_SUBMODULE_IGNORE_DIRTY = 3, /**< only dirty if HEAD moved */ GIT_SUBMODULE_IGNORE_ALL = 4, /**< never dirty */ - - GIT_SUBMODULE_IGNORE_DEFAULT = 0 } git_submodule_ignore_t; /** @@ -403,15 +410,12 @@ typedef enum { * * Represent the value of `submodule.$name.fetchRecurseSubmodules` * - * * GIT_SUBMODULE_RECURSE_RESET - reset to the on-disk value * * GIT_SUBMODULE_RECURSE_NO - do no recurse into submodules * * GIT_SUBMODULE_RECURSE_YES - recurse into submodules * * GIT_SUBMODULE_RECURSE_ONDEMAND - recurse into submodules only when * commit not already in local clone */ typedef enum { - GIT_SUBMODULE_RECURSE_RESET = -1, - GIT_SUBMODULE_RECURSE_NO = 0, GIT_SUBMODULE_RECURSE_YES = 1, GIT_SUBMODULE_RECURSE_ONDEMAND = 2, diff --git a/include/git2/version.h b/include/git2/version.h index 456bbe258d3..6837e90ef33 100644 --- a/include/git2/version.h +++ b/include/git2/version.h @@ -7,12 +7,12 @@ #ifndef INCLUDE_git_version_h__ #define INCLUDE_git_version_h__ -#define LIBGIT2_VERSION "0.22.0" +#define LIBGIT2_VERSION "0.23.0" #define LIBGIT2_VER_MAJOR 0 -#define LIBGIT2_VER_MINOR 22 +#define LIBGIT2_VER_MINOR 23 #define LIBGIT2_VER_REVISION 0 #define LIBGIT2_VER_PATCH 0 -#define LIBGIT2_SOVERSION 22 +#define LIBGIT2_SOVERSION 23 #endif diff --git a/libgit2.pc.in b/libgit2.pc.in index 8f5279234a1..3d825a49fea 100644 --- a/libgit2.pc.in +++ b/libgit2.pc.in @@ -4,7 +4,9 @@ includedir=@CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@ Name: libgit2 Description: The git library, take 2 Version: @LIBGIT2_VERSION_STRING@ -Requires.private: @LIBGIT2_PC_REQUIRES@ -Libs.private: @LIBGIT2_PC_LIBS@ + Libs: -L${libdir} -lgit2 +Libs.private: @LIBGIT2_PC_LIBS@ +Requires.private: @LIBGIT2_PC_REQUIRES@ + Cflags: -I${includedir} diff --git a/script/cibuild.sh b/script/cibuild.sh index a11e7984f23..de5df9ea897 100755 --- a/script/cibuild.sh +++ b/script/cibuild.sh @@ -34,8 +34,6 @@ killall git-daemon if [ "$TRAVIS_OS_NAME" = "osx" ]; then echo 'PasswordAuthentication yes' | sudo tee -a /etc/sshd_config -else - sudo start ssh fi ssh-keygen -t rsa -f ~/.ssh/id_rsa -N "" -q diff --git a/script/install-deps-linux.sh b/script/install-deps-linux.sh deleted file mode 100755 index 347922b893a..00000000000 --- a/script/install-deps-linux.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -set -x - -sudo apt-get -qq update && -sudo apt-get -qq install cmake libssh2-1-dev openssh-client openssh-server diff --git a/src/buf_text.c b/src/buf_text.c index 864e39caba7..7e6779d2dc6 100644 --- a/src/buf_text.c +++ b/src/buf_text.c @@ -131,17 +131,15 @@ int git_buf_text_lf_to_crlf(git_buf *tgt, const git_buf *src) for (; next; scan = next + 1, next = memchr(scan, '\n', end - scan)) { size_t copylen = next - scan; - /* if we find mixed line endings, bail */ - if (next > start && next[-1] == '\r') { - git_buf_free(tgt); - return GIT_PASSTHROUGH; - } + /* if we find mixed line endings, carry on */ + if (copylen && next[-1] == '\r') + copylen--; GITERR_CHECK_ALLOC_ADD(&alloclen, copylen, 3); if (git_buf_grow_by(tgt, alloclen) < 0) return -1; - if (next > scan) { + if (copylen) { memcpy(tgt->ptr + tgt->size, scan, copylen); tgt->size += copylen; } diff --git a/src/buf_text.h b/src/buf_text.h index e753a0244ec..c9c55af8931 100644 --- a/src/buf_text.h +++ b/src/buf_text.h @@ -58,8 +58,7 @@ extern void git_buf_text_unescape(git_buf *buf); /** * Replace all \r\n with \n. * - * @return 0 on success, -1 on memory error, GIT_PASSTHROUGH if the - * source buffer has mixed line endings. + * @return 0 on success, -1 on memory error */ extern int git_buf_text_crlf_to_lf(git_buf *tgt, const git_buf *src); diff --git a/src/buffer.c b/src/buffer.c index f633c5e02fc..1a5809ccad2 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -33,7 +33,7 @@ void git_buf_init(git_buf *buf, size_t initial_size) } int git_buf_try_grow( - git_buf *buf, size_t target_size, bool mark_oom, bool preserve_external) + git_buf *buf, size_t target_size, bool mark_oom) { char *new_ptr; size_t new_size; @@ -41,6 +41,11 @@ int git_buf_try_grow( if (buf->ptr == git_buf__oom) return -1; + if (buf->asize == 0 && buf->size != 0) { + giterr_set(GITERR_INVALID, "cannot grow a borrowed buffer"); + return GIT_EINVALID; + } + if (!target_size) target_size = buf->size; @@ -82,9 +87,6 @@ int git_buf_try_grow( return -1; } - if (preserve_external && !buf->asize && buf->ptr != NULL && buf->size > 0) - memcpy(new_ptr, buf->ptr, min(buf->size, new_size)); - buf->asize = new_size; buf->ptr = new_ptr; @@ -98,7 +100,7 @@ int git_buf_try_grow( int git_buf_grow(git_buf *buffer, size_t target_size) { - return git_buf_try_grow(buffer, target_size, true, true); + return git_buf_try_grow(buffer, target_size, true); } int git_buf_grow_by(git_buf *buffer, size_t additional_size) @@ -110,7 +112,7 @@ int git_buf_grow_by(git_buf *buffer, size_t additional_size) return -1; } - return git_buf_try_grow(buffer, newsize, true, true); + return git_buf_try_grow(buffer, newsize, true); } void git_buf_free(git_buf *buf) diff --git a/src/buffer.h b/src/buffer.h index 093ed9b6058..e46ee5dd748 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -59,7 +59,7 @@ extern int git_buf_grow_by(git_buf *buffer, size_t additional_size); * into the newly allocated buffer. */ extern int git_buf_try_grow( - git_buf *buf, size_t target_size, bool mark_oom, bool preserve_external); + git_buf *buf, size_t target_size, bool mark_oom); /** * Sanitizes git_buf structures provided from user input. Users of the diff --git a/src/checkout.c b/src/checkout.c index fd2b19a951b..a94d509d34f 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -180,7 +180,7 @@ static bool checkout_is_workdir_modified( return true; } - if (git_submodule_status(&sm_status, sm) < 0 || + if (git_submodule_status(&sm_status, data->repo, wditem->path, GIT_SUBMODULE_IGNORE_UNSPECIFIED) < 0 || GIT_SUBMODULE_STATUS_IS_WD_DIRTY(sm_status)) rval = true; else if ((sm_oid = git_submodule_wd_id(sm)) == NULL) @@ -211,7 +211,7 @@ static bool checkout_is_workdir_modified( if (baseitem->size && wditem->file_size != baseitem->size) return true; - if (git_diff__oid_for_entry(&oid, data->diff, wditem, NULL) < 0) + if (git_diff__oid_for_entry(&oid, data->diff, wditem, wditem->mode, NULL) < 0) return false; /* Allow the checkout if the workdir is not modified *or* if the checkout @@ -1860,11 +1860,6 @@ static int checkout_create_submodules( git_diff_delta *delta; size_t i; - /* initial reload of submodules if .gitmodules was changed */ - if (data->reload_submodules && - (error = git_submodule_reload_all(data->repo, 1)) < 0) - return error; - git_vector_foreach(&data->diff->deltas, i, delta) { if (actions[i] & CHECKOUT_ACTION__DEFER_REMOVE) { /* this has a blocker directory that should only be removed iff @@ -1885,8 +1880,7 @@ static int checkout_create_submodules( } } - /* final reload once submodules have been updated */ - return git_submodule_reload_all(data->repo, 1); + return 0; } static int checkout_lookup_head_tree(git_tree **out, git_repository *repo) diff --git a/src/commit.c b/src/commit.c index ce13bdb851e..616f947dbb2 100644 --- a/src/commit.c +++ b/src/commit.c @@ -518,3 +518,58 @@ int git_commit_nth_gen_ancestor( *ancestor = parent; return 0; } + +int git_commit_header_field(git_buf *out, const git_commit *commit, const char *field) +{ + const char *buf = commit->raw_header; + const char *h, *eol; + + git_buf_sanitize(out); + while ((h = strchr(buf, '\n')) && h[1] != '\0' && h[1] != '\n') { + h++; + if (git__prefixcmp(h, field)) { + buf = h; + continue; + } + + h += strlen(field); + eol = strchr(h, '\n'); + if (h[0] != ' ') { + buf = h; + continue; + } + if (!eol) + goto malformed; + + h++; /* skip the SP */ + + git_buf_put(out, h, eol - h); + if (git_buf_oom(out)) + goto oom; + + /* If the next line starts with SP, it's multi-line, we must continue */ + while (eol[1] == ' ') { + git_buf_putc(out, '\n'); + h = eol + 2; + eol = strchr(h, '\n'); + if (!eol) + goto malformed; + + git_buf_put(out, h, eol - h); + } + + if (git_buf_oom(out)) + goto oom; + + return 0; + } + + return GIT_ENOTFOUND; + +malformed: + giterr_set(GITERR_OBJECT, "malformed header"); + return -1; +oom: + giterr_set_oom(); + return -1; +} diff --git a/src/config.c b/src/config.c index 1400b951336..77cf573e657 100644 --- a/src/config.c +++ b/src/config.c @@ -1194,6 +1194,26 @@ int git_config_lookup_map_value( return -1; } +int git_config_lookup_map_enum(git_cvar_t *type_out, const char **str_out, + const git_cvar_map *maps, size_t map_n, int enum_val) +{ + size_t i; + + for (i = 0; i < map_n; i++) { + const git_cvar_map *m = &maps[i]; + + if (m->map_value != enum_val) + continue; + + *type_out = m->cvar_type; + *str_out = m->str_match; + return 0; + } + + giterr_set(GITERR_CONFIG, "invalid enum value"); + return GIT_ENOTFOUND; +} + int git_config_parse_bool(int *out, const char *value) { if (git__parse_bool(out, value) == 0) diff --git a/src/config.h b/src/config.h index 691868b1de4..f257cc90faf 100644 --- a/src/config.h +++ b/src/config.h @@ -82,4 +82,10 @@ extern int git_config__get_int_force( extern int git_config__cvar( int *out, git_config *config, git_cvar_cached cvar); +/** + * The opposite of git_config_lookup_map_value, we take an enum value + * and map it to the string or bool value on the config. + */ +int git_config_lookup_map_enum(git_cvar_t *type_out, const char **str_out, + const git_cvar_map *maps, size_t map_n, int enum_val); #endif diff --git a/src/crlf.c b/src/crlf.c index b5d1dbf321a..f391137c1b4 100644 --- a/src/crlf.c +++ b/src/crlf.c @@ -193,28 +193,29 @@ static const char *line_ending(struct crlf_attrs *ca) case GIT_CRLF_CRLF: return "\r\n"; + case GIT_CRLF_GUESS: + if (ca->auto_crlf == GIT_AUTO_CRLF_FALSE) + return "\n"; + break; + case GIT_CRLF_AUTO: case GIT_CRLF_TEXT: - case GIT_CRLF_GUESS: break; default: goto line_ending_error; } - switch (ca->eol) { - case GIT_EOL_UNSET: - return GIT_EOL_NATIVE == GIT_EOL_CRLF ? "\r\n" : "\n"; - - case GIT_EOL_CRLF: + if (ca->auto_crlf == GIT_AUTO_CRLF_TRUE) return "\r\n"; - - case GIT_EOL_LF: + else if (ca->auto_crlf == GIT_AUTO_CRLF_INPUT) return "\n"; - - default: - goto line_ending_error; - } + else if (ca->eol == GIT_EOL_UNSET) + return GIT_EOL_NATIVE == GIT_EOL_CRLF ? "\r\n" : "\n"; + else if (ca->eol == GIT_EOL_LF) + return "\n"; + else if (ca->eol == GIT_EOL_CRLF) + return "\r\n"; line_ending_error: giterr_set(GITERR_INVALID, "Invalid input to line ending filter"); @@ -224,16 +225,14 @@ static const char *line_ending(struct crlf_attrs *ca) static int crlf_apply_to_workdir( struct crlf_attrs *ca, git_buf *to, const git_buf *from) { + git_buf_text_stats stats; const char *workdir_ending = NULL; + bool is_binary; /* Empty file? Nothing to do. */ if (git_buf_len(from) == 0) return 0; - /* Don't filter binary files */ - if (git_buf_text_is_binary(from)) - return GIT_PASSTHROUGH; - /* Determine proper line ending */ workdir_ending = line_ending(ca); if (!workdir_ending) @@ -243,6 +242,29 @@ static int crlf_apply_to_workdir( if (strcmp(workdir_ending, "\r\n") != 0) return GIT_PASSTHROUGH; + /* If there are no LFs, or all LFs are part of a CRLF, nothing to do */ + is_binary = git_buf_text_gather_stats(&stats, from, false); + + if (stats.lf == 0 || stats.lf == stats.crlf) + return GIT_PASSTHROUGH; + + if (ca->crlf_action == GIT_CRLF_AUTO || + ca->crlf_action == GIT_CRLF_GUESS) { + + /* If we have any existing CR or CRLF line endings, do nothing */ + if (ca->crlf_action == GIT_CRLF_GUESS && + stats.cr > 0 && stats.crlf > 0) + return GIT_PASSTHROUGH; + + /* If we have bare CR characters, do nothing */ + if (stats.cr != stats.crlf) + return GIT_PASSTHROUGH; + + /* Don't filter binary files */ + if (is_binary) + return GIT_PASSTHROUGH; + } + return git_buf_text_lf_to_crlf(to, from); } @@ -278,7 +300,7 @@ static int crlf_check( return GIT_PASSTHROUGH; if (ca.crlf_action == GIT_CRLF_GUESS || - (ca.crlf_action == GIT_CRLF_AUTO && + ((ca.crlf_action == GIT_CRLF_AUTO || ca.crlf_action == GIT_CRLF_TEXT) && git_filter_source_mode(src) == GIT_FILTER_SMUDGE)) { error = git_repository__cvar( diff --git a/src/curl_stream.c b/src/curl_stream.c new file mode 100644 index 00000000000..6534bdbbe78 --- /dev/null +++ b/src/curl_stream.c @@ -0,0 +1,257 @@ +/* + * Copyright (C) the libgit2 contributors. All rights reserved. + * + * This file is part of libgit2, distributed under the GNU GPL v2 with + * a Linking Exception. For full terms see the included COPYING file. + */ + +#ifdef GIT_CURL + +#include + +#include "stream.h" +#include "git2/transport.h" +#include "buffer.h" +#include "vector.h" + +typedef struct { + git_stream parent; + CURL *handle; + curl_socket_t socket; + char curl_error[CURL_ERROR_SIZE + 1]; + git_cert_x509 cert_info; + git_strarray cert_info_strings; +} curl_stream; + +static int seterr_curl(curl_stream *s) +{ + giterr_set(GITERR_NET, "curl error: %s\n", s->curl_error); + return -1; +} + +static int curls_connect(git_stream *stream) +{ + curl_stream *s = (curl_stream *) stream; + long sockextr; + int failed_cert = 0; + CURLcode res; + res = curl_easy_perform(s->handle); + + if (res != CURLE_OK && res != CURLE_PEER_FAILED_VERIFICATION) + return seterr_curl(s); + if (res == CURLE_PEER_FAILED_VERIFICATION) + failed_cert = 1; + + if ((res = curl_easy_getinfo(s->handle, CURLINFO_LASTSOCKET, &sockextr)) != CURLE_OK) + return seterr_curl(s); + + s->socket = sockextr; + + if (s->parent.encrypted && failed_cert) + return GIT_ECERTIFICATE; + + return 0; +} + +static int curls_certificate(git_cert **out, git_stream *stream) +{ + int error; + CURLcode res; + struct curl_slist *slist; + struct curl_certinfo *certinfo; + git_vector strings = GIT_VECTOR_INIT; + curl_stream *s = (curl_stream *) stream; + + if ((res = curl_easy_getinfo(s->handle, CURLINFO_CERTINFO, &certinfo)) != CURLE_OK) + return seterr_curl(s); + + /* No information is available, can happen with SecureTransport */ + if (certinfo->num_of_certs == 0) { + s->cert_info.cert_type = GIT_CERT_NONE; + s->cert_info.data = NULL; + s->cert_info.len = 0; + return 0; + } + + if ((error = git_vector_init(&strings, 8, NULL)) < 0) + return error; + + for (slist = certinfo->certinfo[0]; slist; slist = slist->next) { + char *str = git__strdup(slist->data); + GITERR_CHECK_ALLOC(str); + } + + /* Copy the contents of the vector into a strarray so we can expose them */ + s->cert_info_strings.strings = (char **) strings.contents; + s->cert_info_strings.count = strings.length; + + s->cert_info.cert_type = GIT_CERT_STRARRAY; + s->cert_info.data = &s->cert_info_strings; + s->cert_info.len = strings.length; + + *out = (git_cert *) &s->cert_info; + + return 0; +} + +static int curls_set_proxy(git_stream *stream, const char *proxy_url) +{ + CURLcode res; + curl_stream *s = (curl_stream *) stream; + + if ((res = curl_easy_setopt(s->handle, CURLOPT_PROXY, proxy_url)) != CURLE_OK) + return seterr_curl(s); + + return 0; +} + +static int wait_for(curl_socket_t fd, bool reading) +{ + int ret; + fd_set infd, outfd, errfd; + + FD_ZERO(&infd); + FD_ZERO(&outfd); + FD_ZERO(&errfd); + + FD_SET(fd, &errfd); + if (reading) + FD_SET(fd, &infd); + else + FD_SET(fd, &outfd); + + if ((ret = select(fd + 1, &infd, &outfd, &errfd, NULL)) < 0) { + giterr_set(GITERR_OS, "error in select"); + return -1; + } + + return 0; +} + +static ssize_t curls_write(git_stream *stream, const char *data, size_t len, int flags) +{ + int error; + size_t off = 0, sent; + CURLcode res; + curl_stream *s = (curl_stream *) stream; + + GIT_UNUSED(flags); + + do { + if ((error = wait_for(s->socket, false)) < 0) + return error; + + res = curl_easy_send(s->handle, data + off, len - off, &sent); + if (res == CURLE_OK) + off += sent; + } while ((res == CURLE_OK || res == CURLE_AGAIN) && off < len); + + if (res != CURLE_OK) + return seterr_curl(s); + + return len; +} + +static ssize_t curls_read(git_stream *stream, void *data, size_t len) +{ + int error; + size_t read; + CURLcode res; + curl_stream *s = (curl_stream *) stream; + + do { + if ((error = wait_for(s->socket, true)) < 0) + return error; + + res = curl_easy_recv(s->handle, data, len, &read); + } while (res == CURLE_AGAIN); + + if (res != CURLE_OK) + return seterr_curl(s); + + return read; +} + +static int curls_close(git_stream *stream) +{ + curl_stream *s = (curl_stream *) stream; + + if (!s->handle) + return 0; + + curl_easy_cleanup(s->handle); + s->handle = NULL; + s->socket = 0; + + return 0; +} + +static void curls_free(git_stream *stream) +{ + curl_stream *s = (curl_stream *) stream; + + curls_close(stream); + git_strarray_free(&s->cert_info_strings); + git__free(s); +} + +int git_curl_stream_new(git_stream **out, const char *host, const char *port) +{ + curl_stream *st; + CURL *handle; + int iport = 0, error; + + st = git__calloc(1, sizeof(curl_stream)); + GITERR_CHECK_ALLOC(st); + + handle = curl_easy_init(); + if (handle == NULL) { + giterr_set(GITERR_NET, "failed to create curl handle"); + return -1; + } + + if ((error = git__strtol32(&iport, port, NULL, 10)) < 0) + return error; + + curl_easy_setopt(handle, CURLOPT_URL, host); + curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, st->curl_error); + curl_easy_setopt(handle, CURLOPT_PORT, iport); + curl_easy_setopt(handle, CURLOPT_CONNECT_ONLY, 1); + curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 1); + curl_easy_setopt(handle, CURLOPT_CERTINFO, 1); + curl_easy_setopt(handle, CURLOPT_HTTPPROXYTUNNEL, 1); + + /* curl_easy_setopt(handle, CURLOPT_VERBOSE, 1); */ + + st->parent.version = GIT_STREAM_VERSION; + st->parent.encrypted = 0; /* we don't encrypt ourselves */ + st->parent.proxy_support = 1; + st->parent.connect = curls_connect; + st->parent.certificate = curls_certificate; + st->parent.set_proxy = curls_set_proxy; + st->parent.read = curls_read; + st->parent.write = curls_write; + st->parent.close = curls_close; + st->parent.free = curls_free; + st->handle = handle; + + *out = (git_stream *) st; + return 0; +} + +#else + +#include "stream.h" + +int git_curl_stream_new(git_stream **out, const char *host, const char *port) +{ + GIT_UNUSED(out); + GIT_UNUSED(host); + GIT_UNUSED(port); + + giterr_set(GITERR_NET, "curl is not supported in this version"); + return -1; +} + + +#endif diff --git a/src/curl_stream.h b/src/curl_stream.h new file mode 100644 index 00000000000..283f0fe40e3 --- /dev/null +++ b/src/curl_stream.h @@ -0,0 +1,14 @@ +/* + * Copyright (C) the libgit2 contributors. All rights reserved. + * + * This file is part of libgit2, distributed under the GNU GPL v2 with + * a Linking Exception. For full terms see the included COPYING file. + */ +#ifndef INCLUDE_curl_stream_h__ +#define INCLUDE_curl_stream_h__ + +#include "git2/sys/stream.h" + +extern int git_curl_stream_new(git_stream **out, const char *host, const char *port); + +#endif diff --git a/src/diff.c b/src/diff.c index c9d1d87301e..c1adcc662c1 100644 --- a/src/diff.c +++ b/src/diff.c @@ -570,7 +570,7 @@ int git_diff__oid_for_file( git_oid *out, git_diff *diff, const char *path, - uint16_t mode, + uint16_t mode, git_off_t size) { git_index_entry entry; @@ -580,13 +580,14 @@ int git_diff__oid_for_file( entry.file_size = size; entry.path = (char *)path; - return git_diff__oid_for_entry(out, diff, &entry, NULL); + return git_diff__oid_for_entry(out, diff, &entry, mode, NULL); } int git_diff__oid_for_entry( git_oid *out, git_diff *diff, const git_index_entry *src, + uint16_t mode, const git_oid *update_match) { int error = 0; @@ -600,7 +601,7 @@ int git_diff__oid_for_entry( &full_path, git_repository_workdir(diff->repo), entry.path) < 0) return -1; - if (!entry.mode) { + if (!mode) { struct stat st; diff->perf.stat_calls++; @@ -616,7 +617,7 @@ int git_diff__oid_for_entry( } /* calculate OID for file if possible */ - if (S_ISGITLINK(entry.mode)) { + if (S_ISGITLINK(mode)) { git_submodule *sm; if (!git_submodule_lookup(&sm, diff->repo, entry.path)) { @@ -630,7 +631,7 @@ int git_diff__oid_for_entry( */ giterr_clear(); } - } else if (S_ISLNK(entry.mode)) { + } else if (S_ISLNK(mode)) { error = git_odb__hashlink(out, full_path.ptr); diff->perf.oid_calculations++; } else if (!git__is_sizet(entry.file_size)) { @@ -657,10 +658,15 @@ int git_diff__oid_for_entry( /* update index for entry if requested */ if (!error && update_match && git_oid_equal(out, update_match)) { git_index *idx; + git_index_entry updated_entry; + + memcpy(&updated_entry, &entry, sizeof(git_index_entry)); + updated_entry.mode = mode; + git_oid_cpy(&updated_entry.id, out); if (!(error = git_repository_index__weakptr(&idx, diff->repo))) { - git_oid_cpy(&entry.id, out); - error = git_index_add(idx, &entry); + error = git_index_add(idx, &updated_entry); + diff->index_updated = true; } } @@ -812,11 +818,11 @@ static int maybe_modified( } else if (git_oid_iszero(&nitem->id) && new_is_workdir) { bool use_ctime = ((diff->diffcaps & GIT_DIFFCAPS_TRUST_CTIME) != 0); bool use_nanos = ((diff->diffcaps & GIT_DIFFCAPS_TRUST_NANOSECS) != 0); + git_index *index; + git_iterator_index(&index, info->new_iter); status = GIT_DELTA_UNMODIFIED; - /* TODO: add check against index file st_mtime to avoid racy-git */ - if (S_ISGITLINK(nmode)) { if ((error = maybe_modified_submodule(&status, &noid, diff, info)) < 0) return error; @@ -835,7 +841,8 @@ static int maybe_modified( !diff_time_eq(&oitem->ctime, &nitem->ctime, use_nanos)) || oitem->ino != nitem->ino || oitem->uid != nitem->uid || - oitem->gid != nitem->gid) + oitem->gid != nitem->gid || + (index && nitem->mtime.seconds >= index->stamp.mtime)) { status = GIT_DELTA_MODIFIED; modified_uncertain = true; @@ -856,7 +863,7 @@ static int maybe_modified( &oitem->id : NULL; if ((error = git_diff__oid_for_entry( - &noid, diff, nitem, update_check)) < 0) + &noid, diff, nitem, nmode, update_check)) < 0) return error; /* if oid matches, then mark unmodified (except submodules, where @@ -1085,8 +1092,10 @@ static int handle_unmatched_new_item( /* item contained in ignored directory, so skip over it */ return iterator_advance(&info->nitem, info->new_iter); - else if (info->new_iter->type != GIT_ITERATOR_TYPE_WORKDIR) - delta_type = GIT_DELTA_ADDED; + else if (info->new_iter->type != GIT_ITERATOR_TYPE_WORKDIR) { + if (delta_type != GIT_DELTA_CONFLICTED) + delta_type = GIT_DELTA_ADDED; + } else if (nitem->mode == GIT_FILEMODE_COMMIT) { /* ignore things that are not actual submodules */ @@ -1353,7 +1362,7 @@ int git_diff_index_to_workdir( &b, repo, index, NULL, GIT_ITERATOR_DONT_AUTOEXPAND, pfx, pfx) ); - if (!error && DIFF_FLAG_IS_SET(*diff, GIT_DIFF_UPDATE_INDEX)) + if (!error && DIFF_FLAG_IS_SET(*diff, GIT_DIFF_UPDATE_INDEX) && (*diff)->index_updated) error = git_index_write(index); return error; diff --git a/src/diff.h b/src/diff.h index 3305238d0dc..2dfc2c61544 100644 --- a/src/diff.h +++ b/src/diff.h @@ -64,6 +64,7 @@ struct git_diff { git_iterator_type_t new_src; uint32_t diffcaps; git_diff_perfdata perf; + bool index_updated; int (*strcomp)(const char *, const char *); int (*strncomp)(const char *, const char *, size_t); @@ -94,7 +95,7 @@ extern int git_diff_delta__format_file_header( extern int git_diff__oid_for_file( git_oid *out, git_diff *, const char *, uint16_t, git_off_t); extern int git_diff__oid_for_entry( - git_oid *out, git_diff *, const git_index_entry *, const git_oid *update); + git_oid *out, git_diff *, const git_index_entry *, uint16_t, const git_oid *update); extern int git_diff__from_iterators( git_diff **diff_ptr, @@ -123,6 +124,25 @@ extern int git_diff_find_similar__calc_similarity( extern int git_diff__commit( git_diff **diff, git_repository *repo, const git_commit *commit, const git_diff_options *opts); +/* Merge two `git_diff`s according to the callback given by `cb`. */ + +typedef git_diff_delta *(*git_diff__merge_cb)( + const git_diff_delta *left, + const git_diff_delta *right, + git_pool *pool); + +extern int git_diff__merge( + git_diff *onto, const git_diff *from, git_diff__merge_cb cb); + +extern git_diff_delta *git_diff__merge_like_cgit( + const git_diff_delta *a, + const git_diff_delta *b, + git_pool *pool); + +/* Duplicate a `git_diff_delta` out of the `git_pool` */ +extern git_diff_delta *git_diff__delta_dup( + const git_diff_delta *d, git_pool *pool); + /* * Sometimes a git_diff_file will have a zero size; this attempts to * fill in the size without loading the blob if possible. If that is diff --git a/src/diff_file.c b/src/diff_file.c index cef4bc169c4..c6036286577 100644 --- a/src/diff_file.c +++ b/src/diff_file.c @@ -186,7 +186,7 @@ static int diff_file_content_commit_to_str( return error; } - if ((error = git_submodule_status(&sm_status, sm)) < 0) { + if ((error = git_submodule_status(&sm_status, fc->repo, fc->file->path, GIT_SUBMODULE_IGNORE_UNSPECIFIED)) < 0) { git_submodule_free(sm); return error; } diff --git a/src/diff_patch.c b/src/diff_patch.c index 60648f8d7f2..0628da6f21f 100644 --- a/src/diff_patch.c +++ b/src/diff_patch.c @@ -121,6 +121,35 @@ GIT_INLINE(bool) should_skip_binary(git_patch *patch, git_diff_file *file) return (file->flags & GIT_DIFF_FLAG_BINARY) != 0; } +static bool diff_patch_diffable(git_patch *patch) +{ + size_t olen, nlen; + + if (patch->delta->status == GIT_DELTA_UNMODIFIED) + return false; + + /* if we've determined this to be binary (and we are not showing binary + * data) then we have skipped loading the map data. instead, query the + * file data itself. + */ + if ((patch->delta->flags & GIT_DIFF_FLAG_BINARY) != 0 && + (patch->diff_opts.flags & GIT_DIFF_SHOW_BINARY) == 0) { + olen = (size_t)patch->ofile.file->size; + nlen = (size_t)patch->nfile.file->size; + } else { + olen = patch->ofile.map.len; + nlen = patch->nfile.map.len; + } + + /* if both sides are empty, files are identical */ + if (!olen && !nlen) + return false; + + /* otherwise, check the file sizes and the oid */ + return (olen != nlen || + !git_oid_equal(&patch->ofile.file->id, &patch->nfile.file->id)); +} + static int diff_patch_load(git_patch *patch, git_diff_output *output) { int error = 0; @@ -186,18 +215,7 @@ static int diff_patch_load(git_patch *patch, git_diff_output *output) diff_patch_update_binary(patch); if (!error) { - bool skip_binary = - (patch->delta->flags & GIT_DIFF_FLAG_BINARY) != 0 && - (patch->diff_opts.flags & GIT_DIFF_SHOW_BINARY) == 0; - - /* patch is diffable only for non-binary, modified files where - * at least one side has data and the data actually changed - */ - if (!skip_binary && - patch->delta->status != GIT_DELTA_UNMODIFIED && - (patch->ofile.map.len || patch->nfile.map.len) && - (patch->ofile.map.len != patch->nfile.map.len || - !git_oid_equal(&patch->ofile.file->id, &patch->nfile.file->id))) + if (diff_patch_diffable(patch)) patch->flags |= GIT_DIFF_PATCH_DIFFABLE; patch->flags |= GIT_DIFF_PATCH_LOADED; @@ -307,9 +325,14 @@ static int diff_binary(git_diff_output *output, git_patch *patch) old_data, old_len, new_data, new_len)) < 0) return error; - return giterr_set_after_callback_function( + error = giterr_set_after_callback_function( output->binary_cb(patch->delta, &binary, output->payload), "git_patch"); + + git__free((char *) binary.old_file.data); + git__free((char *) binary.new_file.data); + + return error; } static int diff_patch_generate(git_patch *patch, git_diff_output *output) @@ -359,6 +382,9 @@ static void diff_patch_free(git_patch *patch) git__free((char *)patch->diff_opts.old_prefix); git__free((char *)patch->diff_opts.new_prefix); + git__free((char *)patch->binary.old_file.data); + git__free((char *)patch->binary.new_file.data); + if (patch->flags & GIT_DIFF_PATCH_ALLOCATED) git__free(patch); } diff --git a/src/diff_patch.h b/src/diff_patch.h index f6ce57dddab..7b4dacddec5 100644 --- a/src/diff_patch.h +++ b/src/diff_patch.h @@ -24,7 +24,9 @@ enum { GIT_DIFF_PATCH_ALLOCATED = (1 << 0), GIT_DIFF_PATCH_INITIALIZED = (1 << 1), GIT_DIFF_PATCH_LOADED = (1 << 2), + /* the two sides are different */ GIT_DIFF_PATCH_DIFFABLE = (1 << 3), + /* the difference between the two sides has been computed */ GIT_DIFF_PATCH_DIFFED = (1 << 4), GIT_DIFF_PATCH_FLATTENED = (1 << 5), }; diff --git a/src/diff_print.c b/src/diff_print.c index c58698368df..546488c2f3e 100644 --- a/src/diff_print.c +++ b/src/diff_print.c @@ -578,6 +578,9 @@ int git_diff_print( giterr_set_after_callback_function(error, "git_diff_print"); } + git__free(pi.nfile); + git__free(pi.ofile); + git_buf_free(&buf); return error; diff --git a/src/diff_tform.c b/src/diff_tform.c index 03dd9c9f74c..92647e33065 100644 --- a/src/diff_tform.c +++ b/src/diff_tform.c @@ -15,7 +15,7 @@ #include "fileops.h" #include "config.h" -static git_diff_delta *diff_delta__dup( +git_diff_delta *git_diff__delta_dup( const git_diff_delta *d, git_pool *pool) { git_diff_delta *delta = git__malloc(sizeof(git_diff_delta)); @@ -46,7 +46,7 @@ static git_diff_delta *diff_delta__dup( return NULL; } -static git_diff_delta *diff_delta__merge_like_cgit( +git_diff_delta *git_diff__merge_like_cgit( const git_diff_delta *a, const git_diff_delta *b, git_pool *pool) @@ -65,19 +65,26 @@ static git_diff_delta *diff_delta__merge_like_cgit( * f3 = b->new_file */ + /* If one of the diffs is a conflict, just dup it */ + if (b->status == GIT_DELTA_CONFLICTED) + return git_diff__delta_dup(b, pool); + if (a->status == GIT_DELTA_CONFLICTED) + return git_diff__delta_dup(a, pool); + /* if f2 == f3 or f2 is deleted, then just dup the 'a' diff */ if (b->status == GIT_DELTA_UNMODIFIED || a->status == GIT_DELTA_DELETED) - return diff_delta__dup(a, pool); + return git_diff__delta_dup(a, pool); /* otherwise, base this diff on the 'b' diff */ - if ((dup = diff_delta__dup(b, pool)) == NULL) + if ((dup = git_diff__delta_dup(b, pool)) == NULL) return NULL; /* If 'a' status is uninteresting, then we're done */ - if (a->status == GIT_DELTA_UNMODIFIED) + if (a->status == GIT_DELTA_UNMODIFIED || + a->status == GIT_DELTA_UNTRACKED || + a->status == GIT_DELTA_UNREADABLE) return dup; - assert(a->status != GIT_DELTA_UNMODIFIED); assert(b->status != GIT_DELTA_UNMODIFIED); /* A cgit exception is that the diff of a file that is only in the @@ -102,43 +109,8 @@ static git_diff_delta *diff_delta__merge_like_cgit( return dup; } -static git_diff_delta *diff_delta__merge_like_cgit_reversed( - const git_diff_delta *a, - const git_diff_delta *b, - git_pool *pool) -{ - git_diff_delta *dup; - - /* reversed version of above logic */ - - if (a->status == GIT_DELTA_UNMODIFIED) - return diff_delta__dup(b, pool); - - if ((dup = diff_delta__dup(a, pool)) == NULL) - return NULL; - - if (b->status == GIT_DELTA_UNMODIFIED || b->status == GIT_DELTA_UNTRACKED || b->status == GIT_DELTA_UNREADABLE) - return dup; - - if (dup->status == GIT_DELTA_DELETED) { - if (b->status == GIT_DELTA_ADDED) { - dup->status = GIT_DELTA_UNMODIFIED; - dup->nfiles = 2; - } - } else { - dup->status = b->status; - dup->nfiles = b->nfiles; - } - - git_oid_cpy(&dup->old_file.id, &b->old_file.id); - dup->old_file.mode = b->old_file.mode; - dup->old_file.size = b->old_file.size; - dup->old_file.flags = b->old_file.flags; - - return dup; -} - -int git_diff_merge(git_diff *onto, const git_diff *from) +int git_diff__merge( + git_diff *onto, const git_diff *from, git_diff__merge_cb cb) { int error = 0; git_pool onto_pool; @@ -174,15 +146,16 @@ int git_diff_merge(git_diff *onto, const git_diff *from) STRCMP_CASESELECT(ignore_case, o->old_file.path, f->old_file.path); if (cmp < 0) { - delta = diff_delta__dup(o, &onto_pool); + delta = git_diff__delta_dup(o, &onto_pool); i++; } else if (cmp > 0) { - delta = diff_delta__dup(f, &onto_pool); + delta = git_diff__delta_dup(f, &onto_pool); j++; } else { - delta = reversed ? - diff_delta__merge_like_cgit_reversed(o, f, &onto_pool) : - diff_delta__merge_like_cgit(o, f, &onto_pool); + const git_diff_delta *left = reversed ? f : o; + const git_diff_delta *right = reversed ? o : f; + + delta = cb(left, right, &onto_pool); i++; j++; } @@ -190,7 +163,7 @@ int git_diff_merge(git_diff *onto, const git_diff *from) /* the ignore rules for the target may not match the source * or the result of a merged delta could be skippable... */ - if (git_diff_delta__should_skip(&onto->opts, delta)) { + if (delta && git_diff_delta__should_skip(&onto->opts, delta)) { git__free(delta); continue; } @@ -221,6 +194,11 @@ int git_diff_merge(git_diff *onto, const git_diff *from) return error; } +int git_diff_merge(git_diff *onto, const git_diff *from) +{ + return git_diff__merge(onto, from, git_diff__merge_like_cgit); +} + int git_diff_find_similar__hashsig_for_file( void **out, const git_diff_file *f, const char *path, void *p) { @@ -369,7 +347,7 @@ static int insert_delete_side_of_split( git_diff *diff, git_vector *onto, const git_diff_delta *delta) { /* make new record for DELETED side of split */ - git_diff_delta *deleted = diff_delta__dup(delta, &diff->pool); + git_diff_delta *deleted = git_diff__delta_dup(delta, &diff->pool); GITERR_CHECK_ALLOC(deleted); deleted->status = GIT_DELTA_DELETED; diff --git a/src/fetch.c b/src/fetch.c index 82d86bbcedb..4d895752cae 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -60,7 +60,7 @@ static int filter_wants(git_remote *remote, const git_fetch_options *opts) size_t i, heads_len; git_remote_autotag_option_t tagopt = remote->download_tags; - if (opts && opts->download_tags != GIT_REMOTE_DOWNLOAD_TAGS_FALLBACK) + if (opts && opts->download_tags != GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED) tagopt = opts->download_tags; git_vector_clear(&remote->refs); diff --git a/src/index.c b/src/index.c index a931f048a5c..5ce5522f8aa 100644 --- a/src/index.c +++ b/src/index.c @@ -116,7 +116,7 @@ static int read_header(struct index_header *dest, const void *buffer); static int parse_index(git_index *index, const char *buffer, size_t buffer_size); static bool is_index_extended(git_index *index); -static int write_index(git_index *index, git_filebuf *file); +static int write_index(git_oid *checksum, git_index *index, git_filebuf *file); static void index_entry_free(git_index_entry *entry); static void index_entry_reuc_free(git_index_reuc_entry *reuc); @@ -598,6 +598,38 @@ int git_index_caps(const git_index *index) (index->no_symlinks ? GIT_INDEXCAP_NO_SYMLINKS : 0)); } +const git_oid *git_index_checksum(git_index *index) +{ + return &index->checksum; +} + +/** + * Returns 1 for changed, 0 for not changed and <0 for errors + */ +static int compare_checksum(git_index *index) +{ + int fd, error; + ssize_t bytes_read; + git_oid checksum = {{ 0 }}; + + if ((fd = p_open(index->index_file_path, O_RDONLY)) < 0) + return fd; + + if ((error = p_lseek(fd, -20, SEEK_END)) < 0) { + p_close(fd); + giterr_set(GITERR_OS, "failed to seek to end of file"); + return -1; + } + + bytes_read = p_read(fd, &checksum, GIT_OID_RAWSZ); + p_close(fd); + + if (bytes_read < 0) + return -1; + + return !!git_oid_cmp(&checksum, &index->checksum); +} + int git_index_read(git_index *index, int force) { int error = 0, updated; @@ -616,8 +648,8 @@ int git_index_read(git_index *index, int force) return 0; } - updated = git_futils_filestamp_check(&stamp, index->index_file_path); - if (updated < 0) { + if ((updated = git_futils_filestamp_check(&stamp, index->index_file_path) < 0) || + ((updated = compare_checksum(index)) < 0)) { giterr_set( GITERR_INDEX, "Failed to read index: '%s' no longer exists", @@ -647,31 +679,68 @@ int git_index_read(git_index *index, int force) } int git_index__changed_relative_to( - git_index *index, const git_futils_filestamp *fs) + git_index *index, const git_oid *checksum) { /* attempt to update index (ignoring errors) */ if (git_index_read(index, false) < 0) giterr_clear(); - return (index->stamp.mtime != fs->mtime || - index->stamp.size != fs->size || - index->stamp.ino != fs->ino); + return !!git_oid_cmp(&index->checksum, checksum); +} + +static bool is_racy_timestamp(git_time_t stamp, git_index_entry *entry) +{ + /* Git special-cases submodules in the check */ + if (S_ISGITLINK(entry->mode)) + return false; + + /* If we never read the index, we can't have this race either */ + if (stamp == 0) + return false; + + /* If the timestamp is the same or newer than the index, it's racy */ + return ((int32_t) stamp) <= entry->mtime.seconds; } /* * Force the next diff to take a look at those entries which have the * same timestamp as the current index. */ -static void truncate_racily_clean(git_index *index) +static int truncate_racily_clean(git_index *index) { size_t i; + int error; git_index_entry *entry; git_time_t ts = index->stamp.mtime; + git_diff_options diff_opts = GIT_DIFF_OPTIONS_INIT; + git_diff *diff; + + /* Nothing to do if there's no repo to talk about */ + if (!INDEX_OWNER(index)) + return 0; + + /* If there's no workdir, we can't know where to even check */ + if (!git_repository_workdir(INDEX_OWNER(index))) + return 0; + diff_opts.flags |= GIT_DIFF_INCLUDE_TYPECHANGE | GIT_DIFF_IGNORE_SUBMODULES | GIT_DIFF_DISABLE_PATHSPEC_MATCH; git_vector_foreach(&index->entries, i, entry) { - if (entry->mtime.seconds == ts || ts == 0) + if (!is_racy_timestamp(ts, entry)) + continue; + + diff_opts.pathspec.count = 1; + diff_opts.pathspec.strings = (char **) &entry->path; + + if ((error = git_diff_index_to_workdir(&diff, INDEX_OWNER(index), index, &diff_opts)) < 0) + return error; + + if (git_diff_num_deltas(diff) > 0) entry->file_size = 0; + + git_diff_free(diff); } + + return 0; } int git_index_write(git_index *index) @@ -2092,6 +2161,8 @@ static int parse_index(git_index *index, const char *buffer, size_t buffer_size) goto done; } + git_oid_cpy(&index->checksum, &checksum_calculated); + #undef seek_forward /* Entries are stored case-sensitively on disk, so re-sort now if @@ -2355,7 +2426,7 @@ static int write_tree_extension(git_index *index, git_filebuf *file) return error; } -static int write_index(git_index *index, git_filebuf *file) +static int write_index(git_oid *checksum, git_index *index, git_filebuf *file) { git_oid hash_final; struct index_header header; @@ -2391,6 +2462,7 @@ static int write_index(git_index *index, git_filebuf *file) /* get out the hash for all the contents we've appended to the file */ git_filebuf_hash(&hash_final, file); + git_oid_cpy(checksum, &hash_final); /* write it at the end of the file */ return git_filebuf_write(file, hash_final.id, GIT_OID_RAWSZ); @@ -2953,6 +3025,7 @@ int git_indexwriter_init_for_operation( int git_indexwriter_commit(git_indexwriter *writer) { int error; + git_oid checksum = {{ 0 }}; if (!writer->should_write) return 0; @@ -2962,7 +3035,7 @@ int git_indexwriter_commit(git_indexwriter *writer) git_vector_sort(&writer->index->reuc); - if ((error = write_index(writer->index, &writer->file)) < 0) { + if ((error = write_index(&checksum, writer->index, &writer->file)) < 0) { git_indexwriter_cleanup(writer); return error; } @@ -2977,6 +3050,7 @@ int git_indexwriter_commit(git_indexwriter *writer) } writer->index->on_disk = 1; + git_oid_cpy(&writer->index->checksum, &checksum); git_index_free(writer->index); writer->index = NULL; diff --git a/src/index.h b/src/index.h index 0f6f4e86e20..9c60b015c53 100644 --- a/src/index.h +++ b/src/index.h @@ -22,6 +22,7 @@ struct git_index { char *index_file_path; git_futils_filestamp stamp; + git_oid checksum; /* checksum at the end of the file */ git_vector entries; @@ -80,7 +81,7 @@ GIT_INLINE(const git_futils_filestamp *) git_index__filestamp(git_index *index) return &index->stamp; } -extern int git_index__changed_relative_to(git_index *index, const git_futils_filestamp *fs); +extern int git_index__changed_relative_to(git_index *index, const git_oid *checksum); /* Copy the current entries vector *and* increment the index refcount. * Call `git_index__release_snapshot` when done. diff --git a/src/iterator.c b/src/iterator.c index 7807a16364b..2c3a87af07b 100644 --- a/src/iterator.c +++ b/src/iterator.c @@ -1762,6 +1762,18 @@ int git_iterator_current_workdir_path(git_buf **path, git_iterator *iter) return 0; } +int git_iterator_index(git_index **out, git_iterator *iter) +{ + workdir_iterator *wi = (workdir_iterator *)iter; + + if (iter->type != GIT_ITERATOR_TYPE_WORKDIR) + *out = NULL; + + *out = wi->index; + + return 0; +} + int git_iterator_advance_over_with_status( const git_index_entry **entryptr, git_iterator_status_t *status, @@ -1831,3 +1843,89 @@ int git_iterator_advance_over_with_status( return error; } +int git_iterator_walk( + git_iterator **iterators, + size_t cnt, + git_iterator_walk_cb cb, + void *data) +{ + const git_index_entry **iterator_item; /* next in each iterator */ + const git_index_entry **cur_items; /* current path in each iter */ + const git_index_entry *first_match; + size_t i, j; + int error = 0; + + iterator_item = git__calloc(cnt, sizeof(git_index_entry *)); + cur_items = git__calloc(cnt, sizeof(git_index_entry *)); + + GITERR_CHECK_ALLOC(iterator_item); + GITERR_CHECK_ALLOC(cur_items); + + /* Set up the iterators */ + for (i = 0; i < cnt; i++) { + error = git_iterator_current(&iterator_item[i], iterators[i]); + + if (error < 0 && error != GIT_ITEROVER) + goto done; + } + + while (true) { + for (i = 0; i < cnt; i++) + cur_items[i] = NULL; + + first_match = NULL; + + /* Find the next path(s) to consume from each iterator */ + for (i = 0; i < cnt; i++) { + if (iterator_item[i] == NULL) + continue; + + if (first_match == NULL) { + first_match = iterator_item[i]; + cur_items[i] = iterator_item[i]; + } else { + int path_diff = git_index_entry_cmp(iterator_item[i], first_match); + + if (path_diff < 0) { + /* Found an index entry that sorts before the one we're + * looking at. Forget that we've seen the other and + * look at the other iterators for this path. + */ + for (j = 0; j < i; j++) + cur_items[j] = NULL; + + first_match = iterator_item[i]; + cur_items[i] = iterator_item[i]; + } else if (path_diff == 0) { + cur_items[i] = iterator_item[i]; + } + } + } + + if (first_match == NULL) + break; + + if ((error = cb(cur_items, data)) != 0) + goto done; + + /* Advance each iterator that participated */ + for (i = 0; i < cnt; i++) { + if (cur_items[i] == NULL) + continue; + + error = git_iterator_advance(&iterator_item[i], iterators[i]); + + if (error < 0 && error != GIT_ITEROVER) + goto done; + } + } + +done: + git__free(iterator_item); + git__free(cur_items); + + if (error == GIT_ITEROVER) + error = 0; + + return error; +} diff --git a/src/iterator.h b/src/iterator.h index db1f325a737..893e5db5045 100644 --- a/src/iterator.h +++ b/src/iterator.h @@ -11,6 +11,7 @@ #include "git2/index.h" #include "vector.h" #include "buffer.h" +#include "ignore.h" typedef struct git_iterator git_iterator; @@ -286,4 +287,26 @@ typedef enum { extern int git_iterator_advance_over_with_status( const git_index_entry **entry, git_iterator_status_t *status, git_iterator *iter); +/** + * Retrieve the index stored in the iterator. + * + * Only implemented for the workdir iterator + */ +extern int git_iterator_index(git_index **out, git_iterator *iter); + +typedef int (*git_iterator_walk_cb)( + const git_index_entry **entries, + void *data); + +/** + * Walk the given iterators in lock-step. The given callback will be + * called for each unique path, with the index entry in each iterator + * (or NULL if the given iterator does not contain that path). + */ +extern int git_iterator_walk( + git_iterator **iterators, + size_t cnt, + git_iterator_walk_cb cb, + void *data); + #endif diff --git a/src/merge.c b/src/merge.c index 517d317de05..9d6252ea81a 100644 --- a/src/merge.c +++ b/src/merge.c @@ -1449,6 +1449,34 @@ static int merge_diff_list_insert_unmodified( return error; } +struct merge_diff_find_data { + git_merge_diff_list *diff_list; + struct merge_diff_df_data df_data; +}; + +static int queue_difference(const git_index_entry **entries, void *data) +{ + struct merge_diff_find_data *find_data = data; + bool item_modified = false; + size_t i; + + if (!entries[0] || !entries[1] || !entries[2]) { + item_modified = true; + } else { + for (i = 1; i < 3; i++) { + if (index_entry_cmp(entries[0], entries[i]) != 0) { + item_modified = true; + break; + } + } + } + + return item_modified ? + merge_diff_list_insert_conflict( + find_data->diff_list, &find_data->df_data, entries) : + merge_diff_list_insert_unmodified(find_data->diff_list, entries); +} + int git_merge_diff_list__find_differences( git_merge_diff_list *diff_list, git_iterator *ancestor_iter, @@ -1456,93 +1484,9 @@ int git_merge_diff_list__find_differences( git_iterator *their_iter) { git_iterator *iterators[3] = { ancestor_iter, our_iter, their_iter }; - const git_index_entry *items[3] = {0}, *best_cur_item, *cur_items[3]; - git_vector_cmp entry_compare = git_index_entry_cmp; - struct merge_diff_df_data df_data = {0}; - int cur_item_modified; - size_t i, j; - int error = 0; - - assert(diff_list && (our_iter || their_iter)); - - /* Set up the iterators */ - for (i = 0; i < 3; i++) { - error = git_iterator_current(&items[i], iterators[i]); - - if (error < 0 && error != GIT_ITEROVER) - goto done; - } - - while (true) { - for (i = 0; i < 3; i++) - cur_items[i] = NULL; - - best_cur_item = NULL; - cur_item_modified = 0; - - /* Find the next path(s) to consume from each iterator */ - for (i = 0; i < 3; i++) { - if (items[i] == NULL) { - cur_item_modified = 1; - continue; - } - - if (best_cur_item == NULL) { - best_cur_item = items[i]; - cur_items[i] = items[i]; - } else { - int path_diff = entry_compare(items[i], best_cur_item); - - if (path_diff < 0) { - /* - * Found an item that sorts before our current item, make - * our current item this one. - */ - for (j = 0; j < i; j++) - cur_items[j] = NULL; - - cur_item_modified = 1; - best_cur_item = items[i]; - cur_items[i] = items[i]; - } else if (path_diff > 0) { - /* No entry for the current item, this is modified */ - cur_item_modified = 1; - } else if (path_diff == 0) { - cur_items[i] = items[i]; - - if (!cur_item_modified) - cur_item_modified = index_entry_cmp(best_cur_item, items[i]); - } - } - } - - if (best_cur_item == NULL) - break; - - if (cur_item_modified) - error = merge_diff_list_insert_conflict(diff_list, &df_data, cur_items); - else - error = merge_diff_list_insert_unmodified(diff_list, cur_items); - if (error < 0) - goto done; + struct merge_diff_find_data find_data = { diff_list }; - /* Advance each iterator that participated */ - for (i = 0; i < 3; i++) { - if (cur_items[i] == NULL) - continue; - - error = git_iterator_advance(&items[i], iterators[i]); - - if (error < 0 && error != GIT_ITEROVER) - goto done; - } - } - -done: - if (error == GIT_ITEROVER) - error = 0; - - return error; + return git_iterator_walk(iterators, 3, queue_difference, &find_data); } git_merge_diff_list *git_merge_diff_list__alloc(git_repository *repo) diff --git a/src/object.c b/src/object.c index a178e0ed38a..1073559fd12 100644 --- a/src/object.c +++ b/src/object.c @@ -129,10 +129,10 @@ int git_object_lookup_prefix( if (error < 0) return error; - if (len > GIT_OID_RAWSZ) - len = GIT_OID_RAWSZ; + if (len > GIT_OID_HEXSZ) + len = GIT_OID_HEXSZ; - if (len == GIT_OID_RAWSZ) { + if (len == GIT_OID_HEXSZ) { git_cached_obj *cached = NULL; /* We want to match the full id : we can first look up in the cache, @@ -172,9 +172,9 @@ int git_object_lookup_prefix( memcpy(short_oid.id, id->id, (len + 1) / 2); if (len % 2) short_oid.id[len / 2] &= 0xF0; - memset(short_oid.id + (len + 1) / 2, 0, (GIT_OID_RAWSZ - len) / 2); + memset(short_oid.id + (len + 1) / 2, 0, (GIT_OID_HEXSZ - len) / 2); - /* If len < GIT_OID_RAWSZ (a strict short oid was given), we have + /* If len < GIT_OID_HEXSZ (a strict short oid was given), we have * 2 options : * - We always search in the cache first. If we find that short oid is * ambiguous, we can stop. But in all the other cases, we must then diff --git a/src/odb.c b/src/odb.c index 7a718f5d65b..b2d635109cb 100644 --- a/src/odb.c +++ b/src/odb.c @@ -53,7 +53,7 @@ static int load_alternates(git_odb *odb, const char *objects_dir, int alternate_ int git_odb__format_object_header(char *hdr, size_t n, git_off_t obj_len, git_otype obj_type) { const char *type_str = git_object_type2string(obj_type); - int len = p_snprintf(hdr, n, "%s %lld", type_str, obj_len); + int len = p_snprintf(hdr, n, "%s %lld", type_str, (long long)obj_len); assert(len > 0 && len <= (int)n); return len+1; } diff --git a/src/openssl_stream.c b/src/openssl_stream.c index 9b2d5951cfd..958252e9f66 100644 --- a/src/openssl_stream.c +++ b/src/openssl_stream.c @@ -16,6 +16,10 @@ #include "netops.h" #include "git2/transport.h" +#ifdef GIT_CURL +# include "curl_stream.h" +#endif + #ifndef GIT_WIN32 # include # include @@ -25,6 +29,79 @@ #include #include #include +#include + +static int bio_create(BIO *b) +{ + b->init = 1; + b->num = 0; + b->ptr = NULL; + b->flags = 0; + + return 1; +} + +static int bio_destroy(BIO *b) +{ + if (!b) + return 0; + + b->init = 0; + b->num = 0; + b->ptr = NULL; + b->flags = 0; + + return 1; +} + +static int bio_read(BIO *b, char *buf, int len) +{ + git_stream *io = (git_stream *) b->ptr; + return (int) git_stream_read(io, buf, len); +} + +static int bio_write(BIO *b, const char *buf, int len) +{ + git_stream *io = (git_stream *) b->ptr; + return (int) git_stream_write(io, buf, len, 0); +} + +static long bio_ctrl(BIO *b, int cmd, long num, void *ptr) +{ + GIT_UNUSED(b); + GIT_UNUSED(num); + GIT_UNUSED(ptr); + + if (cmd == BIO_CTRL_FLUSH) + return 1; + + return 0; +} + +static int bio_gets(BIO *b, char *buf, int len) +{ + GIT_UNUSED(b); + GIT_UNUSED(buf); + GIT_UNUSED(len); + return -1; +} + +static int bio_puts(BIO *b, const char *str) +{ + return bio_write(b, str, strlen(str)); +} + +static BIO_METHOD git_stream_bio_method = { + BIO_TYPE_SOURCE_SINK, + "git_stream", + bio_write, + bio_read, + bio_puts, + bio_gets, + bio_ctrl, + bio_create, + bio_destroy +}; static int ssl_set_error(SSL *ssl, int error) { @@ -224,7 +301,8 @@ static int verify_server_cert(SSL *ssl, const char *host) typedef struct { git_stream parent; - git_socket_stream *socket; + git_stream *io; + char *host; SSL *ssl; git_cert_x509 cert_info; } openssl_stream; @@ -234,23 +312,24 @@ int openssl_close(git_stream *stream); int openssl_connect(git_stream *stream) { int ret; + BIO *bio; openssl_stream *st = (openssl_stream *) stream; - if ((ret = git_stream_connect((git_stream *)st->socket)) < 0) + if ((ret = git_stream_connect(st->io)) < 0) return ret; - if ((ret = SSL_set_fd(st->ssl, st->socket->s)) <= 0) { - openssl_close((git_stream *) st); - return ssl_set_error(st->ssl, ret); - } + bio = BIO_new(&git_stream_bio_method); + GITERR_CHECK_ALLOC(bio); + bio->ptr = st->io; + SSL_set_bio(st->ssl, bio, bio); /* specify the host in case SNI is needed */ - SSL_set_tlsext_host_name(st->ssl, st->socket->host); + SSL_set_tlsext_host_name(st->ssl, st->host); if ((ret = SSL_connect(st->ssl)) <= 0) return ssl_set_error(st->ssl, ret); - return verify_server_cert(st->ssl, st->socket->host); + return verify_server_cert(st->ssl, st->host); } int openssl_certificate(git_cert **out, git_stream *stream) @@ -287,6 +366,13 @@ int openssl_certificate(git_cert **out, git_stream *stream) return 0; } +static int openssl_set_proxy(git_stream *stream, const char *proxy_url) +{ + openssl_stream *st = (openssl_stream *) stream; + + return git_stream_set_proxy(st->io, proxy_url); +} + ssize_t openssl_write(git_stream *stream, const char *data, size_t len, int flags) { openssl_stream *st = (openssl_stream *) stream; @@ -320,27 +406,35 @@ int openssl_close(git_stream *stream) if ((ret = ssl_teardown(st->ssl)) < 0) return -1; - return git_stream_close((git_stream *)st->socket); + return git_stream_close(st->io); } void openssl_free(git_stream *stream) { openssl_stream *st = (openssl_stream *) stream; + git__free(st->host); git__free(st->cert_info.data); - git_stream_free((git_stream *) st->socket); + git_stream_free(st->io); git__free(st); } int git_openssl_stream_new(git_stream **out, const char *host, const char *port) { + int error; openssl_stream *st; st = git__calloc(1, sizeof(openssl_stream)); GITERR_CHECK_ALLOC(st); - if (git_socket_stream_new((git_stream **) &st->socket, host, port)) - return -1; +#ifdef GIT_CURL + error = git_curl_stream_new(&st->io, host, port); +#else + error = git_socket_stream_new(&st->io, host, port); +#endif + + if (error < 0) + return error; st->ssl = SSL_new(git__ssl_ctx); if (st->ssl == NULL) { @@ -348,10 +442,15 @@ int git_openssl_stream_new(git_stream **out, const char *host, const char *port) return -1; } + st->host = git__strdup(host); + GITERR_CHECK_ALLOC(st->host); + st->parent.version = GIT_STREAM_VERSION; st->parent.encrypted = 1; + st->parent.proxy_support = git_stream_supports_proxy(st->io); st->parent.connect = openssl_connect; st->parent.certificate = openssl_certificate; + st->parent.set_proxy = openssl_set_proxy; st->parent.read = openssl_read; st->parent.write = openssl_write; st->parent.close = openssl_close; diff --git a/src/path.c b/src/path.c index c04b5062241..2558058dd8b 100644 --- a/src/path.c +++ b/src/path.c @@ -640,7 +640,7 @@ static bool _check_dir_contents( /* leave base valid even if we could not make space for subdir */ if (GIT_ADD_SIZET_OVERFLOW(&alloc_size, dir_size, sub_size) || GIT_ADD_SIZET_OVERFLOW(&alloc_size, alloc_size, 2) || - git_buf_try_grow(dir, alloc_size, false, false) < 0) + git_buf_try_grow(dir, alloc_size, false) < 0) return false; /* save excursion */ @@ -847,7 +847,7 @@ int git_path_make_relative(git_buf *path, const char *parent) /* save the offset as we might realllocate the pointer */ offset = p - path->ptr; - if (git_buf_try_grow(path, alloclen, 1, 0) < 0) + if (git_buf_try_grow(path, alloclen, 1) < 0) return -1; p = path->ptr + offset; @@ -891,7 +891,7 @@ void git_path_iconv_clear(git_path_iconv_t *ic) int git_path_iconv(git_path_iconv_t *ic, const char **in, size_t *inlen) { - char *nfd = *in, *nfc; + char *nfd = (char*)*in, *nfc; size_t nfdlen = *inlen, nfclen, wantlen = nfdlen, alloclen, rv; int retry = 1; diff --git a/src/refspec.c b/src/refspec.c index 961f939c6af..f92a6d2b617 100644 --- a/src/refspec.c +++ b/src/refspec.c @@ -142,6 +142,7 @@ int git_refspec__parse(git_refspec *refspec, const char *input, bool is_fetch) giterr_set( GITERR_INVALID, "'%s' is not a valid refspec.", input); + git_refspec__free(refspec); return -1; } @@ -153,6 +154,8 @@ void git_refspec__free(git_refspec *refspec) git__free(refspec->src); git__free(refspec->dst); git__free(refspec->string); + + memset(refspec, 0x0, sizeof(git_refspec)); } const char *git_refspec_src(const git_refspec *refspec) diff --git a/src/remote.c b/src/remote.c index 7c2d9993765..f31fc150a7c 100644 --- a/src/remote.c +++ b/src/remote.c @@ -985,7 +985,7 @@ int git_remote_fetch( if (opts && opts->prune == GIT_FETCH_PRUNE) prune = true; - else if (opts && opts->prune == GIT_FETCH_PRUNE_FALLBACK && remote->prune_refs) + else if (opts && opts->prune == GIT_FETCH_PRUNE_UNSPECIFIED && remote->prune_refs) prune = true; else if (opts && opts->prune == GIT_FETCH_NO_PRUNE) prune = false; @@ -1342,9 +1342,20 @@ static int update_tips_for_spec( } else { continue; } - } else if (git_refspec_src_matches(spec, head->name) && spec->dst) { - if (git_refspec_transform(&refname, spec, head->name) < 0) - goto on_error; + } else if (git_refspec_src_matches(spec, head->name)) { + if (spec->dst) { + if (git_refspec_transform(&refname, spec, head->name) < 0) + goto on_error; + } else { + /* + * no rhs mans store it in FETCH_HEAD, even if we don't + update anything else. + */ + if ((error = git_vector_insert(&update_heads, head)) < 0) + goto on_error; + + continue; + } } else { continue; } @@ -1539,7 +1550,7 @@ int git_remote_update_tips( if ((error = ls_to_vector(&refs, remote)) < 0) goto out; - if (download_tags == GIT_REMOTE_DOWNLOAD_TAGS_FALLBACK) + if (download_tags == GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED) tagopt = remote->download_tags; else tagopt = download_tags; diff --git a/src/repository.c b/src/repository.c index c608fa0b83a..82d998124f0 100644 --- a/src/repository.c +++ b/src/repository.c @@ -32,6 +32,8 @@ # include "win32/w32_util.h" #endif +static int check_repositoryformatversion(git_config *config); + #define GIT_FILE_CONTENT_PREFIX "gitdir:" #define GIT_BRANCH_MASTER "master" @@ -109,7 +111,6 @@ void git_repository__cleanup(git_repository *repo) git_cache_clear(&repo->objects); git_attr_cache_flush(repo); - git_submodule_cache_free(repo); set_config(repo, NULL); set_index(repo, NULL); @@ -489,6 +490,7 @@ int git_repository_open_ext( git_buf path = GIT_BUF_INIT, parent = GIT_BUF_INIT, link_path = GIT_BUF_INIT; git_repository *repo; + git_config *config = NULL; if (repo_ptr) *repo_ptr = NULL; @@ -510,22 +512,36 @@ int git_repository_open_ext( GITERR_CHECK_ALLOC(repo->path_gitlink); } + /* + * We'd like to have the config, but git doesn't particularly + * care if it's not there, so we need to deal with that. + */ + + error = git_repository_config_snapshot(&config, repo); + if (error < 0 && error != GIT_ENOTFOUND) + goto cleanup; + + if (config && (error = check_repositoryformatversion(config)) < 0) + goto cleanup; + if ((flags & GIT_REPOSITORY_OPEN_BARE) != 0) repo->is_bare = 1; else { - git_config *config = NULL; - if ((error = git_repository_config_snapshot(&config, repo)) < 0 || - (error = load_config_data(repo, config)) < 0 || - (error = load_workdir(repo, config, &parent)) < 0) - git_repository_free(repo); - - git_config_free(config); + if (config && + ((error = load_config_data(repo, config)) < 0 || + (error = load_workdir(repo, config, &parent)) < 0)) + goto cleanup; } - if (!error) - *repo_ptr = repo; +cleanup: git_buf_free(&parent); + git_config_free(config); + + if (error < 0) + git_repository_free(repo); + else + *repo_ptr = repo; return error; } @@ -931,9 +947,14 @@ bool git_repository__reserved_names( static int check_repositoryformatversion(git_config *config) { - int version; + int version, error; - if (git_config_get_int32(&version, config, "core.repositoryformatversion") < 0) + error = git_config_get_int32(&version, config, "core.repositoryformatversion"); + /* git ignores this if the config variable isn't there */ + if (error == GIT_ENOTFOUND) + return 0; + + if (error < 0) return -1; if (GIT_REPO_VERSION < version) { diff --git a/src/repository.h b/src/repository.h index 253287368b0..fd679b48369 100644 --- a/src/repository.h +++ b/src/repository.h @@ -121,7 +121,6 @@ struct git_repository { git_refdb *_refdb; git_config *_config; git_index *_index; - git_submodule_cache *_submodules; git_cache objects; git_attr_cache *attrcache; diff --git a/src/stash.c b/src/stash.c index a7a288c2558..acf89442add 100644 --- a/src/stash.c +++ b/src/stash.c @@ -22,6 +22,7 @@ #include "signature.h" #include "iterator.h" #include "merge.h" +#include "diff.h" static int create_error(int error, const char *msg) { @@ -292,6 +293,25 @@ static int commit_untracked( return error; } +static git_diff_delta *stash_delta_merge( + const git_diff_delta *a, + const git_diff_delta *b, + git_pool *pool) +{ + /* Special case for stash: if a file is deleted in the index, but exists + * in the working tree, we need to stash the workdir copy for the workdir. + */ + if (a->status == GIT_DELTA_DELETED && b->status == GIT_DELTA_UNTRACKED) { + git_diff_delta *dup = git_diff__delta_dup(b, pool); + + if (dup) + dup->status = GIT_DELTA_MODIFIED; + return dup; + } + + return git_diff__merge_like_cgit(a, b, pool); +} + static int build_workdir_tree( git_tree **tree_out, git_index *index, @@ -299,17 +319,19 @@ static int build_workdir_tree( { git_repository *repo = git_index_owner(index); git_tree *b_tree = NULL; - git_diff *diff = NULL; + git_diff *diff = NULL, *idx_to_wd = NULL; git_diff_options opts = GIT_DIFF_OPTIONS_INIT; struct stash_update_rules data = {0}; int error; - opts.flags = GIT_DIFF_IGNORE_SUBMODULES; + opts.flags = GIT_DIFF_IGNORE_SUBMODULES | GIT_DIFF_INCLUDE_UNTRACKED; if ((error = git_commit_tree(&b_tree, b_commit)) < 0) goto cleanup; - if ((error = git_diff_tree_to_workdir(&diff, repo, b_tree, &opts)) < 0) + if ((error = git_diff_tree_to_index(&diff, repo, b_tree, index, &opts)) < 0 || + (error = git_diff_index_to_workdir(&idx_to_wd, repo, index, &opts)) < 0 || + (error = git_diff__merge(diff, idx_to_wd, stash_delta_merge)) < 0) goto cleanup; data.include_changed = true; @@ -320,6 +342,7 @@ static int build_workdir_tree( error = build_tree_from_index(tree_out, index); cleanup: + git_diff_free(idx_to_wd); git_diff_free(diff); git_tree_free(b_tree); @@ -648,6 +671,31 @@ static int retrieve_stash_trees( return error; } +static int merge_indexes( + git_index **out, + git_repository *repo, + git_tree *ancestor_tree, + git_index *ours_index, + git_index *theirs_index) +{ + git_iterator *ancestor = NULL, *ours = NULL, *theirs = NULL; + const git_iterator_flag_t flags = GIT_ITERATOR_DONT_IGNORE_CASE; + int error; + + if ((error = git_iterator_for_tree(&ancestor, ancestor_tree, flags, NULL, NULL)) < 0 || + (error = git_iterator_for_index(&ours, ours_index, flags, NULL, NULL)) < 0 || + (error = git_iterator_for_index(&theirs, theirs_index, flags, NULL, NULL)) < 0) + goto done; + + error = git_merge__iterators(out, repo, ancestor, ours, theirs, NULL); + +done: + git_iterator_free(ancestor); + git_iterator_free(ours); + git_iterator_free(theirs); + return error; +} + static int merge_index_and_tree( git_index **out, git_repository *repo, @@ -710,6 +758,69 @@ int git_stash_apply_init_options(git_stash_apply_options *opts, unsigned int ver } \ } while(false); +static int ensure_clean_index(git_repository *repo, git_index *index) +{ + git_tree *head_tree = NULL; + git_diff *index_diff = NULL; + int error = 0; + + if ((error = git_repository_head_tree(&head_tree, repo)) < 0 || + (error = git_diff_tree_to_index( + &index_diff, repo, head_tree, index, NULL)) < 0) + goto done; + + if (git_diff_num_deltas(index_diff) > 0) { + giterr_set(GITERR_STASH, "%d uncommitted changes exist in the index", + git_diff_num_deltas(index_diff)); + error = GIT_EUNCOMMITTED; + } + +done: + git_diff_free(index_diff); + git_tree_free(head_tree); + return error; +} + +static int stage_new_file(const git_index_entry **entries, void *data) +{ + git_index *index = data; + + if(entries[0] == NULL) + return git_index_add(index, entries[1]); + else + return git_index_add(index, entries[0]); +} + +static int stage_new_files( + git_index **out, + git_tree *parent_tree, + git_tree *tree) +{ + git_iterator *iterators[2] = { NULL, NULL }; + git_index *index = NULL; + int error; + + if ((error = git_index_new(&index)) < 0 || + (error = git_iterator_for_tree(&iterators[0], parent_tree, + GIT_ITERATOR_DONT_IGNORE_CASE, NULL, NULL)) < 0 || + (error = git_iterator_for_tree(&iterators[1], tree, + GIT_ITERATOR_DONT_IGNORE_CASE, NULL, NULL)) < 0) + goto done; + + error = git_iterator_walk(iterators, 2, stage_new_file, index); + +done: + if (error < 0) + git_index_free(index); + else + *out = index; + + git_iterator_free(iterators[0]); + git_iterator_free(iterators[1]); + + return error; +} + int git_stash_apply( git_repository *repo, size_t index, @@ -723,6 +834,7 @@ int git_stash_apply( git_tree *index_tree = NULL; git_tree *index_parent_tree = NULL; git_tree *untracked_tree = NULL; + git_index *stash_adds = NULL; git_index *repo_index = NULL; git_index *unstashed_index = NULL; git_index *modified_index = NULL; @@ -752,6 +864,9 @@ int git_stash_apply( NOTIFY_PROGRESS(opts, GIT_STASH_APPLY_PROGRESS_ANALYZE_INDEX); + if ((error = ensure_clean_index(repo, repo_index)) < 0) + goto cleanup; + /* Restore index if required */ if ((opts.flags & GIT_STASH_APPLY_REINSTATE_INDEX) && git_oid_cmp(git_tree_id(stash_parent_tree), git_tree_id(index_tree))) { @@ -764,6 +879,16 @@ int git_stash_apply( error = GIT_ECONFLICT; goto cleanup; } + + /* Otherwise, stage any new files in the stash tree. (Note: their + * previously unstaged contents are staged, not the previously staged.) + */ + } else if ((opts.flags & GIT_STASH_APPLY_REINSTATE_INDEX) == 0) { + if ((error = stage_new_files( + &stash_adds, stash_parent_tree, stash_tree)) < 0 || + (error = merge_indexes( + &unstashed_index, repo, stash_parent_tree, repo_index, stash_adds)) < 0) + goto cleanup; } NOTIFY_PROGRESS(opts, GIT_STASH_APPLY_PROGRESS_ANALYZE_MODIFIED); @@ -819,10 +944,13 @@ int git_stash_apply( NOTIFY_PROGRESS(opts, GIT_STASH_APPLY_PROGRESS_DONE); + error = git_index_write(repo_index); + cleanup: git_index_free(untracked_index); git_index_free(modified_index); git_index_free(unstashed_index); + git_index_free(stash_adds); git_index_free(repo_index); git_tree_free(untracked_tree); git_tree_free(index_parent_tree); diff --git a/src/stransport_stream.c b/src/stransport_stream.c index 34c38b22d41..10e19166cd3 100644 --- a/src/stransport_stream.c +++ b/src/stransport_stream.c @@ -14,6 +14,7 @@ #include "git2/transport.h" #include "socket_stream.h" +#include "curl_stream.h" int stransport_error(OSStatus ret) { @@ -115,6 +116,13 @@ int stransport_certificate(git_cert **out, git_stream *stream) return 0; } +int stransport_set_proxy(git_stream *stream, const char *proxy) +{ + stransport_stream *st = (stransport_stream *) stream; + + return git_stream_set_proxy(st->io, proxy); +} + /* * Contrary to typical network IO callbacks, Secure Transport write callback is * expected to write *all* passed data, not just as much as it can, and any @@ -233,7 +241,13 @@ int git_stransport_stream_new(git_stream **out, const char *host, const char *po st = git__calloc(1, sizeof(stransport_stream)); GITERR_CHECK_ALLOC(st); - if ((error = git_socket_stream_new(&st->io, host, port)) < 0){ +#ifdef GIT_CURL + error = git_curl_stream_new(&st->io, host, port); +#else + error = git_socket_stream_new(&st->io, host, port); +#endif + + if (error < 0){ git__free(st); return error; } @@ -256,8 +270,10 @@ int git_stransport_stream_new(git_stream **out, const char *host, const char *po st->parent.version = GIT_STREAM_VERSION; st->parent.encrypted = 1; + st->parent.proxy_support = git_stream_supports_proxy(st->io); st->parent.connect = stransport_connect; st->parent.certificate = stransport_certificate; + st->parent.set_proxy = stransport_set_proxy; st->parent.read = stransport_read; st->parent.write = stransport_write; st->parent.close = stransport_close; diff --git a/src/stream.h b/src/stream.h index d810e704d4d..43fcc3045f5 100644 --- a/src/stream.h +++ b/src/stream.h @@ -30,6 +30,21 @@ GIT_INLINE(int) git_stream_certificate(git_cert **out, git_stream *st) return st->certificate(out, st); } +GIT_INLINE(int) git_stream_supports_proxy(git_stream *st) +{ + return st->proxy_support; +} + +GIT_INLINE(int) git_stream_set_proxy(git_stream *st, const char *proxy_url) +{ + if (!st->proxy_support) { + giterr_set(GITERR_INVALID, "proxy not supported on this stream"); + return -1; + } + + return st->set_proxy(st, proxy_url); +} + GIT_INLINE(ssize_t) git_stream_read(git_stream *st, void *data, size_t len) { return st->read(st, data, len); diff --git a/src/submodule.c b/src/submodule.c index 1139df9733c..17e1a356178 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -87,17 +87,16 @@ __KHASH_IMPL( str, static kh_inline, const char *, void *, 1, str_hash_no_trailing_slash, str_equal_no_trailing_slash) -static int submodule_cache_init(git_repository *repo, int refresh); -static void submodule_cache_free(git_submodule_cache *cache); - -static git_config_backend *open_gitmodules(git_submodule_cache *, int gitmod); +static int submodule_alloc(git_submodule **out, git_repository *repo, const char *name); +static git_config_backend *open_gitmodules(git_repository *repo, int gitmod); static int get_url_base(git_buf *url, git_repository *repo); static int lookup_head_remote_key(git_buf *remote_key, git_repository *repo); -static int submodule_get(git_submodule **, git_submodule_cache *, const char *, const char *); static int submodule_load_from_config(const git_config_entry *, void *); static int submodule_load_from_wd_lite(git_submodule *); static void submodule_get_index_status(unsigned int *, git_submodule *); static void submodule_get_wd_status(unsigned int *, git_submodule *, git_repository *, git_submodule_ignore_t); +static void submodule_update_from_index_entry(git_submodule *sm, const git_index_entry *ie); +static void submodule_update_from_head_data(git_submodule *sm, mode_t mode, const git_oid *id); static int submodule_cmp(const void *a, const void *b) { @@ -111,69 +110,10 @@ static int submodule_config_key_trunc_puts(git_buf *key, const char *suffix) return git_buf_puts(key, suffix); } -/* lookup submodule or return ENOTFOUND if it doesn't exist */ -static int submodule_lookup( - git_submodule **out, - git_submodule_cache *cache, - const char *name, - const char *alternate) -{ - khiter_t pos; - - /* lock cache */ - - pos = git_strmap_lookup_index(cache->submodules, name); - - if (!git_strmap_valid_index(cache->submodules, pos) && alternate) - pos = git_strmap_lookup_index(cache->submodules, alternate); - - if (!git_strmap_valid_index(cache->submodules, pos)) { - /* unlock cache */ - return GIT_ENOTFOUND; /* don't set error - caller will cope */ - } - - if (out != NULL) { - git_submodule *sm = git_strmap_value_at(cache->submodules, pos); - GIT_REFCOUNT_INC(sm); - *out = sm; - } - - /* unlock cache */ - - return 0; -} - -/* clear a set of flags on all submodules */ -static void submodule_cache_clear_flags( - git_submodule_cache *cache, uint32_t mask) -{ - git_submodule *sm; - uint32_t inverted_mask = ~mask; - - git_strmap_foreach_value(cache->submodules, sm, { - sm->flags &= inverted_mask; - }); -} - /* * PUBLIC APIS */ -bool git_submodule__is_submodule(git_repository *repo, const char *name) -{ - git_strmap *map; - - if (submodule_cache_init(repo, CACHE_OK) < 0) { - giterr_clear(); - return false; - } - - if (!repo->_submodules || !(map = repo->_submodules->submodules)) - return false; - - return git_strmap_valid_index(map, git_strmap_lookup_index(map, name)); -} - static void submodule_set_lookup_error(int error, const char *name) { if (!error) @@ -184,22 +124,24 @@ static void submodule_set_lookup_error(int error, const char *name) "Submodule '%s' has not been added yet", name); } -int git_submodule__lookup( - git_submodule **out, /* NULL if user only wants to test existence */ - git_repository *repo, - const char *name) /* trailing slash is allowed */ -{ - int error; - - assert(repo && name); +typedef struct { + const char *path; + char *name; +} fbp_data; - if ((error = submodule_cache_init(repo, CACHE_OK)) < 0) - return error; +static int find_by_path(const git_config_entry *entry, void *payload) +{ + fbp_data *data = payload; - if ((error = submodule_lookup(out, repo->_submodules, name, NULL)) < 0) - submodule_set_lookup_error(error, name); + if (!strcmp(entry->value, data->path)) { + const char *fdot, *ldot; + fdot = strchr(entry->name, '.'); + ldot = strrchr(entry->name, '.'); + data->name = git__strndup(fdot + 1, ldot - fdot - 1); + GITERR_CHECK_ALLOC(data->name); + } - return error; + return 0; } int git_submodule_lookup( @@ -208,20 +150,79 @@ int git_submodule_lookup( const char *name) /* trailing slash is allowed */ { int error; + unsigned int location; + git_submodule *sm; assert(repo && name); - if ((error = submodule_cache_init(repo, CACHE_REFRESH)) < 0) + if ((error = submodule_alloc(&sm, repo, name)) < 0) + return error; + + if ((error = git_submodule_reload(sm, false)) < 0) { + git_submodule_free(sm); + return error; + } + + if ((error = git_submodule_location(&location, sm)) < 0) { + git_submodule_free(sm); + return error; + } + + /* If it's not configured or we're looking by path */ + if (location == 0 || location == GIT_SUBMODULE_STATUS_IN_WD) { + git_config_backend *mods; + const char *pattern = "submodule\\..*\\.path"; + git_buf path = GIT_BUF_INIT; + fbp_data data = { NULL, NULL }; + + git_buf_puts(&path, name); + while (path.ptr[path.size-1] == '/') { + path.ptr[--path.size] = '\0'; + } + data.path = path.ptr; + + mods = open_gitmodules(repo, GITMODULES_EXISTING); + + if (mods) + error = git_config_file_foreach_match(mods, pattern, find_by_path, &data); + + git_config_file_free(mods); + + if (error < 0) { + git_submodule_free(sm); + return error; + } + + if (data.name) { + git__free(sm->name); + sm->name = data.name; + sm->path = git_buf_detach(&path); + + /* Try to load again with the right name */ + if ((error = git_submodule_reload(sm, false)) < 0) { + git_submodule_free(sm); + return error; + } + } + + git_buf_free(&path); + } + + if ((error = git_submodule_location(&location, sm)) < 0) { + git_submodule_free(sm); return error; + } - if ((error = submodule_lookup(out, repo->_submodules, name, NULL)) < 0) { + /* If we still haven't found it, do the WD check */ + if (location == 0 || location == GIT_SUBMODULE_STATUS_IN_WD) { + git_submodule_free(sm); + error = GIT_ENOTFOUND; - /* check if a plausible submodule exists at path */ + /* If it's not configured, we still check if there's a repo at the path */ if (git_repository_workdir(repo)) { git_buf path = GIT_BUF_INIT; - if (git_buf_join3(&path, - '/', git_repository_workdir(repo), name, DOT_GIT) < 0) + '/', git_repository_workdir(repo), name, DOT_GIT) < 0) return -1; if (git_path_exists(path.ptr)) @@ -231,9 +232,15 @@ int git_submodule_lookup( } submodule_set_lookup_error(error, name); + return error; } - return error; + if (out) + *out = sm; + else + git_submodule_free(sm); + + return 0; } static void submodule_free_dup(void *sm) @@ -241,41 +248,221 @@ static void submodule_free_dup(void *sm) git_submodule_free(sm); } +static int submodule_get_or_create(git_submodule **out, git_repository *repo, git_strmap *map, const char *name) +{ + int error = 0; + khiter_t pos; + git_submodule *sm = NULL; + + pos = git_strmap_lookup_index(map, name); + if (git_strmap_valid_index(map, pos)) { + sm = git_strmap_value_at(map, pos); + goto done; + } + + /* if the submodule doesn't exist yet in the map, create it */ + if ((error = submodule_alloc(&sm, repo, name)) < 0) + return error; + + pos = kh_put(str, map, sm->name, &error); + /* nobody can beat us to adding it */ + assert(error != 0); + if (error < 0) { + git_submodule_free(sm); + return error; + } + + git_strmap_set_value_at(map, pos, sm); + +done: + GIT_REFCOUNT_INC(sm); + *out = sm; + return 0; +} + +static int submodules_from_index(git_strmap *map, git_index *idx) +{ + int error; + git_iterator *i; + const git_index_entry *entry; + + if ((error = git_iterator_for_index(&i, idx, 0, NULL, NULL)) < 0) + return error; + + while (!(error = git_iterator_advance(&entry, i))) { + khiter_t pos = git_strmap_lookup_index(map, entry->path); + git_submodule *sm; + + if (git_strmap_valid_index(map, pos)) { + sm = git_strmap_value_at(map, pos); + + if (S_ISGITLINK(entry->mode)) + submodule_update_from_index_entry(sm, entry); + else + sm->flags |= GIT_SUBMODULE_STATUS__INDEX_NOT_SUBMODULE; + } else if (S_ISGITLINK(entry->mode)) { + if (!submodule_get_or_create(&sm, git_index_owner(idx), map, entry->path)) { + submodule_update_from_index_entry(sm, entry); + git_submodule_free(sm); + } + } + } + + if (error == GIT_ITEROVER) + error = 0; + + git_iterator_free(i); + + return error; +} + +static int submodules_from_head(git_strmap *map, git_tree *head) +{ + int error; + git_iterator *i; + const git_index_entry *entry; + + if ((error = git_iterator_for_tree(&i, head, 0, NULL, NULL)) < 0) + return error; + + while (!(error = git_iterator_advance(&entry, i))) { + khiter_t pos = git_strmap_lookup_index(map, entry->path); + git_submodule *sm; + + if (git_strmap_valid_index(map, pos)) { + sm = git_strmap_value_at(map, pos); + + if (S_ISGITLINK(entry->mode)) + submodule_update_from_head_data(sm, entry->mode, &entry->id); + else + sm->flags |= GIT_SUBMODULE_STATUS__HEAD_NOT_SUBMODULE; + } else if (S_ISGITLINK(entry->mode)) { + if (!submodule_get_or_create(&sm, git_tree_owner(head), map, entry->path)) { + submodule_update_from_head_data( + sm, entry->mode, &entry->id); + git_submodule_free(sm); + } + } + } + + if (error == GIT_ITEROVER) + error = 0; + + git_iterator_free(i); + + return error; +} + +/* If have_sm is true, sm is populated, otherwise map an repo are. */ +typedef struct { + int have_sm; + git_submodule *sm; + git_strmap *map; + git_repository *repo; +} lfc_data; + +static int all_submodules(git_repository *repo, git_strmap *map) +{ + int error = 0; + git_index *idx = NULL; + git_tree *head = NULL; + const char *wd = NULL; + git_buf path = GIT_BUF_INIT; + git_submodule *sm; + git_config_backend *mods = NULL; + uint32_t mask; + + assert(repo && map); + + /* get sources that we will need to check */ + if (git_repository_index(&idx, repo) < 0) + giterr_clear(); + if (git_repository_head_tree(&head, repo) < 0) + giterr_clear(); + + wd = git_repository_workdir(repo); + if (wd && (error = git_buf_joinpath(&path, wd, GIT_MODULES_FILE)) < 0) + goto cleanup; + + /* clear submodule flags that are to be refreshed */ + mask = 0; + mask |= GIT_SUBMODULE_STATUS_IN_INDEX | + GIT_SUBMODULE_STATUS__INDEX_FLAGS | + GIT_SUBMODULE_STATUS__INDEX_OID_VALID | + GIT_SUBMODULE_STATUS__INDEX_MULTIPLE_ENTRIES; + + mask |= GIT_SUBMODULE_STATUS_IN_HEAD | + GIT_SUBMODULE_STATUS__HEAD_OID_VALID; + mask |= GIT_SUBMODULE_STATUS_IN_CONFIG; + if (mask != 0) + mask |= GIT_SUBMODULE_STATUS_IN_WD | + GIT_SUBMODULE_STATUS__WD_SCANNED | + GIT_SUBMODULE_STATUS__WD_FLAGS | + GIT_SUBMODULE_STATUS__WD_OID_VALID; + + /* add back submodule information from index */ + if (idx) { + if ((error = submodules_from_index(map, idx)) < 0) + goto cleanup; + } + /* add submodule information from HEAD */ + if (head) { + if ((error = submodules_from_head(map, head)) < 0) + goto cleanup; + } + /* add submodule information from .gitmodules */ + if (wd) { + lfc_data data = { 0 }; + data.map = map; + data.repo = repo; + if ((mods = open_gitmodules(repo, false)) != NULL && + (error = git_config_file_foreach( + mods, submodule_load_from_config, &data)) < 0) + goto cleanup; + } + /* shallow scan submodules in work tree as needed */ + if (wd && mask != 0) { + git_strmap_foreach_value(map, sm, { + submodule_load_from_wd_lite(sm); + }); + } + +cleanup: + git_config_file_free(mods); + /* TODO: if we got an error, mark submodule config as invalid? */ + git_index_free(idx); + git_tree_free(head); + git_buf_free(&path); + return error; +} + int git_submodule_foreach( git_repository *repo, int (*callback)(git_submodule *sm, const char *name, void *payload), void *payload) { + git_vector snapshot = GIT_VECTOR_INIT; + git_strmap *submodules; + git_submodule *sm; int error; size_t i; - git_submodule *sm; - git_submodule_cache *cache; - git_vector snapshot = GIT_VECTOR_INIT; - - assert(repo && callback); - if ((error = submodule_cache_init(repo, CACHE_REFRESH)) < 0) + if ((error = git_strmap_alloc(&submodules)) < 0) return error; - cache = repo->_submodules; - - if (git_mutex_lock(&cache->lock) < 0) { - giterr_set(GITERR_OS, "Unable to acquire lock on submodule cache"); - return -1; - } + if ((error = all_submodules(repo, submodules)) < 0) + goto done; if (!(error = git_vector_init( - &snapshot, kh_size(cache->submodules), submodule_cmp))) { + &snapshot, kh_size(submodules), submodule_cmp))) { - git_strmap_foreach_value(cache->submodules, sm, { + git_strmap_foreach_value(submodules, sm, { if ((error = git_vector_insert(&snapshot, sm)) < 0) break; GIT_REFCOUNT_INC(sm); }); } - git_mutex_unlock(&cache->lock); - if (error < 0) goto done; @@ -293,17 +480,12 @@ int git_submodule_foreach( git_submodule_free(sm); git_vector_free(&snapshot); - return error; -} - -void git_submodule_cache_free(git_repository *repo) -{ - git_submodule_cache *cache; - - assert(repo); + git_strmap_foreach_value(submodules, sm, { + git_submodule_free(sm); + }); + git_strmap_free(submodules); - if ((cache = git__swap(repo->_submodules, NULL)) != NULL) - submodule_cache_free(cache); + return error; } static int submodule_repo_init( @@ -394,7 +576,7 @@ int git_submodule_add_setup( /* update .gitmodules */ - if (!(mods = open_gitmodules(repo->_submodules, GITMODULES_CREATE))) { + if (!(mods = open_gitmodules(repo, GITMODULES_CREATE))) { giterr_set(GITERR_SUBMODULE, "Adding submodules to a bare repository is not supported"); return -1; @@ -430,19 +612,10 @@ int git_submodule_add_setup( goto cleanup; } - /* add submodule to hash and "reload" it */ - - if (git_mutex_lock(&repo->_submodules->lock) < 0) { - giterr_set(GITERR_OS, "Unable to acquire lock on submodule cache"); - error = -1; + if ((error = git_submodule_lookup(&sm, repo, path)) < 0) goto cleanup; - } - - if (!(error = submodule_get(&sm, repo->_submodules, path, NULL)) && - !(error = git_submodule_reload(sm, false))) - error = git_submodule_init(sm, false); - git_mutex_unlock(&repo->_submodules->lock); + error = git_submodule_init(sm, false); cleanup: if (error && sm) { @@ -572,107 +745,15 @@ int git_submodule_add_to_index(git_submodule *sm, int write_index) return error; } -const char *git_submodule_ignore_to_str(git_submodule_ignore_t ignore) -{ - int i; - for (i = 0; i < (int)ARRAY_SIZE(_sm_ignore_map); ++i) - if (_sm_ignore_map[i].map_value == ignore) - return _sm_ignore_map[i].str_match; - return NULL; -} - const char *git_submodule_update_to_str(git_submodule_update_t update) { int i; for (i = 0; i < (int)ARRAY_SIZE(_sm_update_map); ++i) - if (_sm_update_map[i].map_value == update) + if (_sm_update_map[i].map_value == (int)update) return _sm_update_map[i].str_match; return NULL; } -const char *git_submodule_recurse_to_str(git_submodule_recurse_t recurse) -{ - int i; - for (i = 0; i < (int)ARRAY_SIZE(_sm_recurse_map); ++i) - if (_sm_recurse_map[i].map_value == recurse) - return _sm_recurse_map[i].str_match; - return NULL; -} - -int git_submodule_save(git_submodule *submodule) -{ - int error = 0; - git_config_backend *mods; - git_buf key = GIT_BUF_INIT; - const char *val; - - assert(submodule); - - mods = open_gitmodules(submodule->repo->_submodules, GITMODULES_CREATE); - if (!mods) { - giterr_set(GITERR_SUBMODULE, - "Adding submodules to a bare repository is not supported"); - return -1; - } - - if ((error = git_buf_printf(&key, "submodule.%s.", submodule->name)) < 0) - goto cleanup; - - /* save values for path, url, update, ignore, fetchRecurseSubmodules */ - - if ((error = submodule_config_key_trunc_puts(&key, "path")) < 0 || - (error = git_config_file_set_string(mods, key.ptr, submodule->path)) < 0) - goto cleanup; - - if ((error = submodule_config_key_trunc_puts(&key, "url")) < 0 || - (error = git_config_file_set_string(mods, key.ptr, submodule->url)) < 0) - goto cleanup; - - if ((error = submodule_config_key_trunc_puts(&key, "branch")) < 0) - goto cleanup; - if (submodule->branch == NULL) - error = git_config_file_delete(mods, key.ptr); - else - error = git_config_file_set_string(mods, key.ptr, submodule->branch); - if (error == GIT_ENOTFOUND) { - error = 0; - giterr_clear(); - } - if (error < 0) - goto cleanup; - - if (!(error = submodule_config_key_trunc_puts(&key, "update")) && - (val = git_submodule_update_to_str(submodule->update)) != NULL) - error = git_config_file_set_string(mods, key.ptr, val); - if (error < 0) - goto cleanup; - - if (!(error = submodule_config_key_trunc_puts(&key, "ignore")) && - (val = git_submodule_ignore_to_str(submodule->ignore)) != NULL) - error = git_config_file_set_string(mods, key.ptr, val); - if (error < 0) - goto cleanup; - - if (!(error = submodule_config_key_trunc_puts(&key, "fetchRecurseSubmodules")) && - (val = git_submodule_recurse_to_str(submodule->fetch_recurse)) != NULL) - error = git_config_file_set_string(mods, key.ptr, val); - if (error < 0) - goto cleanup; - - /* update internal defaults */ - - submodule->ignore_default = submodule->ignore; - submodule->update_default = submodule->update; - submodule->fetch_recurse_default = submodule->fetch_recurse; - submodule->flags |= GIT_SUBMODULE_STATUS_IN_CONFIG; - -cleanup: - git_config_file_free(mods); - git_buf_free(&key); - - return error; -} - git_repository *git_submodule_owner(git_submodule *submodule) { assert(submodule); @@ -703,19 +784,60 @@ int git_submodule_resolve_url(git_buf *out, git_repository *repo, const char *ur assert(out && repo && url); - git_buf_sanitize(out); + git_buf_sanitize(out); + + if (git_path_is_relative(url)) { + if (!(error = get_url_base(out, repo))) + error = git_path_apply_relative(out, url); + } else if (strchr(url, ':') != NULL || url[0] == '/') { + error = git_buf_sets(out, url); + } else { + giterr_set(GITERR_SUBMODULE, "Invalid format for submodule URL"); + error = -1; + } + + return error; +} + +static int write_var(git_repository *repo, const char *name, const char *var, const char *val) +{ + git_buf key = GIT_BUF_INIT; + git_config_backend *mods; + int error; + + mods = open_gitmodules(repo, GITMODULES_CREATE); + if (!mods) + return -1; + + if ((error = git_buf_printf(&key, "submodule.%s.%s", name, var)) < 0) + goto cleanup; + + if (val) + error = git_config_file_set_string(mods, key.ptr, val); + else + error = git_config_file_delete(mods, key.ptr); + + git_buf_free(&key); + +cleanup: + git_config_file_free(mods); + return error; +} + +static int write_mapped_var(git_repository *repo, const char *name, git_cvar_map *maps, size_t nmaps, const char *var, int ival) +{ + git_cvar_t type; + const char *val; - if (git_path_is_relative(url)) { - if (!(error = get_url_base(out, repo))) - error = git_path_apply_relative(out, url); - } else if (strchr(url, ':') != NULL || url[0] == '/') { - error = git_buf_sets(out, url); - } else { - giterr_set(GITERR_SUBMODULE, "Invalid format for submodule URL"); - error = -1; + if (git_config_lookup_map_enum(&type, &val, maps, nmaps, ival) < 0) { + giterr_set(GITERR_SUBMODULE, "invalid value for %s", var); + return -1; } - return error; + if (type == GIT_CVAR_TRUE) + val = "true"; + + return write_var(repo, name, var, val); } const char *git_submodule_branch(git_submodule *submodule) @@ -724,31 +846,19 @@ const char *git_submodule_branch(git_submodule *submodule) return submodule->branch; } -int git_submodule_set_branch(git_submodule *submodule, const char *branch) +int git_submodule_set_branch(git_repository *repo, const char *name, const char *branch) { - assert(submodule); - git__free(submodule->branch); - submodule->branch = NULL; - - if (branch != NULL) { - submodule->branch = git__strdup(branch); - GITERR_CHECK_ALLOC(submodule->branch); - } + assert(repo && name); - return 0; + return write_var(repo, name, "branch", branch); } -int git_submodule_set_url(git_submodule *submodule, const char *url) +int git_submodule_set_url(git_repository *repo, const char *name, const char *url) { - assert(submodule && url); + assert(repo && name && url); - git__free(submodule->url); - - submodule->url = git__strdup(url); - GITERR_CHECK_ALLOC(submodule->url); - - return 0; + return write_var(repo, name, "url", url); } const git_oid *git_submodule_index_id(git_submodule *submodule) @@ -799,19 +909,11 @@ git_submodule_ignore_t git_submodule_ignore(git_submodule *submodule) GIT_SUBMODULE_IGNORE_NONE : submodule->ignore; } -git_submodule_ignore_t git_submodule_set_ignore( - git_submodule *submodule, git_submodule_ignore_t ignore) +int git_submodule_set_ignore(git_repository *repo, const char *name, git_submodule_ignore_t ignore) { - git_submodule_ignore_t old; - - assert(submodule); - - if (ignore == GIT_SUBMODULE_IGNORE_RESET) - ignore = submodule->ignore_default; + assert(repo && name); - old = submodule->ignore; - submodule->ignore = ignore; - return old; + return write_mapped_var(repo, name, _sm_ignore_map, ARRAY_SIZE(_sm_ignore_map), "ignore", ignore); } git_submodule_update_t git_submodule_update_strategy(git_submodule *submodule) @@ -821,19 +923,11 @@ git_submodule_update_t git_submodule_update_strategy(git_submodule *submodule) GIT_SUBMODULE_UPDATE_CHECKOUT : submodule->update; } -git_submodule_update_t git_submodule_set_update( - git_submodule *submodule, git_submodule_update_t update) +int git_submodule_set_update(git_repository *repo, const char *name, git_submodule_update_t update) { - git_submodule_update_t old; - - assert(submodule); - - if (update == GIT_SUBMODULE_UPDATE_RESET) - update = submodule->update_default; + assert(repo && name); - old = submodule->update; - submodule->update = update; - return old; + return write_mapped_var(repo, name, _sm_update_map, ARRAY_SIZE(_sm_update_map), "update", update); } git_submodule_recurse_t git_submodule_fetch_recurse_submodules( @@ -843,20 +937,11 @@ git_submodule_recurse_t git_submodule_fetch_recurse_submodules( return submodule->fetch_recurse; } -git_submodule_recurse_t git_submodule_set_fetch_recurse_submodules( - git_submodule *submodule, - git_submodule_recurse_t fetch_recurse_submodules) +int git_submodule_set_fetch_recurse_submodules(git_repository *repo, const char *name, git_submodule_recurse_t recurse) { - git_submodule_recurse_t old; - - assert(submodule); - - if (fetch_recurse_submodules == GIT_SUBMODULE_RECURSE_RESET) - fetch_recurse_submodules = submodule->fetch_recurse_default; + assert(repo && name); - old = submodule->fetch_recurse; - submodule->fetch_recurse = fetch_recurse_submodules; - return old; + return write_mapped_var(repo, name, _sm_recurse_map, ARRAY_SIZE(_sm_recurse_map), "fetchRecurseSubmodules", recurse); } static int submodule_repo_create( @@ -953,7 +1038,7 @@ int git_submodule_update(git_submodule *sm, int init, git_submodule_update_optio memcpy(&clone_options.fetch_opts, &update_options.fetch_opts, sizeof(git_fetch_options)); /* Get the status of the submodule to determine if it is already initialized */ - if ((error = git_submodule_status(&submodule_status, sm)) < 0) + if ((error = git_submodule_status(&submodule_status, sm->repo, sm->name, GIT_SUBMODULE_IGNORE_UNSPECIFIED)) < 0) goto done; /* @@ -1197,11 +1282,6 @@ int git_submodule_open(git_repository **subrepo, git_submodule *sm) return git_submodule__open(subrepo, sm, false); } -int git_submodule_reload_all(git_repository *repo, int force) -{ - return submodule_cache_init(repo, force ? CACHE_FLUSH : CACHE_REFRESH); -} - static void submodule_update_from_index_entry( git_submodule *sm, const git_index_entry *ie) { @@ -1280,14 +1360,12 @@ int git_submodule_reload(git_submodule *sm, int force) { int error = 0; git_config_backend *mods; - git_submodule_cache *cache; + lfc_data data = { 0 }; GIT_UNUSED(force); assert(sm); - cache = sm->repo->_submodules; - /* refresh index data */ if ((error = submodule_update_index(sm)) < 0) return error; @@ -1301,7 +1379,7 @@ int git_submodule_reload(git_submodule *sm, int force) return error; /* refresh config data */ - mods = open_gitmodules(cache, GITMODULES_EXISTING); + mods = open_gitmodules(sm->repo, GITMODULES_EXISTING); if (mods != NULL) { git_buf path = GIT_BUF_INIT; @@ -1309,11 +1387,14 @@ int git_submodule_reload(git_submodule *sm, int force) git_buf_text_puts_escape_regex(&path, sm->name); git_buf_puts(&path, ".*"); - if (git_buf_oom(&path)) + if (git_buf_oom(&path)) { error = -1; - else + } else { + data.have_sm = 1; + data.sm = sm; error = git_config_file_foreach_match( - mods, path.ptr, submodule_load_from_config, cache); + mods, path.ptr, submodule_load_from_config, &data); + } git_buf_free(&path); git_config_file_free(mods); @@ -1352,7 +1433,7 @@ int git_submodule__status( unsigned int status; git_repository *smrepo = NULL; - if (ign < GIT_SUBMODULE_IGNORE_NONE) + if (ign == GIT_SUBMODULE_IGNORE_UNSPECIFIED) ign = sm->ignore; /* only return location info if ignore == all */ @@ -1401,11 +1482,20 @@ int git_submodule__status( return 0; } -int git_submodule_status(unsigned int *status, git_submodule *sm) +int git_submodule_status(unsigned int *status, git_repository *repo, const char *name, git_submodule_ignore_t ignore) { - assert(status && sm); + git_submodule *sm; + int error; + + assert(status && repo && name); + + if ((error = git_submodule_lookup(&sm, repo, name)) < 0) + return error; + + error = git_submodule__status(status, NULL, NULL, NULL, sm, ignore); + git_submodule_free(sm); - return git_submodule__status(status, NULL, NULL, NULL, sm, 0); + return error; } int git_submodule_location(unsigned int *location, git_submodule *sm) @@ -1422,7 +1512,7 @@ int git_submodule_location(unsigned int *location, git_submodule *sm) */ static int submodule_alloc( - git_submodule **out, git_submodule_cache *cache, const char *name) + git_submodule **out, git_repository *repo, const char *name) { size_t namelen; git_submodule *sm; @@ -1445,56 +1535,20 @@ static int submodule_alloc( sm->ignore = sm->ignore_default = GIT_SUBMODULE_IGNORE_NONE; sm->update = sm->update_default = GIT_SUBMODULE_UPDATE_CHECKOUT; sm->fetch_recurse = sm->fetch_recurse_default = GIT_SUBMODULE_RECURSE_NO; - sm->repo = cache->repo; + sm->repo = repo; sm->branch = NULL; *out = sm; return 0; } -static void submodule_cache_remove_item( - git_submodule_cache *cache, - git_submodule *item, - bool free_after_remove) -{ - git_strmap *map; - const char *name, *alt; - - if (!cache || !(map = cache->submodules) || !item) - return; - - name = item->name; - alt = (item->path != item->name) ? item->path : NULL; - - for (; name; name = alt, alt = NULL) { - khiter_t pos = git_strmap_lookup_index(map, name); - git_submodule *found; - - if (!git_strmap_valid_index(map, pos)) - continue; - - found = git_strmap_value_at(map, pos); - - if (found != item) - continue; - - git_strmap_set_value_at(map, pos, NULL); - git_strmap_delete_at(map, pos); - - if (free_after_remove) - git_submodule_free(found); - } -} - static void submodule_release(git_submodule *sm) { if (!sm) return; if (sm->repo) { - git_submodule_cache *cache = sm->repo->_submodules; sm->repo = NULL; - submodule_cache_remove_item(cache, sm, false); } if (sm->path != sm->name) @@ -1513,54 +1567,6 @@ void git_submodule_free(git_submodule *sm) GIT_REFCOUNT_DEC(sm, submodule_release); } -static int submodule_get( - git_submodule **out, - git_submodule_cache *cache, - const char *name, - const char *alternate) -{ - int error = 0; - khiter_t pos; - git_submodule *sm; - - pos = git_strmap_lookup_index(cache->submodules, name); - - if (!git_strmap_valid_index(cache->submodules, pos) && alternate) - pos = git_strmap_lookup_index(cache->submodules, alternate); - - if (!git_strmap_valid_index(cache->submodules, pos)) { - if ((error = submodule_alloc(&sm, cache, name)) < 0) - return error; - - /* insert value at name - if another thread beats us to it, then use - * their record and release our own. - */ - pos = kh_put(str, cache->submodules, sm->name, &error); - - if (error < 0) - goto done; - else if (error == 0) { - git_submodule_free(sm); - sm = git_strmap_value_at(cache->submodules, pos); - } else { - error = 0; - git_strmap_set_value_at(cache->submodules, pos, sm); - } - } else { - sm = git_strmap_value_at(cache->submodules, pos); - } - -done: - if (error < 0) - git_submodule_free(sm); - else if (out) { - GIT_REFCOUNT_INC(sm); - *out = sm; - } - - return error; -} - static int submodule_config_error(const char *property, const char *value) { giterr_set(GITERR_INVALID, @@ -1613,12 +1619,12 @@ int git_submodule_parse_recurse(git_submodule_recurse_t *out, const char *value) static int submodule_load_from_config( const git_config_entry *entry, void *payload) { - git_submodule_cache *cache = payload; const char *namestart, *property; const char *key = entry->name, *value = entry->value, *path; char *alternate = NULL, *replaced = NULL; git_buf name = GIT_BUF_INIT; - git_submodule *sm = NULL; + lfc_data *data = payload; + git_submodule *sm; int error = 0; if (git__prefixcmp(key, "submodule.") != 0) @@ -1633,10 +1639,29 @@ static int submodule_load_from_config( property++; path = !strcasecmp(property, "path") ? value : NULL; - if ((error = git_buf_set(&name, namestart, property - namestart - 1)) < 0 || - (error = submodule_get(&sm, cache, name.ptr, path)) < 0) + if ((error = git_buf_set(&name, namestart, property - namestart -1)) < 0) goto done; + if (data->have_sm) { + sm = data->sm; + } else { + khiter_t pos; + git_strmap *map = data->map; + pos = git_strmap_lookup_index(map, name.ptr); + if (git_strmap_valid_index(map, pos)) { + sm = git_strmap_value_at(map, pos); + } else { + if ((error = submodule_alloc(&sm, data->repo, name.ptr)) < 0) + goto done; + + git_strmap_insert(map, sm->name, sm, error); + assert(error != 0); + if (error < 0) + goto done; + error = 0; + } + } + sm->flags |= GIT_SUBMODULE_STATUS_IN_CONFIG; /* Only from config might we get differing names & paths. If so, then @@ -1648,7 +1673,7 @@ static int submodule_load_from_config( */ if (strcmp(sm->name, name.ptr) != 0) { /* name changed */ - if (!strcmp(sm->path, name.ptr)) { /* already set as path */ + if (sm->path && !strcmp(sm->path, name.ptr)) { /* already set as path */ replaced = sm->name; sm->name = sm->path; } else { @@ -1674,30 +1699,9 @@ static int submodule_load_from_config( /* Deregister under name being replaced */ if (replaced) { - git_strmap_delete(cache->submodules, replaced); - git_submodule_free(sm); git__free(replaced); } - /* Insert under alternate key */ - if (alternate) { - void *old_sm = NULL; - git_strmap_insert2(cache->submodules, alternate, sm, old_sm, error); - - if (error < 0) - goto done; - if (error > 0) - error = 0; - - GIT_REFCOUNT_INC(sm); /* increase refcount for new key */ - - /* if we replaced an old module under this key, release the old one */ - if (old_sm && ((git_submodule *)old_sm) != sm) { - git_submodule_free(old_sm); - /* TODO: log warning about multiple submodules with same path */ - } - } - /* TODO: Look up path in index and if it is present but not a GITLINK * then this should be deleted (at least to match git's behavior) */ @@ -1742,7 +1746,6 @@ static int submodule_load_from_config( /* ignore other unknown submodule properties */ done: - git_submodule_free(sm); /* offset refcount inc from submodule_get() */ git_buf_free(&name); return error; } @@ -1764,86 +1767,11 @@ static int submodule_load_from_wd_lite(git_submodule *sm) return 0; } -static int submodule_cache_refresh_from_index( - git_submodule_cache *cache, git_index *idx) -{ - int error; - git_iterator *i; - const git_index_entry *entry; - - if ((error = git_iterator_for_index(&i, idx, 0, NULL, NULL)) < 0) - return error; - - while (!(error = git_iterator_advance(&entry, i))) { - khiter_t pos = git_strmap_lookup_index(cache->submodules, entry->path); - git_submodule *sm; - - if (git_strmap_valid_index(cache->submodules, pos)) { - sm = git_strmap_value_at(cache->submodules, pos); - - if (S_ISGITLINK(entry->mode)) - submodule_update_from_index_entry(sm, entry); - else - sm->flags |= GIT_SUBMODULE_STATUS__INDEX_NOT_SUBMODULE; - } else if (S_ISGITLINK(entry->mode)) { - if (!submodule_get(&sm, cache, entry->path, NULL)) { - submodule_update_from_index_entry(sm, entry); - git_submodule_free(sm); - } - } - } - - if (error == GIT_ITEROVER) - error = 0; - - git_iterator_free(i); - - return error; -} - -static int submodule_cache_refresh_from_head( - git_submodule_cache *cache, git_tree *head) -{ - int error; - git_iterator *i; - const git_index_entry *entry; - - if ((error = git_iterator_for_tree(&i, head, 0, NULL, NULL)) < 0) - return error; - - while (!(error = git_iterator_advance(&entry, i))) { - khiter_t pos = git_strmap_lookup_index(cache->submodules, entry->path); - git_submodule *sm; - - if (git_strmap_valid_index(cache->submodules, pos)) { - sm = git_strmap_value_at(cache->submodules, pos); - - if (S_ISGITLINK(entry->mode)) - submodule_update_from_head_data(sm, entry->mode, &entry->id); - else - sm->flags |= GIT_SUBMODULE_STATUS__HEAD_NOT_SUBMODULE; - } else if (S_ISGITLINK(entry->mode)) { - if (!submodule_get(&sm, cache, entry->path, NULL)) { - submodule_update_from_head_data( - sm, entry->mode, &entry->id); - git_submodule_free(sm); - } - } - } - - if (error == GIT_ITEROVER) - error = 0; - - git_iterator_free(i); - - return error; -} - static git_config_backend *open_gitmodules( - git_submodule_cache *cache, + git_repository *repo, int okay_to_create) { - const char *workdir = git_repository_workdir(cache->repo); + const char *workdir = git_repository_workdir(repo); git_buf path = GIT_BUF_INIT; git_config_backend *mods = NULL; @@ -1868,199 +1796,6 @@ static git_config_backend *open_gitmodules( return mods; } -static void submodule_cache_free(git_submodule_cache *cache) -{ - git_submodule *sm; - - if (!cache) - return; - - git_strmap_foreach_value(cache->submodules, sm, { - sm->repo = NULL; /* disconnect from repo */ - git_submodule_free(sm); - }); - git_strmap_free(cache->submodules); - - git_buf_free(&cache->gitmodules_path); - git_mutex_free(&cache->lock); - git__free(cache); -} - -static int submodule_cache_alloc( - git_submodule_cache **out, git_repository *repo) -{ - git_submodule_cache *cache = git__calloc(1, sizeof(git_submodule_cache)); - GITERR_CHECK_ALLOC(cache); - - if (git_mutex_init(&cache->lock) < 0) { - giterr_set(GITERR_OS, "Unable to initialize submodule cache lock"); - git__free(cache); - return -1; - } - - if (git_strmap_alloc(&cache->submodules) < 0) { - submodule_cache_free(cache); - return -1; - } - - cache->repo = repo; - git_buf_init(&cache->gitmodules_path, 0); - - *out = cache; - return 0; -} - -static int submodule_cache_refresh(git_submodule_cache *cache, int refresh) -{ - int error = 0, update_index, update_head, update_gitmod; - git_index *idx = NULL; - git_tree *head = NULL; - const char *wd = NULL; - git_buf path = GIT_BUF_INIT; - git_submodule *sm; - git_config_backend *mods = NULL; - uint32_t mask; - - if (!cache || !cache->repo || !refresh) - return 0; - - if (git_mutex_lock(&cache->lock) < 0) { - giterr_set(GITERR_OS, "Unable to acquire lock on submodule cache"); - return -1; - } - - /* get sources that we will need to check */ - - if (git_repository_index(&idx, cache->repo) < 0) - giterr_clear(); - if (git_repository_head_tree(&head, cache->repo) < 0) - giterr_clear(); - - wd = git_repository_workdir(cache->repo); - if (wd && (error = git_buf_joinpath(&path, wd, GIT_MODULES_FILE)) < 0) - goto cleanup; - - /* check for invalidation */ - - if (refresh == CACHE_FLUSH) - update_index = update_head = update_gitmod = true; - else { - update_index = - !idx || git_index__changed_relative_to(idx, &cache->index_stamp); - update_head = - !head || !git_oid_equal(&cache->head_id, git_tree_id(head)); - - update_gitmod = (wd != NULL) ? - git_futils_filestamp_check(&cache->gitmodules_stamp, path.ptr) : - (cache->gitmodules_stamp.mtime != 0); - } - - /* clear submodule flags that are to be refreshed */ - - mask = 0; - if (!idx || update_index) - mask |= GIT_SUBMODULE_STATUS_IN_INDEX | - GIT_SUBMODULE_STATUS__INDEX_FLAGS | - GIT_SUBMODULE_STATUS__INDEX_OID_VALID | - GIT_SUBMODULE_STATUS__INDEX_MULTIPLE_ENTRIES; - if (!head || update_head) - mask |= GIT_SUBMODULE_STATUS_IN_HEAD | - GIT_SUBMODULE_STATUS__HEAD_OID_VALID; - if (update_gitmod) - mask |= GIT_SUBMODULE_STATUS_IN_CONFIG; - if (mask != 0) - mask |= GIT_SUBMODULE_STATUS_IN_WD | - GIT_SUBMODULE_STATUS__WD_SCANNED | - GIT_SUBMODULE_STATUS__WD_FLAGS | - GIT_SUBMODULE_STATUS__WD_OID_VALID; - else - goto cleanup; /* nothing to do */ - - submodule_cache_clear_flags(cache, mask); - - /* add back submodule information from index */ - - if (idx && update_index) { - if ((error = submodule_cache_refresh_from_index(cache, idx)) < 0) - goto cleanup; - - git_futils_filestamp_set( - &cache->index_stamp, git_index__filestamp(idx)); - } - - /* add submodule information from HEAD */ - - if (head && update_head) { - if ((error = submodule_cache_refresh_from_head(cache, head)) < 0) - goto cleanup; - - git_oid_cpy(&cache->head_id, git_tree_id(head)); - } - - /* add submodule information from .gitmodules */ - - if (wd && update_gitmod > 0) { - if ((mods = open_gitmodules(cache, false)) != NULL && - (error = git_config_file_foreach( - mods, submodule_load_from_config, cache)) < 0) - goto cleanup; - } - - /* shallow scan submodules in work tree as needed */ - - if (wd && mask != 0) { - git_strmap_foreach_value(cache->submodules, sm, { - submodule_load_from_wd_lite(sm); - }); - } - - /* remove submodules that no longer exist */ - - git_strmap_foreach_value(cache->submodules, sm, { - /* purge unless in HEAD, index, or .gitmodules; no sm for wd only */ - if (sm != NULL && - !(sm->flags & - (GIT_SUBMODULE_STATUS_IN_HEAD | - GIT_SUBMODULE_STATUS_IN_INDEX | - GIT_SUBMODULE_STATUS_IN_CONFIG))) - submodule_cache_remove_item(cache, sm, true); - }); - -cleanup: - git_config_file_free(mods); - - /* TODO: if we got an error, mark submodule config as invalid? */ - - git_mutex_unlock(&cache->lock); - - git_index_free(idx); - git_tree_free(head); - git_buf_free(&path); - - return error; -} - -static int submodule_cache_init(git_repository *repo, int cache_refresh) -{ - int error = 0; - git_submodule_cache *cache = NULL; - - /* if submodules already exist, just refresh as requested */ - if (repo->_submodules) - return submodule_cache_refresh(repo->_submodules, cache_refresh); - - /* otherwise create a new cache, load it, and atomically swap it in */ - if (!(error = submodule_cache_alloc(&cache, repo)) && - !(error = submodule_cache_refresh(cache, CACHE_FLUSH))) - cache = git__compare_and_swap(&repo->_submodules, NULL, cache); - - /* might have raced with another thread to set cache, so free if needed */ - if (cache) - submodule_cache_free(cache); - - return error; -} - /* Lookup name of remote of the local tracking branch HEAD points to */ static int lookup_head_remote_key(git_buf *remote_name, git_repository *repo) { diff --git a/src/submodule.h b/src/submodule.h index a6182beca6a..2ef2031b35f 100644 --- a/src/submodule.h +++ b/src/submodule.h @@ -99,23 +99,6 @@ struct git_submodule { git_oid wd_oid; }; -/** - * The git_submodule_cache stores known submodules along with timestamps, - * etc. about when they were loaded - */ -typedef struct { - git_repository *repo; - git_strmap *submodules; - git_mutex lock; - - /* cache invalidation data */ - git_oid head_id; - git_futils_filestamp index_stamp; - git_buf gitmodules_path; - git_futils_filestamp gitmodules_stamp; - git_futils_filestamp config_stamp; -} git_submodule_cache; - /* Force revalidation of submodule data cache (alloc as needed) */ extern int git_submodule_cache_refresh(git_repository *repo); @@ -137,9 +120,6 @@ enum { #define GIT_SUBMODULE_STATUS__CLEAR_INTERNAL(S) \ ((S) & ~(0xFFFFFFFFu << 20)) -/* Internal submodule check does not attempt to refresh cached data */ -extern bool git_submodule__is_submodule(git_repository *repo, const char *name); - /* Internal lookup does not attempt to refresh cached data */ extern int git_submodule__lookup( git_submodule **out, git_repository *repo, const char *path); @@ -163,8 +143,4 @@ extern int git_submodule_parse_ignore( extern int git_submodule_parse_update( git_submodule_update_t *out, const char *value); -extern const char *git_submodule_ignore_to_str(git_submodule_ignore_t); -extern const char *git_submodule_update_to_str(git_submodule_update_t); -extern const char *git_submodule_recurse_to_str(git_submodule_recurse_t); - #endif diff --git a/src/transports/http.c b/src/transports/http.c index 4aca2755be2..dd4426475a2 100644 --- a/src/transports/http.c +++ b/src/transports/http.c @@ -10,11 +10,13 @@ #include "http_parser.h" #include "buffer.h" #include "netops.h" +#include "remote.h" #include "smart.h" #include "auth.h" #include "auth_negotiate.h" #include "tls_stream.h" #include "socket_stream.h" +#include "curl_stream.h" git_http_auth_scheme auth_schemes[] = { { GIT_AUTHTYPE_NEGOTIATE, "Negotiate", GIT_CREDTYPE_DEFAULT, git_http_auth_negotiate }, @@ -334,8 +336,11 @@ static int on_headers_complete(http_parser *parser) if (!t->owner->cred_acquire_cb) { no_callback = 1; } else { - if (allowed_auth_types && - (!t->cred || 0 == (t->cred->credtype & allowed_auth_types))) { + if (allowed_auth_types) { + if (t->cred) { + t->cred->free(t->cred); + t->cred = NULL; + } error = t->owner->cred_acquire_cb(&t->cred, t->owner->url, @@ -532,6 +537,7 @@ static int write_chunk(git_stream *io, const char *buffer, size_t len) static int http_connect(http_subtransport *t) { int error; + char *proxy_url; if (t->connected && http_should_keep_alive(&t->parser) && @@ -547,7 +553,11 @@ static int http_connect(http_subtransport *t) if (t->connection_data.use_ssl) { error = git_tls_stream_new(&t->io, t->connection_data.host, t->connection_data.port); } else { +#ifdef GIT_CURL + error = git_curl_stream_new(&t->io, t->connection_data.host, t->connection_data.port); +#else error = git_socket_stream_new(&t->io, t->connection_data.host, t->connection_data.port); +#endif } if (error < 0) @@ -555,9 +565,18 @@ static int http_connect(http_subtransport *t) GITERR_CHECK_VERSION(t->io, GIT_STREAM_VERSION, "git_stream"); + if (git_stream_supports_proxy(t->io) && + !git_remote__get_http_proxy(t->owner->owner, !!t->connection_data.use_ssl, &proxy_url)) { + error = git_stream_set_proxy(t->io, proxy_url); + git__free(proxy_url); + + if (error < 0) + return error; + } + error = git_stream_connect(t->io); -#if defined(GIT_OPENSSL) || defined(GIT_SECURE_TRANSPORT) +#if defined(GIT_OPENSSL) || defined(GIT_SECURE_TRANSPORT) || defined(GIT_CURL) if ((!error || error == GIT_ECERTIFICATE) && t->owner->certificate_check_cb != NULL && git_stream_is_encrypted(t->io)) { git_cert *cert; diff --git a/src/unix/posix.h b/src/unix/posix.h index 425e6bb1b27..c852936be1f 100644 --- a/src/unix/posix.h +++ b/src/unix/posix.h @@ -10,6 +10,7 @@ #include #include #include +#include typedef int GIT_SOCKET; #define INVALID_SOCKET -1 diff --git a/tests/checkout/checkout_helpers.c b/tests/checkout/checkout_helpers.c index f6e36d39b45..92a454d129e 100644 --- a/tests/checkout/checkout_helpers.c +++ b/tests/checkout/checkout_helpers.c @@ -132,7 +132,6 @@ int checkout_count_callback( void tick_index(git_index *index) { - int index_fd; git_time_t ts; struct timeval times[2]; @@ -144,7 +143,7 @@ void tick_index(git_index *index) times[0].tv_sec = ts; times[0].tv_usec = 0; - times[1].tv_sec = ts + 1; + times[1].tv_sec = ts + 5; times[1].tv_usec = 0; cl_git_pass(p_utimes(git_index_path(index), times)); diff --git a/tests/checkout/crlf.c b/tests/checkout/crlf.c index 61459b3a44e..8e77d08454b 100644 --- a/tests/checkout/crlf.c +++ b/tests/checkout/crlf.c @@ -1,6 +1,7 @@ #include "clar_libgit2.h" #include "checkout_helpers.h" #include "../filter/crlf.h" +#include "fileops.h" #include "git2/checkout.h" #include "repository.h" @@ -9,94 +10,218 @@ static git_repository *g_repo; +static const char *systype; +static git_buf expected_fixture = GIT_BUF_INIT; + void test_checkout_crlf__initialize(void) { g_repo = cl_git_sandbox_init("crlf"); + + if (GIT_EOL_NATIVE == GIT_EOL_CRLF) + systype = "windows"; + else + systype = "posix"; } void test_checkout_crlf__cleanup(void) { cl_git_sandbox_cleanup(); + + if (expected_fixture.size) { + cl_fixture_cleanup(expected_fixture.ptr); + git_buf_free(&expected_fixture); + } } -void test_checkout_crlf__detect_crlf_autocrlf_false(void) +struct compare_data { - git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT; - opts.checkout_strategy = GIT_CHECKOUT_FORCE; + const char *dirname; + const char *autocrlf; + const char *attrs; +}; - cl_repo_set_bool(g_repo, "core.autocrlf", false); +static int compare_file(void *payload, git_buf *actual_path) +{ + git_buf expected_path = GIT_BUF_INIT; + git_buf actual_contents = GIT_BUF_INIT; + git_buf expected_contents = GIT_BUF_INIT; + struct compare_data *cd = payload; + bool failed = true; + int cmp_git, cmp_gitattributes; + char *basename; + + basename = git_path_basename(actual_path->ptr); + cmp_git = strcmp(basename, ".git"); + cmp_gitattributes = strcmp(basename, ".gitattributes"); + + if (cmp_git == 0 || cmp_gitattributes == 0) { + failed = false; + goto done; + } - git_checkout_head(g_repo, &opts); + cl_git_pass(git_buf_joinpath(&expected_path, cd->dirname, basename)); - check_file_contents("./crlf/all-lf", ALL_LF_TEXT_RAW); - check_file_contents("./crlf/all-crlf", ALL_CRLF_TEXT_RAW); + if (!git_path_isfile(expected_path.ptr) || + !git_path_isfile(actual_path->ptr)) + goto done; + + if (git_futils_readbuffer(&actual_contents, actual_path->ptr) < 0 || + git_futils_readbuffer(&expected_contents, expected_path.ptr) < 0) + goto done; + + if (actual_contents.size != expected_contents.size) + goto done; + + if (memcmp(actual_contents.ptr, expected_contents.ptr, expected_contents.size) != 0) + goto done; + + failed = false; + +done: + if (failed) { + git_buf details = GIT_BUF_INIT; + git_buf_printf(&details, "filename=%s, system=%s, autocrlf=%s, attrs={%s}", + git_path_basename(actual_path->ptr), systype, cd->autocrlf, cd->attrs); + clar__fail(__FILE__, __LINE__, + "checked out contents did not match expected", details.ptr, 0); + git_buf_free(&details); + } + + git__free(basename); + git_buf_free(&expected_contents); + git_buf_free(&actual_contents); + git_buf_free(&expected_path); + + return 0; } -void test_checkout_crlf__autocrlf_false_index_size_is_unfiltered_size(void) +static void test_checkout(const char *autocrlf, const char *attrs) { - git_index *index; - const git_index_entry *entry; + git_buf attrbuf = GIT_BUF_INIT; + git_buf expected_dirname = GIT_BUF_INIT; + git_buf sandboxname = GIT_BUF_INIT; + git_buf reponame = GIT_BUF_INIT; git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT; - opts.checkout_strategy = GIT_CHECKOUT_FORCE; + struct compare_data compare_data = { NULL, autocrlf, attrs }; + const char *c; - cl_repo_set_bool(g_repo, "core.autocrlf", false); + git_buf_puts(&reponame, "crlf"); - git_repository_index(&index, g_repo); - tick_index(index); + git_buf_puts(&sandboxname, "autocrlf_"); + git_buf_puts(&sandboxname, autocrlf); + + if (*attrs) { + git_buf_puts(&sandboxname, ","); + + for (c = attrs; *c; c++) { + if (*c == ' ') + git_buf_putc(&sandboxname, ','); + else if (*c == '=') + git_buf_putc(&sandboxname, '_'); + else + git_buf_putc(&sandboxname, *c); + } + git_buf_printf(&attrbuf, "* %s\n", attrs); + cl_git_mkfile("crlf/.gitattributes", attrbuf.ptr); + } + + cl_repo_set_string(g_repo, "core.autocrlf", autocrlf); + + git_buf_joinpath(&expected_dirname, systype, sandboxname.ptr); + git_buf_joinpath(&expected_fixture, "crlf_data", expected_dirname.ptr); + cl_fixture_sandbox(expected_fixture.ptr); + + opts.checkout_strategy = GIT_CHECKOUT_FORCE; git_checkout_head(g_repo, &opts); - cl_assert((entry = git_index_get_bypath(index, "all-lf", 0)) != NULL); - cl_assert(entry->file_size == strlen(ALL_LF_TEXT_RAW)); + compare_data.dirname = sandboxname.ptr; + cl_git_pass(git_path_direach(&reponame, 0, compare_file, &compare_data)); - cl_assert((entry = git_index_get_bypath(index, "all-crlf", 0)) != NULL); - cl_assert(entry->file_size == strlen(ALL_CRLF_TEXT_RAW)); + cl_fixture_cleanup(expected_fixture.ptr); + git_buf_free(&expected_fixture); - git_index_free(index); + git_buf_free(&attrbuf); + git_buf_free(&expected_fixture); + git_buf_free(&expected_dirname); + git_buf_free(&sandboxname); + git_buf_free(&reponame); } -void test_checkout_crlf__detect_crlf_autocrlf_true(void) +static void empty_workdir(const char *name) { - git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT; - opts.checkout_strategy = GIT_CHECKOUT_FORCE; + git_vector contents = GIT_VECTOR_INIT; + size_t i; + const char *fn; - cl_repo_set_bool(g_repo, "core.autocrlf", true); + git_path_dirload(&contents, name, 0, 0); + git_vector_foreach(&contents, i, fn) { + char *basename = git_path_basename(fn); + int cmp = strncasecmp(basename, ".git", 4); - git_checkout_head(g_repo, &opts); + git__free(basename); - if (GIT_EOL_NATIVE == GIT_EOL_LF) - check_file_contents("./crlf/all-lf", ALL_LF_TEXT_RAW); - else - check_file_contents("./crlf/all-lf", ALL_LF_TEXT_AS_CRLF); + if (cmp == 0) + continue; + p_unlink(fn); + } + git_vector_free_deep(&contents); +} - check_file_contents("./crlf/all-crlf", ALL_CRLF_TEXT_RAW); +void test_checkout_crlf__matches_core_git(void) +{ + const char *autocrlf[] = { "true", "false", "input", NULL }; + const char *attrs[] = { "", "-crlf", "-text", "eol=crlf", "eol=lf", + "text", "text eol=crlf", "text eol=lf", + "text=auto", "text=auto eol=crlf", "text=auto eol=lf", + NULL }; + const char **a, **b; + + for (a = autocrlf; *a; a++) { + for (b = attrs; *b; b++) { + empty_workdir("crlf"); + test_checkout(*a, *b); + } + } } -void test_checkout_crlf__more_lf_autocrlf_true(void) +void test_checkout_crlf__detect_crlf_autocrlf_false(void) { git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT; opts.checkout_strategy = GIT_CHECKOUT_FORCE; - cl_repo_set_bool(g_repo, "core.autocrlf", true); + cl_repo_set_bool(g_repo, "core.autocrlf", false); git_checkout_head(g_repo, &opts); - check_file_contents("./crlf/more-lf", MORE_LF_TEXT_RAW); + check_file_contents("./crlf/all-lf", ALL_LF_TEXT_RAW); + check_file_contents("./crlf/all-crlf", ALL_CRLF_TEXT_RAW); } -void test_checkout_crlf__more_crlf_autocrlf_true(void) +void test_checkout_crlf__autocrlf_false_index_size_is_unfiltered_size(void) { + git_index *index; + const git_index_entry *entry; git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT; opts.checkout_strategy = GIT_CHECKOUT_FORCE; - cl_repo_set_bool(g_repo, "core.autocrlf", true); + cl_repo_set_bool(g_repo, "core.autocrlf", false); + + git_repository_index(&index, g_repo); + tick_index(index); git_checkout_head(g_repo, &opts); - check_file_contents("./crlf/more-crlf", MORE_CRLF_TEXT_RAW); + cl_assert((entry = git_index_get_bypath(index, "all-lf", 0)) != NULL); + cl_assert(entry->file_size == strlen(ALL_LF_TEXT_RAW)); + + cl_assert((entry = git_index_get_bypath(index, "all-crlf", 0)) != NULL); + cl_assert(entry->file_size == strlen(ALL_CRLF_TEXT_RAW)); + + git_index_free(index); } -void test_checkout_crlf__all_crlf_autocrlf_true(void) +void test_checkout_crlf__detect_crlf_autocrlf_true(void) { git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT; opts.checkout_strategy = GIT_CHECKOUT_FORCE; @@ -105,6 +230,7 @@ void test_checkout_crlf__all_crlf_autocrlf_true(void) git_checkout_head(g_repo, &opts); + check_file_contents("./crlf/all-lf", ALL_LF_TEXT_AS_CRLF); check_file_contents("./crlf/all-crlf", ALL_CRLF_TEXT_RAW); } @@ -115,22 +241,14 @@ void test_checkout_crlf__detect_crlf_autocrlf_true_utf8(void) cl_repo_set_bool(g_repo, "core.autocrlf", true); - git_repository_set_head(g_repo, "refs/heads/utf8"); + git_repository_set_head(g_repo, "refs/heads/master"); git_checkout_head(g_repo, &opts); - if (GIT_EOL_NATIVE == GIT_EOL_LF) - { - check_file_contents("./crlf/few-utf8-chars-lf.txt", FEW_UTF8_LF_RAW); - check_file_contents("./crlf/many-utf8-chars-lf.txt", MANY_UTF8_LF_RAW); - } - else - { - check_file_contents("./crlf/few-utf8-chars-lf.txt", FEW_UTF8_CRLF_RAW); - check_file_contents("./crlf/many-utf8-chars-lf.txt", MANY_UTF8_CRLF_RAW); - } + check_file_contents("./crlf/few-utf8-chars-lf", FEW_UTF8_CRLF_RAW); + check_file_contents("./crlf/many-utf8-chars-lf", MANY_UTF8_CRLF_RAW); - check_file_contents("./crlf/few-utf8-chars-crlf.txt", FEW_UTF8_CRLF_RAW); - check_file_contents("./crlf/many-utf8-chars-crlf.txt", MANY_UTF8_CRLF_RAW); + check_file_contents("./crlf/few-utf8-chars-crlf", FEW_UTF8_CRLF_RAW); + check_file_contents("./crlf/many-utf8-chars-crlf", MANY_UTF8_CRLF_RAW); } void test_checkout_crlf__autocrlf_true_index_size_is_filtered_size(void) @@ -149,10 +267,7 @@ void test_checkout_crlf__autocrlf_true_index_size_is_filtered_size(void) cl_assert((entry = git_index_get_bypath(index, "all-lf", 0)) != NULL); - if (GIT_EOL_NATIVE == GIT_EOL_LF) - cl_assert_equal_sz(strlen(ALL_LF_TEXT_RAW), entry->file_size); - else - cl_assert_equal_sz(strlen(ALL_LF_TEXT_AS_CRLF), entry->file_size); + cl_assert_equal_sz(strlen(ALL_LF_TEXT_AS_CRLF), entry->file_size); cl_assert((entry = git_index_get_bypath(index, "all-crlf", 0)) != NULL); cl_assert_equal_sz(strlen(ALL_CRLF_TEXT_RAW), entry->file_size); @@ -221,25 +336,14 @@ void test_checkout_crlf__with_ident(void) git_checkout_head(g_repo, &opts); - if (GIT_EOL_NATIVE == GIT_EOL_LF) { - cl_assert_equal_file( - ALL_LF_TEXT_RAW - "\n$Id: fcf6d4d9c212dc66563b1171b1cd99953c756467 $\n", - 0, "crlf/lf.ident"); - cl_assert_equal_file( - ALL_CRLF_TEXT_AS_LF - "\n$Id: f2c66ad9b2b5a734d9bf00d5000cc10a62b8a857 $\n\n", - 0, "crlf/crlf.ident"); - } else { - cl_assert_equal_file( - ALL_LF_TEXT_AS_CRLF - "\r\n$Id: fcf6d4d9c212dc66563b1171b1cd99953c756467 $\r\n", - 0, "crlf/lf.ident"); - cl_assert_equal_file( - ALL_CRLF_TEXT_RAW - "\r\n$Id: f2c66ad9b2b5a734d9bf00d5000cc10a62b8a857 $\r\n\r\n", - 0, "crlf/crlf.ident"); - } + cl_assert_equal_file( + ALL_LF_TEXT_AS_CRLF + "\r\n$Id: fcf6d4d9c212dc66563b1171b1cd99953c756467 $\r\n", + 0, "crlf/lf.ident"); + cl_assert_equal_file( + ALL_CRLF_TEXT_RAW + "\r\n$Id: f2c66ad9b2b5a734d9bf00d5000cc10a62b8a857 $\r\n\r\n", + 0, "crlf/crlf.ident"); cl_assert_equal_file( "$Id: f7830382dac1f1583422be5530fdfbd26289431b $\n" @@ -274,13 +378,8 @@ void test_checkout_crlf__autocrlf_true_no_attrs(void) git_checkout_head(g_repo, &opts); - if (GIT_EOL_NATIVE == GIT_EOL_CRLF) { - check_file_contents("./crlf/all-lf", ALL_LF_TEXT_AS_CRLF); - check_file_contents("./crlf/all-crlf", ALL_CRLF_TEXT_AS_CRLF); - } else { - check_file_contents("./crlf/all-lf", ALL_LF_TEXT_RAW); - check_file_contents("./crlf/all-crlf", ALL_CRLF_TEXT_RAW); - } + check_file_contents("./crlf/all-lf", ALL_LF_TEXT_AS_CRLF); + check_file_contents("./crlf/all-crlf", ALL_CRLF_TEXT_AS_CRLF); } void test_checkout_crlf__autocrlf_input_no_attrs(void) @@ -327,13 +426,8 @@ void test_checkout_crlf__autocrlf_true_text_auto_attr(void) git_checkout_head(g_repo, &opts); - if (GIT_EOL_NATIVE == GIT_EOL_CRLF) { - check_file_contents("./crlf/all-lf", ALL_LF_TEXT_AS_CRLF); - check_file_contents("./crlf/all-crlf", ALL_CRLF_TEXT_AS_CRLF); - } else { - check_file_contents("./crlf/all-lf", ALL_LF_TEXT_RAW); - check_file_contents("./crlf/all-crlf", ALL_CRLF_TEXT_RAW); - } + check_file_contents("./crlf/all-lf", ALL_LF_TEXT_AS_CRLF); + check_file_contents("./crlf/all-crlf", ALL_CRLF_TEXT_AS_CRLF); } void test_checkout_crlf__autocrlf_input_text_auto_attr(void) @@ -363,10 +457,7 @@ void test_checkout_crlf__can_write_empty_file(void) check_file_contents("./crlf/test1.txt", ""); - if (GIT_EOL_NATIVE == GIT_EOL_LF) - check_file_contents("./crlf/test2.txt", "test2.txt's content\n"); - else - check_file_contents("./crlf/test2.txt", "test2.txt's content\r\n"); + check_file_contents("./crlf/test2.txt", "test2.txt's content\r\n"); check_file_contents("./crlf/test3.txt", ""); } diff --git a/tests/checkout/index.c b/tests/checkout/index.c index 89b0145866f..0d220e1414e 100644 --- a/tests/checkout/index.c +++ b/tests/checkout/index.c @@ -145,7 +145,7 @@ void test_checkout_index__honor_coresymlinks_default(void) const char *url = git_repository_path(g_repo); - getcwd(cwd, sizeof(cwd)); + cl_assert(getcwd(cwd, sizeof(cwd)) != NULL); cl_assert_equal_i(0, p_mkdir("readonly", 0555)); // Read-only directory cl_assert_equal_i(0, chdir("readonly")); cl_git_pass(git_repository_init(&repo, "../symlink.git", true)); diff --git a/tests/clar/fixtures.h b/tests/clar/fixtures.h index 264cd7f4f4c..f7b8d96af80 100644 --- a/tests/clar/fixtures.h +++ b/tests/clar/fixtures.h @@ -20,6 +20,19 @@ fixture_path(const char *base, const char *fixture_name) return _path; } +static const char * +fixture_basename(const char *fixture_name) +{ + const char *p; + + for (p = fixture_name; *p; p++) { + if (p[0] == '/' && p[1] && p[1] != '/') + fixture_name = p+1; + } + + return fixture_name; +} + #ifdef CLAR_FIXTURE_PATH const char *cl_fixture(const char *fixture_name) { @@ -33,6 +46,6 @@ void cl_fixture_sandbox(const char *fixture_name) void cl_fixture_cleanup(const char *fixture_name) { - fs_rm(fixture_path(_clar_path, fixture_name)); + fs_rm(fixture_path(_clar_path, fixture_basename(fixture_name))); } #endif diff --git a/tests/clar/sandbox.h b/tests/clar/sandbox.h index ea9e35ca9ae..4b83bf31d85 100644 --- a/tests/clar/sandbox.h +++ b/tests/clar/sandbox.h @@ -65,7 +65,7 @@ static void clar_unsandbox(void) if (_clar_path[0] == '\0') return; - chdir(".."); + cl_must_pass(chdir("..")); fs_rm(_clar_path); } diff --git a/tests/commit/parse.c b/tests/commit/parse.c index fa079f47099..388da078a79 100644 --- a/tests/commit/parse.c +++ b/tests/commit/parse.c @@ -418,3 +418,41 @@ committer Vicent Marti 1273848544 +0200\n\ cl_assert_equal_s(raw_message, git_commit_message_raw(commit)); git_commit__free(commit); } + +void test_commit_parse__arbitrary_field(void) +{ + git_commit *commit; + git_buf buf = GIT_BUF_INIT; + const char *gpgsig = "-----BEGIN PGP SIGNATURE-----\n\ +Version: GnuPG v1.4.12 (Darwin)\n\ +\n\ +iQIcBAABAgAGBQJQ+FMIAAoJEH+LfPdZDSs1e3EQAJMjhqjWF+WkGLHju7pTw2al\n\ +o6IoMAhv0Z/LHlWhzBd9e7JeCnanRt12bAU7yvYp9+Z+z+dbwqLwDoFp8LVuigl8\n\ +JGLcnwiUW3rSvhjdCp9irdb4+bhKUnKUzSdsR2CK4/hC0N2i/HOvMYX+BRsvqweq\n\ +AsAkA6dAWh+gAfedrBUkCTGhlNYoetjdakWqlGL1TiKAefEZrtA1TpPkGn92vbLq\n\ +SphFRUY9hVn1ZBWrT3hEpvAIcZag3rTOiRVT1X1flj8B2vGCEr3RrcwOIZikpdaW\n\ +who/X3xh/DGbI2RbuxmmJpxxP/8dsVchRJJzBwG+yhwU/iN3MlV2c5D69tls/Dok\n\ +6VbyU4lm/ae0y3yR83D9dUlkycOnmmlBAHKIZ9qUts9X7mWJf0+yy2QxJVpjaTGG\n\ +cmnQKKPeNIhGJk2ENnnnzjEve7L7YJQF6itbx5VCOcsGh3Ocb3YR7DMdWjt7f8pu\n\ +c6j+q1rP7EpE2afUN/geSlp5i3x8aXZPDj67jImbVCE/Q1X9voCtyzGJH7MXR0N9\n\ +ZpRF8yzveRfMH8bwAJjSOGAFF5XkcR/RNY95o+J+QcgBLdX48h+ZdNmUf6jqlu3J\n\ +7KmTXXQcOVpN6dD3CmRFsbjq+x6RHwa8u1iGn+oIkX908r97ckfB/kHKH7ZdXIJc\n\ +cpxtDQQMGYFpXK/71stq\n\ +=ozeK\n\ +-----END PGP SIGNATURE-----"; + + cl_git_pass(parse_commit(&commit, passing_commit_cases[4])); + + cl_git_pass(git_commit_header_field(&buf, commit, "parent")); + cl_assert_equal_s("34734e478d6cf50c27c9d69026d93974d052c454", buf.ptr); + git_buf_clear(&buf); + + cl_git_pass(git_commit_header_field(&buf, commit, "gpgsig")); + cl_assert_equal_s(gpgsig, buf.ptr); + + cl_git_fail_with(GIT_ENOTFOUND, git_commit_header_field(&buf, commit, "awesomeness")); + cl_git_fail_with(GIT_ENOTFOUND, git_commit_header_field(&buf, commit, "par")); + + git_buf_free(&buf); + git_commit__free(commit); +} diff --git a/tests/core/buffer.c b/tests/core/buffer.c index d28aa218f3d..0e7026a9c1b 100644 --- a/tests/core/buffer.c +++ b/tests/core/buffer.c @@ -1054,14 +1054,20 @@ void test_core_buffer__lf_and_crlf_conversions(void) git_buf_sets(&src, "crlf\r\ncrlf\r\ncrlf\r\ncrlf\r\n"); - cl_git_fail_with(GIT_PASSTHROUGH, git_buf_text_lf_to_crlf(&tgt, &src)); + cl_git_pass(git_buf_text_lf_to_crlf(&tgt, &src)); + check_buf("crlf\r\ncrlf\r\ncrlf\r\ncrlf\r\n", tgt); + + git_buf_sets(&src, "crlf\r\ncrlf\r\ncrlf\r\ncrlf\r\n"); cl_git_pass(git_buf_text_crlf_to_lf(&tgt, &src)); check_buf("crlf\ncrlf\ncrlf\ncrlf\n", tgt); git_buf_sets(&src, "\r\ncrlf\r\ncrlf\r\ncrlf\r\ncrlf\r\ncrlf"); - cl_git_fail_with(GIT_PASSTHROUGH, git_buf_text_lf_to_crlf(&tgt, &src)); + cl_git_pass(git_buf_text_lf_to_crlf(&tgt, &src)); + check_buf("\r\ncrlf\r\ncrlf\r\ncrlf\r\ncrlf\r\ncrlf", tgt); + + git_buf_sets(&src, "\r\ncrlf\r\ncrlf\r\ncrlf\r\ncrlf\r\ncrlf"); cl_git_pass(git_buf_text_crlf_to_lf(&tgt, &src)); check_buf("\ncrlf\ncrlf\ncrlf\ncrlf\ncrlf", tgt); @@ -1070,7 +1076,11 @@ void test_core_buffer__lf_and_crlf_conversions(void) git_buf_sets(&src, "\nlf\nlf\ncrlf\r\nlf\nlf\ncrlf\r\n"); - cl_git_fail_with(GIT_PASSTHROUGH, git_buf_text_lf_to_crlf(&tgt, &src)); + cl_git_pass(git_buf_text_lf_to_crlf(&tgt, &src)); + check_buf("\r\nlf\r\nlf\r\ncrlf\r\nlf\r\nlf\r\ncrlf\r\n", tgt); + + git_buf_sets(&src, "\nlf\nlf\ncrlf\r\nlf\nlf\ncrlf\r\n"); + cl_git_pass(git_buf_text_crlf_to_lf(&tgt, &src)); check_buf("\nlf\nlf\ncrlf\nlf\nlf\ncrlf\n", tgt); @@ -1078,7 +1088,9 @@ void test_core_buffer__lf_and_crlf_conversions(void) git_buf_sets(&src, "\ncrlf\r\ncrlf\r\nlf\ncrlf\r\ncrlf"); - cl_git_fail_with(GIT_PASSTHROUGH, git_buf_text_lf_to_crlf(&tgt, &src)); + cl_git_pass(git_buf_text_lf_to_crlf(&tgt, &src)); + check_buf("\r\ncrlf\r\ncrlf\r\nlf\r\ncrlf\r\ncrlf", tgt); + cl_git_pass(git_buf_text_crlf_to_lf(&tgt, &src)); check_buf("\ncrlf\ncrlf\nlf\ncrlf\ncrlf", tgt); @@ -1086,7 +1098,11 @@ void test_core_buffer__lf_and_crlf_conversions(void) git_buf_sets(&src, "\rcrlf\r\nlf\nlf\ncr\rcrlf\r\nlf\ncr\r"); - cl_git_fail_with(GIT_PASSTHROUGH, git_buf_text_lf_to_crlf(&tgt, &src)); + cl_git_pass(git_buf_text_lf_to_crlf(&tgt, &src)); + check_buf("\rcrlf\r\nlf\r\nlf\r\ncr\rcrlf\r\nlf\r\ncr\r", tgt); + + git_buf_sets(&src, "\rcrlf\r\nlf\nlf\ncr\rcrlf\r\nlf\ncr\r"); + cl_git_pass(git_buf_text_crlf_to_lf(&tgt, &src)); check_buf("\rcrlf\nlf\nlf\ncr\rcrlf\nlf\ncr\r", tgt); @@ -1102,7 +1118,9 @@ void test_core_buffer__lf_and_crlf_conversions(void) /* blob correspondence tests */ git_buf_sets(&src, ALL_CRLF_TEXT_RAW); - cl_git_fail_with(GIT_PASSTHROUGH, git_buf_text_lf_to_crlf(&tgt, &src)); + cl_git_pass(git_buf_text_lf_to_crlf(&tgt, &src)); + check_buf(ALL_CRLF_TEXT_AS_CRLF, tgt); + git_buf_sets(&src, ALL_CRLF_TEXT_RAW); cl_git_pass(git_buf_text_crlf_to_lf(&tgt, &src)); check_buf(ALL_CRLF_TEXT_AS_LF, tgt); git_buf_free(&src); @@ -1111,22 +1129,40 @@ void test_core_buffer__lf_and_crlf_conversions(void) git_buf_sets(&src, ALL_LF_TEXT_RAW); cl_git_pass(git_buf_text_lf_to_crlf(&tgt, &src)); check_buf(ALL_LF_TEXT_AS_CRLF, tgt); + git_buf_sets(&src, ALL_LF_TEXT_RAW); cl_git_pass(git_buf_text_crlf_to_lf(&tgt, &src)); check_buf(ALL_LF_TEXT_AS_LF, tgt); git_buf_free(&src); git_buf_free(&tgt); git_buf_sets(&src, MORE_CRLF_TEXT_RAW); - cl_git_fail_with(GIT_PASSTHROUGH, git_buf_text_lf_to_crlf(&tgt, &src)); + cl_git_pass(git_buf_text_lf_to_crlf(&tgt, &src)); + check_buf(MORE_CRLF_TEXT_AS_CRLF, tgt); + git_buf_sets(&src, MORE_CRLF_TEXT_RAW); cl_git_pass(git_buf_text_crlf_to_lf(&tgt, &src)); check_buf(MORE_CRLF_TEXT_AS_LF, tgt); git_buf_free(&src); git_buf_free(&tgt); git_buf_sets(&src, MORE_LF_TEXT_RAW); - cl_git_fail_with(GIT_PASSTHROUGH, git_buf_text_lf_to_crlf(&tgt, &src)); + cl_git_pass(git_buf_text_lf_to_crlf(&tgt, &src)); + check_buf(MORE_LF_TEXT_AS_CRLF, tgt); + git_buf_sets(&src, MORE_LF_TEXT_RAW); cl_git_pass(git_buf_text_crlf_to_lf(&tgt, &src)); check_buf(MORE_LF_TEXT_AS_LF, tgt); git_buf_free(&src); git_buf_free(&tgt); } + +void test_core_buffer__dont_grow_borrowed(void) +{ + const char *somestring = "blah blah"; + git_buf buf = GIT_BUF_INIT; + + git_buf_attach_notowned(&buf, somestring, strlen(somestring) + 1); + cl_assert_equal_p(somestring, buf.ptr); + cl_assert_equal_i(0, buf.asize); + cl_assert_equal_i(strlen(somestring) + 1, buf.size); + + cl_git_fail_with(GIT_EINVALID, git_buf_grow(&buf, 1024)); +} diff --git a/tests/diff/binary.c b/tests/diff/binary.c index 424a53e5f09..5298e9ebbd6 100644 --- a/tests/diff/binary.c +++ b/tests/diff/binary.c @@ -1,7 +1,10 @@ #include "clar_libgit2.h" +#include "git2/sys/diff.h" + #include "buffer.h" #include "filebuf.h" +#include "repository.h" static git_repository *repo; @@ -49,6 +52,11 @@ void test_patch( cl_assert_equal_s(expected, actual.ptr); + git_buf_clear(&actual); + cl_git_pass(git_diff_print(diff, GIT_DIFF_FORMAT_PATCH, git_diff_print_callback__to_buf, &actual)); + + cl_assert_equal_s(expected, actual.ptr); + git_buf_free(&actual); git_patch_free(patch); git_diff_free(diff); @@ -262,6 +270,35 @@ void test_diff_binary__delta_append(void) git_index_free(index); } +void test_diff_binary__empty_for_no_diff(void) +{ + git_diff_options opts = GIT_DIFF_OPTIONS_INIT; + git_oid id; + git_commit *commit; + git_tree *tree; + git_diff *diff; + git_buf actual = GIT_BUF_INIT; + + opts.flags = GIT_DIFF_SHOW_BINARY | GIT_DIFF_FORCE_BINARY; + opts.id_abbrev = GIT_OID_HEXSZ; + + repo = cl_git_sandbox_init("renames"); + + cl_git_pass(git_oid_fromstr(&id, "19dd32dfb1520a64e5bbaae8dce6ef423dfa2f13")); + cl_git_pass(git_commit_lookup(&commit, repo, &id)); + cl_git_pass(git_commit_tree(&tree, commit)); + + cl_git_pass(git_diff_tree_to_tree(&diff, repo, tree, tree, &opts)); + cl_git_pass(git_diff_print(diff, GIT_DIFF_FORMAT_PATCH, git_diff_print_callback__to_buf, &actual)); + + cl_assert_equal_s("", actual.ptr); + + git_buf_free(&actual); + git_diff_free(diff); + git_commit_free(commit); + git_tree_free(tree); +} + void test_diff_binary__index_to_workdir(void) { git_index *index; @@ -460,7 +497,7 @@ void test_diff_binary__blob_to_blob(void) opts.id_abbrev = GIT_OID_HEXSZ; repo = cl_git_sandbox_init("renames"); - cl_git_pass(git_repository_index(&index, repo)); + cl_git_pass(git_repository_index__weakptr(&index, repo)); cl_git_append2file("renames/untimely.txt", "Oh that crazy Kipling!\r\n"); cl_git_pass(git_index_add_bypath(index, "untimely.txt")); @@ -495,4 +532,7 @@ void test_diff_binary__blob_to_blob(void) git__free(diff_data.old_path); git__free(diff_data.new_path); + + git_buf_free(&diff_data.old_binary_base85); + git_buf_free(&diff_data.new_binary_base85); } diff --git a/tests/diff/blob.c b/tests/diff/blob.c index b0253f6dcb7..c3933c3134d 100644 --- a/tests/diff/blob.c +++ b/tests/diff/blob.c @@ -33,11 +33,11 @@ void test_diff_blob__initialize(void) /* tests/resources/attr/root_test4.txt */ cl_git_pass(git_oid_fromstrn(&oid, "a0f7217a", 8)); - cl_git_pass(git_blob_lookup_prefix(&d, g_repo, &oid, 4)); + cl_git_pass(git_blob_lookup_prefix(&d, g_repo, &oid, 8)); /* alien.png */ cl_git_pass(git_oid_fromstrn(&oid, "edf3dcee", 8)); - cl_git_pass(git_blob_lookup_prefix(&alien, g_repo, &oid, 4)); + cl_git_pass(git_blob_lookup_prefix(&alien, g_repo, &oid, 8)); } void test_diff_blob__cleanup(void) @@ -80,7 +80,7 @@ void test_diff_blob__can_compare_text_blobs(void) /* tests/resources/attr/root_test3 */ cl_git_pass(git_oid_fromstrn(&c_oid, "c96bbb2c2557a832", 16)); - cl_git_pass(git_blob_lookup_prefix(&c, g_repo, &c_oid, 8)); + cl_git_pass(git_blob_lookup_prefix(&c, g_repo, &c_oid, 16)); /* Doing the equivalent of a `git diff -U1` on these files */ @@ -163,15 +163,15 @@ void test_diff_blob__can_compare_text_blobs_with_patch(void) /* tests/resources/attr/root_test1 */ cl_git_pass(git_oid_fromstrn(&a_oid, "45141a79", 8)); - cl_git_pass(git_blob_lookup_prefix(&a, g_repo, &a_oid, 4)); + cl_git_pass(git_blob_lookup_prefix(&a, g_repo, &a_oid, 8)); /* tests/resources/attr/root_test2 */ cl_git_pass(git_oid_fromstrn(&b_oid, "4d713dc4", 8)); - cl_git_pass(git_blob_lookup_prefix(&b, g_repo, &b_oid, 4)); + cl_git_pass(git_blob_lookup_prefix(&b, g_repo, &b_oid, 8)); /* tests/resources/attr/root_test3 */ cl_git_pass(git_oid_fromstrn(&c_oid, "c96bbb2c2557a832", 16)); - cl_git_pass(git_blob_lookup_prefix(&c, g_repo, &c_oid, 8)); + cl_git_pass(git_blob_lookup_prefix(&c, g_repo, &c_oid, 16)); /* Doing the equivalent of a `git diff -U1` on these files */ @@ -437,7 +437,7 @@ void test_diff_blob__can_compare_two_binary_blobs(void) /* heart.png */ cl_git_pass(git_oid_fromstrn(&h_oid, "de863bff", 8)); - cl_git_pass(git_blob_lookup_prefix(&heart, g_repo, &h_oid, 4)); + cl_git_pass(git_blob_lookup_prefix(&heart, g_repo, &h_oid, 8)); cl_git_pass(git_diff_blobs( alien, NULL, heart, NULL, &opts, @@ -505,7 +505,7 @@ void test_diff_blob__comparing_two_text_blobs_honors_interhunkcontext(void) /* tests/resources/attr/root_test1 from commit f5b0af1 */ cl_git_pass(git_oid_fromstrn(&old_d_oid, "fe773770", 8)); - cl_git_pass(git_blob_lookup_prefix(&old_d, g_repo, &old_d_oid, 4)); + cl_git_pass(git_blob_lookup_prefix(&old_d, g_repo, &old_d_oid, 8)); /* Test with default inter-hunk-context (not set) => default is 0 */ cl_git_pass(git_diff_blobs( @@ -598,7 +598,7 @@ void test_diff_blob__can_compare_blob_to_buffer(void) /* tests/resources/attr/root_test1 */ cl_git_pass(git_oid_fromstrn(&a_oid, "45141a79", 8)); - cl_git_pass(git_blob_lookup_prefix(&a, g_repo, &a_oid, 4)); + cl_git_pass(git_blob_lookup_prefix(&a, g_repo, &a_oid, 8)); /* diff from blob a to content of b */ quick_diff_blob_to_str(a, NULL, b_content, 0, NULL); @@ -640,7 +640,7 @@ void test_diff_blob__can_compare_blob_to_buffer_with_patch(void) /* tests/resources/attr/root_test1 */ cl_git_pass(git_oid_fromstrn(&a_oid, "45141a79", 8)); - cl_git_pass(git_blob_lookup_prefix(&a, g_repo, &a_oid, 4)); + cl_git_pass(git_blob_lookup_prefix(&a, g_repo, &a_oid, 8)); /* diff from blob a to content of b */ cl_git_pass(git_patch_from_blob_and_buffer( @@ -719,10 +719,10 @@ void test_diff_blob__binary_data_comparisons(void) opts.flags |= GIT_DIFF_INCLUDE_UNMODIFIED; cl_git_pass(git_oid_fromstrn(&oid, "45141a79", 8)); - cl_git_pass(git_blob_lookup_prefix(&nonbin, g_repo, &oid, 4)); + cl_git_pass(git_blob_lookup_prefix(&nonbin, g_repo, &oid, 8)); cl_git_pass(git_oid_fromstrn(&oid, "b435cd56", 8)); - cl_git_pass(git_blob_lookup_prefix(&bin, g_repo, &oid, 4)); + cl_git_pass(git_blob_lookup_prefix(&bin, g_repo, &oid, 8)); /* non-binary to reference content */ @@ -825,11 +825,11 @@ void test_diff_blob__using_path_and_attributes(void) opts.flags |= GIT_DIFF_INCLUDE_UNMODIFIED; cl_git_pass(git_oid_fromstrn(&oid, "45141a79", 8)); - cl_git_pass(git_blob_lookup_prefix(&nonbin, g_repo, &oid, 4)); + cl_git_pass(git_blob_lookup_prefix(&nonbin, g_repo, &oid, 8)); /* 20b: "Hello from the root\n" */ cl_git_pass(git_oid_fromstrn(&oid, "b435cd56", 8)); - cl_git_pass(git_blob_lookup_prefix(&bin, g_repo, &oid, 4)); + cl_git_pass(git_blob_lookup_prefix(&bin, g_repo, &oid, 8)); /* 33b: "0123456789\n\x01\x02\x03\x04\x05\x06\x07\x08\x09\n0123456789\n" */ /* non-binary to reference content */ diff --git a/tests/diff/index.c b/tests/diff/index.c index 242fb004620..f702568bfb6 100644 --- a/tests/diff/index.c +++ b/tests/diff/index.c @@ -183,7 +183,7 @@ static void do_conflicted_diff(diff_expects *exp, unsigned long flags) cl_git_pass(git_repository_index(&index, g_repo)); ancestor.path = ours.path = theirs.path = "staged_changes"; - ancestor.mode = ours.mode = theirs.mode = 0100644; + ancestor.mode = ours.mode = theirs.mode = GIT_FILEMODE_BLOB; git_oid_fromstr(&ancestor.id, "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef"); git_oid_fromstr(&ours.id, "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef"); @@ -239,3 +239,32 @@ void test_diff_index__reports_conflicts_when_reversed(void) cl_assert_equal_i(2, exp.line_adds); cl_assert_equal_i(5, exp.line_dels); } + +void test_diff_index__not_in_head_conflicted(void) +{ + const char *a_commit = "26a125ee1bf"; /* the current HEAD */ + git_index_entry theirs = {{0}}; + git_index *index; + git_diff *diff; + const git_diff_delta *delta; + + git_tree *a = resolve_commit_oid_to_tree(g_repo, a_commit); + + cl_git_pass(git_repository_index(&index, g_repo)); + cl_git_pass(git_index_read_tree(index, a)); + + theirs.path = "file_not_in_head"; + theirs.mode = GIT_FILEMODE_BLOB; + git_oid_fromstr(&theirs.id, "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef"); + cl_git_pass(git_index_conflict_add(index, NULL, NULL, &theirs)); + + cl_git_pass(git_diff_tree_to_index(&diff, g_repo, a, index, NULL)); + + cl_assert_equal_i(git_diff_num_deltas(diff), 1); + delta = git_diff_get_delta(diff, 0); + cl_assert_equal_i(delta->status, GIT_DELTA_CONFLICTED); + + git_diff_free(diff); + git_index_free(index); + git_tree_free(a); +} diff --git a/tests/diff/racy.c b/tests/diff/racy.c deleted file mode 100644 index a109f8c3b7f..00000000000 --- a/tests/diff/racy.c +++ /dev/null @@ -1,39 +0,0 @@ -#include "clar_libgit2.h" - -#include "buffer.h" - -static git_repository *g_repo; - -void test_diff_racy__initialize(void) -{ - cl_git_pass(git_repository_init(&g_repo, "diff_racy", false)); -} - -void test_diff_racy__cleanup(void) -{ - cl_git_sandbox_cleanup(); -} - -void test_diff_racy__diff(void) -{ - git_index *index; - git_diff *diff; - git_buf path = GIT_BUF_INIT; - - cl_git_pass(git_buf_joinpath(&path, git_repository_workdir(g_repo), "A")); - cl_git_mkfile(path.ptr, "A"); - - /* Put 'A' into the index */ - cl_git_pass(git_repository_index(&index, g_repo)); - cl_git_pass(git_index_add_bypath(index, "A")); - cl_git_pass(git_index_write(index)); - - cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, index, NULL)); - cl_assert_equal_i(0, git_diff_num_deltas(diff)); - - /* Change its contents quickly, so we get the same timestamp */ - cl_git_mkfile(path.ptr, "B"); - - cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, index, NULL)); - cl_assert_equal_i(1, git_diff_num_deltas(diff)); -} diff --git a/tests/diff/submodules.c b/tests/diff/submodules.c index e2169583bf0..08682cd4b35 100644 --- a/tests/diff/submodules.c +++ b/tests/diff/submodules.c @@ -273,13 +273,13 @@ void test_diff_submodules__invalid_cache(void) /* create untracked file in submodule working directory */ cl_git_mkfile("submod2/sm_changed_head/new_around_here", "hello"); - git_submodule_set_ignore(sm, GIT_SUBMODULE_IGNORE_NONE); + git_submodule_set_ignore(g_repo, git_submodule_name(sm), GIT_SUBMODULE_IGNORE_NONE); cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, NULL, &opts)); check_diff_patches(diff, expected_dirty); git_diff_free(diff); - git_submodule_set_ignore(sm, GIT_SUBMODULE_IGNORE_UNTRACKED); + git_submodule_set_ignore(g_repo, git_submodule_name(sm), GIT_SUBMODULE_IGNORE_UNTRACKED); cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, NULL, &opts)); check_diff_patches(diff, expected_unchanged); @@ -301,7 +301,7 @@ void test_diff_submodules__invalid_cache(void) check_diff_patches(diff, expected_dirty); git_diff_free(diff); - git_submodule_set_ignore(sm, GIT_SUBMODULE_IGNORE_DIRTY); + git_submodule_set_ignore(g_repo, git_submodule_name(sm), GIT_SUBMODULE_IGNORE_DIRTY); cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, NULL, &opts)); check_diff_patches(diff, expected_unchanged); @@ -312,13 +312,13 @@ void test_diff_submodules__invalid_cache(void) cl_git_pass(git_repository_index(&smindex, smrepo)); cl_git_pass(git_index_add_bypath(smindex, "file_to_modify")); - git_submodule_set_ignore(sm, GIT_SUBMODULE_IGNORE_UNTRACKED); + git_submodule_set_ignore(g_repo, git_submodule_name(sm), GIT_SUBMODULE_IGNORE_UNTRACKED); cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, NULL, &opts)); check_diff_patches(diff, expected_dirty); git_diff_free(diff); - git_submodule_set_ignore(sm, GIT_SUBMODULE_IGNORE_DIRTY); + git_submodule_set_ignore(g_repo, git_submodule_name(sm), GIT_SUBMODULE_IGNORE_DIRTY); cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, NULL, &opts)); check_diff_patches(diff, expected_unchanged); @@ -327,19 +327,19 @@ void test_diff_submodules__invalid_cache(void) /* commit changed index of submodule */ cl_repo_commit_from_index(NULL, smrepo, NULL, 1372350000, "Move it"); - git_submodule_set_ignore(sm, GIT_SUBMODULE_IGNORE_DIRTY); + git_submodule_set_ignore(g_repo, git_submodule_name(sm), GIT_SUBMODULE_IGNORE_DIRTY); cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, NULL, &opts)); check_diff_patches(diff, expected_moved); git_diff_free(diff); - git_submodule_set_ignore(sm, GIT_SUBMODULE_IGNORE_ALL); + git_submodule_set_ignore(g_repo, git_submodule_name(sm), GIT_SUBMODULE_IGNORE_ALL); cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, NULL, &opts)); check_diff_patches(diff, expected_unchanged); git_diff_free(diff); - git_submodule_set_ignore(sm, GIT_SUBMODULE_IGNORE_NONE); + git_submodule_set_ignore(g_repo, git_submodule_name(sm), GIT_SUBMODULE_IGNORE_NONE); cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, NULL, &opts)); check_diff_patches(diff, expected_moved_dirty); diff --git a/tests/diff/tree.c b/tests/diff/tree.c index 6dd17203d10..2bc9e6a5541 100644 --- a/tests/diff/tree.c +++ b/tests/diff/tree.c @@ -89,7 +89,7 @@ void test_diff_tree__0(void) } #define DIFF_OPTS(FLAGS, CTXT) \ - {GIT_DIFF_OPTIONS_VERSION, (FLAGS), GIT_SUBMODULE_IGNORE_DEFAULT, \ + {GIT_DIFF_OPTIONS_VERSION, (FLAGS), GIT_SUBMODULE_IGNORE_UNSPECIFIED, \ {NULL,0}, NULL, NULL, (CTXT), 1} void test_diff_tree__options(void) diff --git a/tests/diff/workdir.c b/tests/diff/workdir.c index 6b72f3286b4..8a23f53ae7d 100644 --- a/tests/diff/workdir.c +++ b/tests/diff/workdir.c @@ -1544,19 +1544,21 @@ void test_diff_workdir__with_stale_index(void) static int touch_file(void *payload, git_buf *path) { - int fd; - char b; + struct stat st; + struct timeval times[2]; GIT_UNUSED(payload); if (git_path_isdir(path->ptr)) return 0; - cl_assert((fd = p_open(path->ptr, O_RDWR)) >= 0); - cl_assert_equal_i(1, p_read(fd, &b, 1)); - cl_must_pass(p_lseek(fd, 0, SEEK_SET)); - cl_must_pass(p_write(fd, &b, 1)); - cl_must_pass(p_close(fd)); + cl_must_pass(p_stat(path->ptr, &st)); + + times[0].tv_sec = st.st_mtime + 3; + times[0].tv_usec = 0; + times[1].tv_sec = st.st_mtime + 3; + times[1].tv_usec = 0; + cl_must_pass(p_utimes(path->ptr, times)); return 0; } @@ -1623,6 +1625,8 @@ void test_diff_workdir__can_update_index(void) /* now if we do it again, we should see fewer OID calculations */ + /* tick again as the index updating from the previous diff might have reset the timestamp */ + tick_index(index); basic_diff_status(&diff, &opts); cl_git_pass(git_diff_get_perfdata(&perf, diff)); @@ -1745,3 +1749,98 @@ void test_diff_workdir__binary_detection(void) git_index_free(idx); git_buf_free(&b); } + +void test_diff_workdir__to_index_conflicted(void) { + const char *a_commit = "26a125ee1bf"; /* the current HEAD */ + git_index_entry ancestor = {{0}}, ours = {{0}}, theirs = {{0}}; + git_tree *a; + git_index *index; + git_diff *diff1, *diff2; + const git_diff_delta *delta; + + g_repo = cl_git_sandbox_init("status"); + a = resolve_commit_oid_to_tree(g_repo, a_commit); + + cl_git_pass(git_repository_index(&index, g_repo)); + + ancestor.path = ours.path = theirs.path = "_file"; + ancestor.mode = ours.mode = theirs.mode = 0100644; + git_oid_fromstr(&ancestor.id, "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef"); + git_oid_fromstr(&ours.id, "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef"); + git_oid_fromstr(&theirs.id, "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef"); + cl_git_pass(git_index_conflict_add(index, &ancestor, &ours, &theirs)); + + cl_git_pass(git_diff_tree_to_index(&diff1, g_repo, a, index, NULL)); + cl_git_pass(git_diff_index_to_workdir(&diff2, g_repo, index, NULL)); + cl_git_pass(git_diff_merge(diff1, diff2)); + + cl_assert_equal_i(git_diff_num_deltas(diff1), 12); + delta = git_diff_get_delta(diff1, 0); + cl_assert_equal_s(delta->old_file.path, "_file"); + cl_assert_equal_i(delta->nfiles, 1); + cl_assert_equal_i(delta->status, GIT_DELTA_CONFLICTED); + + git_diff_free(diff2); + git_diff_free(diff1); + git_index_free(index); + git_tree_free(a); +} + +void test_diff_workdir__only_writes_index_when_necessary(void) +{ + git_index *index; + git_diff_options opts = GIT_DIFF_OPTIONS_INIT; + git_diff *diff = NULL; + git_reference *head; + git_object *head_object; + git_oid initial, first, second; + git_buf path = GIT_BUF_INIT; + struct stat st; + struct timeval times[2]; + + opts.flags |= GIT_DIFF_INCLUDE_UNTRACKED | GIT_DIFF_UPDATE_INDEX; + + g_repo = cl_git_sandbox_init("status"); + + cl_git_pass(git_repository_index(&index, g_repo)); + cl_git_pass(git_repository_head(&head, g_repo)); + cl_git_pass(git_reference_peel(&head_object, head, GIT_OBJ_COMMIT)); + + cl_git_pass(git_reset(g_repo, head_object, GIT_RESET_HARD, NULL)); + + git_oid_cpy(&initial, git_index_checksum(index)); + + /* update the index timestamp to avoid raciness */ + cl_must_pass(p_stat("status/.git/index", &st)); + + times[0].tv_sec = st.st_mtime + 5; + times[0].tv_usec = 0; + times[1].tv_sec = st.st_mtime + 5; + times[1].tv_usec = 0; + + cl_must_pass(p_utimes("status/.git/index", times)); + + /* ensure diff doesn't touch the index */ + cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, NULL, &opts)); + git_diff_free(diff); + + git_oid_cpy(&first, git_index_checksum(index)); + cl_assert(!git_oid_equal(&initial, &first)); + + /* touch all the files so stat times are different */ + cl_git_pass(git_buf_sets(&path, "status")); + cl_git_pass(git_path_direach(&path, 0, touch_file, NULL)); + + cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, NULL, &opts)); + git_diff_free(diff); + + /* ensure the second diff did update the index */ + git_oid_cpy(&second, git_index_checksum(index)); + cl_assert(!git_oid_equal(&first, &second)); + + git_buf_free(&path); + git_object_free(head_object); + git_reference_free(head); + git_index_free(index); +} + diff --git a/tests/fetchhead/nonetwork.c b/tests/fetchhead/nonetwork.c index 24e87a61896..3b750af5e3c 100644 --- a/tests/fetchhead/nonetwork.c +++ b/tests/fetchhead/nonetwork.c @@ -351,3 +351,50 @@ void test_fetchhead_nonetwork__quote_in_branch_name(void) cl_git_rewritefile("./test1/.git/FETCH_HEAD", FETCH_HEAD_QUOTE_DATA); cl_git_pass(git_repository_fetchhead_foreach(g_repo, read_noop, NULL)); } + +static bool found_master; +static bool find_master_called; + +int find_master(const char *ref_name, const char *remote_url, const git_oid *oid, unsigned int is_merge, void *payload) +{ + GIT_UNUSED(remote_url); + GIT_UNUSED(oid); + GIT_UNUSED(payload); + + find_master_called = true; + + if (!strcmp("refs/heads/master", ref_name)) { + cl_assert(is_merge); + found_master = true; + } + + return 0; +} + +void test_fetchhead_nonetwork__create_when_refpecs_given(void) +{ + git_remote *remote; + git_buf path = GIT_BUF_INIT; + char *refspec = "refs/heads/master"; + git_strarray specs = { + &refspec, + 1, + }; + + cl_set_cleanup(&cleanup_repository, "./test1"); + cl_git_pass(git_repository_init(&g_repo, "./test1", 0)); + + cl_git_pass(git_buf_joinpath(&path, git_repository_path(g_repo), "FETCH_HEAD")); + cl_git_pass(git_remote_create(&remote, g_repo, "origin", cl_fixture("testrepo.git"))); + + cl_assert(!git_path_exists(path.ptr)); + cl_git_pass(git_remote_fetch(remote, &specs, NULL, NULL)); + cl_assert(git_path_exists(path.ptr)); + + cl_git_pass(git_repository_fetchhead_foreach(g_repo, find_master, NULL)); + cl_assert(find_master_called); + cl_assert(found_master); + + git_remote_free(remote); + git_buf_free(&path); +} diff --git a/tests/filter/crlf.c b/tests/filter/crlf.c index 406d3b6b0f7..a8ebd949f38 100644 --- a/tests/filter/crlf.c +++ b/tests/filter/crlf.c @@ -38,11 +38,7 @@ void test_filter_crlf__to_worktree(void) cl_git_pass(git_filter_list_apply_to_data(&out, fl, &in)); -#ifdef GIT_WIN32 cl_assert_equal_s("Some text\r\nRight here\r\n", out.ptr); -#else - cl_assert_equal_s("Some text\nRight here\n", out.ptr); -#endif git_filter_list_free(fl); git_buf_free(&out); diff --git a/tests/filter/file.c b/tests/filter/file.c index 8243a026a77..599f4e54b5b 100644 --- a/tests/filter/file.c +++ b/tests/filter/file.c @@ -91,9 +91,9 @@ void test_filter_file__apply_stream(void) cl_git_pass(git_filter_list_push(fl, crlf, NULL)); - cl_git_pass(git_filter_list_stream_file(fl, g_repo, "all-crlf", (git_writestream *)&write_target)); + cl_git_pass(git_filter_list_stream_file(fl, g_repo, "all-crlf", &write_target.base)); cl_assert_equal_s("crlf\ncrlf\ncrlf\ncrlf\n", write_target.buf.ptr); git_filter_list_free(fl); - write_target.base.free((struct git_writestream *)&write_target); + write_target.base.free(&write_target.base); } diff --git a/tests/generate_crlf.sh b/tests/generate_crlf.sh new file mode 100644 index 00000000000..d3fd1bb9a56 --- /dev/null +++ b/tests/generate_crlf.sh @@ -0,0 +1,73 @@ +#!/usr/bin/env bash + +set -e + +if [ "$1" == "" -o "$2" == "" ]; then + echo "usage: $0 crlfrepo directory [tempdir]" + exit 1 +fi + +input=$1 +output=$2 +tempdir=$3 + +set -u + +create_repo() { + local input=$1 + local output=$2 + local tempdir=$3 + local systype=$4 + local autocrlf=$5 + local attr=$6 + + local worktree="${output}/${systype}/autocrlf_${autocrlf}" + + if [ "$attr" != "" ]; then + local attrdir=`echo $attr | sed -e "s/ /,/g" | sed -e "s/=/_/g"` + worktree="${worktree},${attrdir}" + fi + + if [ "$tempdir" = "" ]; then + local gitdir="${worktree}/.git" + else + local gitdir="${tempdir}/generate_crlf_${RANDOM}" + fi + + echo "Creating ${worktree}" + mkdir -p "${worktree}" + + git clone --no-checkout --quiet --bare "${input}/.gitted" "${gitdir}" + git --work-tree="${worktree}" --git-dir="${gitdir}" config core.autocrlf ${autocrlf} + + if [ "$attr" != "" ]; then + echo "* ${attr}" >> "${worktree}/.gitattributes" + fi + + git --work-tree="${worktree}" --git-dir="${gitdir}" checkout HEAD + + if [ "$attr" != "" ]; then + rm "${worktree}/.gitattributes" + fi + + if [ "$tempdir" != "" ]; then + rm -rf "${gitdir}" + fi +} + +if [[ `uname -s` == MINGW* ]]; then + systype="windows" +else + systype="posix" +fi + +for autocrlf in true false input; do + for attr in "" text text=auto -text crlf -crlf eol=lf eol=crlf \ + "text eol=lf" "text eol=crlf" \ + "text=auto eol=lf" "text=auto eol=crlf"; do + + create_repo "${input}" "${output}" "${tempdir}" \ + "${systype}" "${autocrlf}" "${attr}" + done +done + diff --git a/tests/index/racy.c b/tests/index/racy.c new file mode 100644 index 00000000000..3b26aabf44a --- /dev/null +++ b/tests/index/racy.c @@ -0,0 +1,147 @@ +#include "clar_libgit2.h" +#include "../checkout/checkout_helpers.h" + +#include "buffer.h" +#include "index.h" +#include "repository.h" + +static git_repository *g_repo; + +void test_index_racy__initialize(void) +{ + cl_git_pass(git_repository_init(&g_repo, "diff_racy", false)); +} + +void test_index_racy__cleanup(void) +{ + git_repository_free(g_repo); + g_repo = NULL; + + cl_fixture_cleanup("diff_racy"); +} + +void test_index_racy__diff(void) +{ + git_index *index; + git_diff *diff; + git_buf path = GIT_BUF_INIT; + + cl_git_pass(git_buf_joinpath(&path, git_repository_workdir(g_repo), "A")); + cl_git_mkfile(path.ptr, "A"); + + /* Put 'A' into the index */ + cl_git_pass(git_repository_index(&index, g_repo)); + cl_git_pass(git_index_add_bypath(index, "A")); + cl_git_pass(git_index_write(index)); + + cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, index, NULL)); + cl_assert_equal_i(0, git_diff_num_deltas(diff)); + git_diff_free(diff); + + /* Change its contents quickly, so we get the same timestamp */ + cl_git_mkfile(path.ptr, "B"); + + cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, index, NULL)); + cl_assert_equal_i(1, git_diff_num_deltas(diff)); + + git_index_free(index); + git_diff_free(diff); + git_buf_free(&path); +} + +void test_index_racy__write_index_just_after_file(void) +{ + git_index *index; + git_diff *diff; + git_buf path = GIT_BUF_INIT; + struct timeval times[2]; + + /* Make sure we do have a timestamp */ + cl_git_pass(git_repository_index(&index, g_repo)); + cl_git_pass(git_index_write(index)); + + cl_git_pass(git_buf_joinpath(&path, git_repository_workdir(g_repo), "A")); + cl_git_mkfile(path.ptr, "A"); + /* Force the file's timestamp to be a second after we wrote the index */ + times[0].tv_sec = index->stamp.mtime + 1; + times[0].tv_usec = 0; + times[1].tv_sec = index->stamp.mtime + 1; + times[1].tv_usec = 0; + cl_git_pass(p_utimes(path.ptr, times)); + + /* + * Put 'A' into the index, the size field will be filled, + * because the index' on-disk timestamp does not match the + * file's timestamp. + */ + cl_git_pass(git_index_add_bypath(index, "A")); + cl_git_pass(git_index_write(index)); + + cl_git_mkfile(path.ptr, "B"); + /* + * Pretend this index' modification happend a second after the + * file update, and rewrite the file in that same second. + */ + times[0].tv_sec = index->stamp.mtime + 2; + times[0].tv_usec = 0; + times[1].tv_sec = index->stamp.mtime + 2; + times[0].tv_usec = 0; + + cl_git_pass(p_utimes(git_index_path(index), times)); + cl_git_pass(p_utimes(path.ptr, times)); + + cl_git_pass(git_index_read(index, true)); + + cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, index, NULL)); + cl_assert_equal_i(1, git_diff_num_deltas(diff)); + + git_buf_free(&path); + git_diff_free(diff); + git_index_free(index); +} + +void test_index_racy__empty_file_after_smudge(void) +{ + git_index *index; + git_diff *diff; + git_buf path = GIT_BUF_INIT; + int i, found_race = 0; + const git_index_entry *entry; + + /* Make sure we do have a timestamp */ + cl_git_pass(git_repository_index__weakptr(&index, g_repo)); + cl_git_pass(git_index_write(index)); + + cl_git_pass(git_buf_joinpath(&path, git_repository_workdir(g_repo), "A")); + + /* Make sure writing the file, adding and rewriting happen in the same second */ + for (i = 0; i < 10; i++) { + struct stat st; + cl_git_mkfile(path.ptr, "A"); + + cl_git_pass(git_index_add_bypath(index, "A")); + cl_git_mkfile(path.ptr, "B"); + cl_git_pass(git_index_write(index)); + + cl_git_mkfile(path.ptr, ""); + + cl_git_pass(p_stat(path.ptr, &st)); + cl_assert(entry = git_index_get_bypath(index, "A", 0)); + if (entry->mtime.seconds == (int32_t) st.st_mtime) { + found_race = 1; + break; + } + + } + + if (!found_race) + cl_fail("failed to find race after 10 attempts"); + + cl_assert_equal_i(0, entry->file_size); + + cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, index, NULL)); + cl_assert_equal_i(1, git_diff_num_deltas(diff)); + + git_buf_free(&path); + git_diff_free(diff); +} diff --git a/tests/index/tests.c b/tests/index/tests.c index 3c8060a2e46..e1ff12ad0ff 100644 --- a/tests/index/tests.c +++ b/tests/index/tests.c @@ -103,8 +103,8 @@ void test_index_tests__default_test_index(void) git_index_entry *e = entries[test_entries[i].index]; cl_assert_equal_s(e->path, test_entries[i].path); - cl_assert(e->mtime.seconds == test_entries[i].mtime); - cl_assert(e->file_size == test_entries[i].file_size); + cl_assert_equal_i(e->mtime.seconds, test_entries[i].mtime); + cl_assert_equal_i(e->file_size, test_entries[i].file_size); } git_index_free(index); diff --git a/tests/merge/workdir/dirty.c b/tests/merge/workdir/dirty.c index 30c404b701e..4bf984c231d 100644 --- a/tests/merge/workdir/dirty.c +++ b/tests/merge/workdir/dirty.c @@ -133,12 +133,25 @@ static void hack_index(char *files[]) struct stat statbuf; git_buf path = GIT_BUF_INIT; git_index_entry *entry; + struct timeval times[2]; + time_t now; size_t i; /* Update the index to suggest that checkout placed these files on * disk, keeping the object id but updating the cache, which will * emulate a Git implementation's different filter. + * + * We set the file's timestamp to before now to pretend that + * it was an old checkout so we don't trigger the racy + * protections would would check the content. */ + + now = time(NULL); + times[0].tv_sec = now - 5; + times[0].tv_usec = 0; + times[1].tv_sec = now - 5; + times[1].tv_usec = 0; + for (i = 0, filename = files[i]; filename; filename = files[++i]) { git_buf_clear(&path); @@ -146,6 +159,7 @@ static void hack_index(char *files[]) git_index_get_bypath(repo_index, filename, 0)); cl_git_pass(git_buf_printf(&path, "%s/%s", TEST_REPO_PATH, filename)); + cl_git_pass(p_utimes(path.ptr, times)); cl_git_pass(p_stat(path.ptr, &statbuf)); entry->ctime.seconds = (git_time_t)statbuf.st_ctime; @@ -245,7 +259,6 @@ static int merge_differently_filtered_files(char *files[]) write_files(files); hack_index(files); - repo_index->stamp.mtime = time(NULL) + 1; cl_git_pass(git_index_write(repo_index)); error = merge_branch(); diff --git a/tests/network/refspecs.c b/tests/network/refspecs.c index 614d91d0736..c47f197ff10 100644 --- a/tests/network/refspecs.c +++ b/tests/network/refspecs.c @@ -155,4 +155,6 @@ void test_network_refspecs__matching(void) cl_assert_equal_s(":", spec.string); cl_assert_equal_s("", spec.src); cl_assert_equal_s("", spec.dst); + + git_refspec__free(&spec); } diff --git a/tests/refs/revparse.c b/tests/refs/revparse.c index 3f89b5f7765..c22c30440ec 100644 --- a/tests/refs/revparse.c +++ b/tests/refs/revparse.c @@ -812,3 +812,18 @@ void test_refs_revparse__ext_returns_NULL_reference_when_expression_points_at_a_ "0266163a49e280c4f5ed1e08facd36a2bd716bcf", NULL); } + +void test_refs_revparse__uneven_sizes(void) +{ + test_object("a65fedf39aefe402d3bb6e24df4d4f5fe454775", + "a65fedf39aefe402d3bb6e24df4d4f5fe4547750"); + + test_object("a65fedf39aefe402d3bb6e24df4d4f5fe45477", + "a65fedf39aefe402d3bb6e24df4d4f5fe4547750"); + + test_object("a65fedf39aefe402d3bb6e24df4d4f5fe4547", + "a65fedf39aefe402d3bb6e24df4d4f5fe4547750"); + + test_object("a65fedf39aefe402d3bb6e24df4d", + "a65fedf39aefe402d3bb6e24df4d4f5fe4547750"); +} diff --git a/tests/repo/open.c b/tests/repo/open.c index 637c785d53a..eb459e51d6d 100644 --- a/tests/repo/open.c +++ b/tests/repo/open.c @@ -20,6 +20,23 @@ void test_repo_open__bare_empty_repo(void) cl_assert(git_repository_workdir(repo) == NULL); } +void test_repo_open__format_version_1(void) +{ + git_repository *repo; + git_config *config; + + repo = cl_git_sandbox_init("empty_bare.git"); + + cl_git_pass(git_repository_open(&repo, "empty_bare.git")); + cl_git_pass(git_repository_config(&config, repo)); + + cl_git_pass(git_config_set_int32(config, "core.repositoryformatversion", 1)); + + git_config_free(config); + git_repository_free(repo); + cl_git_fail(git_repository_open(&repo, "empty_bare.git")); +} + void test_repo_open__standard_empty_repo_through_gitdir(void) { git_repository *repo; diff --git a/tests/resources/crlf/.gitted/index b/tests/resources/crlf/.gitted/index index aadd35e727f..e8d43e97e18 100644 Binary files a/tests/resources/crlf/.gitted/index and b/tests/resources/crlf/.gitted/index differ diff --git a/tests/resources/crlf/.gitted/objects/09/7722be9b67b48dfe3b19396d02fd535300ee46 b/tests/resources/crlf/.gitted/objects/09/7722be9b67b48dfe3b19396d02fd535300ee46 new file mode 100644 index 00000000000..5c5c24cd54e Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/09/7722be9b67b48dfe3b19396d02fd535300ee46 differ diff --git a/tests/resources/crlf/.gitted/objects/16/78031ee023a23bd3515e4e1693b661a69f0a73 b/tests/resources/crlf/.gitted/objects/16/78031ee023a23bd3515e4e1693b661a69f0a73 new file mode 100644 index 00000000000..4aa4ffb1d67 Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/16/78031ee023a23bd3515e4e1693b661a69f0a73 differ diff --git a/tests/resources/crlf/.gitted/objects/18/c637c5d9aba6eed226ee1840cd1ca2e6c4e4c5 b/tests/resources/crlf/.gitted/objects/18/c637c5d9aba6eed226ee1840cd1ca2e6c4e4c5 new file mode 100644 index 00000000000..790eb1324a0 Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/18/c637c5d9aba6eed226ee1840cd1ca2e6c4e4c5 differ diff --git a/tests/resources/crlf/.gitted/objects/20/3555c5676d75cd80d69b50beb1f4b588c59ceb b/tests/resources/crlf/.gitted/objects/20/3555c5676d75cd80d69b50beb1f4b588c59ceb new file mode 100644 index 00000000000..8038a9b10bc Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/20/3555c5676d75cd80d69b50beb1f4b588c59ceb differ diff --git a/tests/resources/crlf/.gitted/objects/23/f4582779e60bfa7f14750ad507399a58876611 b/tests/resources/crlf/.gitted/objects/23/f4582779e60bfa7f14750ad507399a58876611 new file mode 100644 index 00000000000..4a4e4dc9e65 Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/23/f4582779e60bfa7f14750ad507399a58876611 differ diff --git a/tests/resources/crlf/.gitted/objects/2a/d3df895f68f4dda6a0a815c620b909bdd27c05 b/tests/resources/crlf/.gitted/objects/2a/d3df895f68f4dda6a0a815c620b909bdd27c05 new file mode 100644 index 00000000000..f5421cf6a0d Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/2a/d3df895f68f4dda6a0a815c620b909bdd27c05 differ diff --git a/tests/resources/crlf/.gitted/objects/2b/d9d81b51a867352bab307b89cbb5b4a69adfe1 b/tests/resources/crlf/.gitted/objects/2b/d9d81b51a867352bab307b89cbb5b4a69adfe1 new file mode 100644 index 00000000000..96d952e855d Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/2b/d9d81b51a867352bab307b89cbb5b4a69adfe1 differ diff --git a/tests/resources/crlf/.gitted/objects/2c/03f9f407b576eae80327864bab572e282a33ea b/tests/resources/crlf/.gitted/objects/2c/03f9f407b576eae80327864bab572e282a33ea new file mode 100644 index 00000000000..0e4afbbba61 Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/2c/03f9f407b576eae80327864bab572e282a33ea differ diff --git a/tests/resources/crlf/.gitted/objects/33/cdead44e1c3ec178e39a4a69085280dbacf01b b/tests/resources/crlf/.gitted/objects/33/cdead44e1c3ec178e39a4a69085280dbacf01b new file mode 100644 index 00000000000..72dc780a06a Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/33/cdead44e1c3ec178e39a4a69085280dbacf01b differ diff --git a/tests/resources/crlf/.gitted/objects/41/7786fc35b3c71aa546e3f95eb5da3c8dad8c41 b/tests/resources/crlf/.gitted/objects/41/7786fc35b3c71aa546e3f95eb5da3c8dad8c41 new file mode 100644 index 00000000000..ec57bdeba5e Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/41/7786fc35b3c71aa546e3f95eb5da3c8dad8c41 differ diff --git a/tests/resources/crlf/.gitted/objects/5a/fb6a14a864e30787857dd92af837e8cdd2cb1b b/tests/resources/crlf/.gitted/objects/5a/fb6a14a864e30787857dd92af837e8cdd2cb1b new file mode 100644 index 00000000000..11a25c581cb Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/5a/fb6a14a864e30787857dd92af837e8cdd2cb1b differ diff --git a/tests/resources/crlf/.gitted/objects/68/03c385642cebc8103fddd526ef395d75678a7e b/tests/resources/crlf/.gitted/objects/68/03c385642cebc8103fddd526ef395d75678a7e new file mode 100644 index 00000000000..f8d489fcb68 --- /dev/null +++ b/tests/resources/crlf/.gitted/objects/68/03c385642cebc8103fddd526ef395d75678a7e @@ -0,0 +1,2 @@ +xKj0Ьu}, !d &hZ0QvgWuz9OAHv Bh9!EM}cf52v%m` /=ZË MoeV3 +fr1pѓj8.[_ K^@kѡYj \ No newline at end of file diff --git a/tests/resources/crlf/.gitted/objects/69/597764abeaa1a403ebf589d2ea579c6a8f877e b/tests/resources/crlf/.gitted/objects/69/597764abeaa1a403ebf589d2ea579c6a8f877e new file mode 100644 index 00000000000..ee4f4273d7f --- /dev/null +++ b/tests/resources/crlf/.gitted/objects/69/597764abeaa1a403ebf589d2ea579c6a8f877e @@ -0,0 +1 @@ +xэ0 a3Owr&%`NĎ-J!1|si`ݸkUȢr.*{zgr>ɱcbn\ui c.x"D,N,VuՒ.umgzL=@[kIǦismbY>!nJL \ No newline at end of file diff --git a/tests/resources/crlf/.gitted/objects/6c/589757f65a970a6cc07c71c3f3d2528c611cbc b/tests/resources/crlf/.gitted/objects/6c/589757f65a970a6cc07c71c3f3d2528c611cbc new file mode 100644 index 00000000000..fe4da8ce0d8 --- /dev/null +++ b/tests/resources/crlf/.gitted/objects/6c/589757f65a970a6cc07c71c3f3d2528c611cbc @@ -0,0 +1,2 @@ +x-KN0Y;PYpr5j#ǀ=nnF3iUUp$dKbN)OL)`Pf'VpCVY$SճcqVI:W +oZ^tvӁGW9gL2<kM+Ko |\ʺ;Nݱ>$81ÛeUe r}.Q \ No newline at end of file diff --git a/tests/resources/crlf/.gitted/objects/77/afe26d93c49279ca90604c125496920753fede b/tests/resources/crlf/.gitted/objects/77/afe26d93c49279ca90604c125496920753fede new file mode 100644 index 00000000000..a377cb04d0c Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/77/afe26d93c49279ca90604c125496920753fede differ diff --git a/tests/resources/crlf/.gitted/objects/85/340755cfe5e28c2835781978bb1cece91b3d0f b/tests/resources/crlf/.gitted/objects/85/340755cfe5e28c2835781978bb1cece91b3d0f new file mode 100644 index 00000000000..e83fbc290c6 Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/85/340755cfe5e28c2835781978bb1cece91b3d0f differ diff --git a/tests/resources/crlf/.gitted/objects/92/0e90a663bea5d740989d5f935f6dfb473a0c5d b/tests/resources/crlf/.gitted/objects/92/0e90a663bea5d740989d5f935f6dfb473a0c5d new file mode 100644 index 00000000000..f872be6e99d Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/92/0e90a663bea5d740989d5f935f6dfb473a0c5d differ diff --git a/tests/resources/crlf/.gitted/objects/9d/29b5bb165bf65637ffcb5ededb82ddd7c3fd13 b/tests/resources/crlf/.gitted/objects/9d/29b5bb165bf65637ffcb5ededb82ddd7c3fd13 new file mode 100644 index 00000000000..106332d5501 Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/9d/29b5bb165bf65637ffcb5ededb82ddd7c3fd13 differ diff --git a/tests/resources/crlf/.gitted/objects/aa/f083a9cb53dac3669dcfa0e48921580d629ec7 b/tests/resources/crlf/.gitted/objects/aa/f083a9cb53dac3669dcfa0e48921580d629ec7 new file mode 100644 index 00000000000..38775d00508 Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/aa/f083a9cb53dac3669dcfa0e48921580d629ec7 differ diff --git a/tests/resources/crlf/.gitted/objects/af/6fcf6da196f615d7cda269b55b5c4ecfb4a5b3 b/tests/resources/crlf/.gitted/objects/af/6fcf6da196f615d7cda269b55b5c4ecfb4a5b3 new file mode 100644 index 00000000000..0acc9744e1d Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/af/6fcf6da196f615d7cda269b55b5c4ecfb4a5b3 differ diff --git a/tests/resources/crlf/.gitted/objects/bb/29a7b46b5d4ba3ea17b238ae561b81d59dc818 b/tests/resources/crlf/.gitted/objects/bb/29a7b46b5d4ba3ea17b238ae561b81d59dc818 new file mode 100644 index 00000000000..a08789b54d3 Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/bb/29a7b46b5d4ba3ea17b238ae561b81d59dc818 differ diff --git a/tests/resources/crlf/.gitted/objects/c8/d0b1ebcaccdd8f968c4aae3c2175e7fed651fe b/tests/resources/crlf/.gitted/objects/c8/d0b1ebcaccdd8f968c4aae3c2175e7fed651fe new file mode 100644 index 00000000000..21e2ce093a0 --- /dev/null +++ b/tests/resources/crlf/.gitted/objects/c8/d0b1ebcaccdd8f968c4aae3c2175e7fed651fe @@ -0,0 +1,2 @@ +x-Kn0C)f8od (t4#؈e9~;$RKI1*1;tf9Edb&1LʈPyk 0#*FeYtٱ{7opkuI^ec3Z? NRI)c +[^}|+?wTX #ވ,L!5C^V>=R~ \ No newline at end of file diff --git a/tests/resources/crlf/.gitted/objects/cd/d3dacc5c0501d5ea57bbdf90e3d80176606139 b/tests/resources/crlf/.gitted/objects/cd/d3dacc5c0501d5ea57bbdf90e3d80176606139 new file mode 100644 index 00000000000..72cf3b0fda1 Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/cd/d3dacc5c0501d5ea57bbdf90e3d80176606139 differ diff --git a/tests/resources/crlf/.gitted/objects/d1/1e7ef63ba7db1db3b1b99cdbafc57a8549f8a4 b/tests/resources/crlf/.gitted/objects/d1/1e7ef63ba7db1db3b1b99cdbafc57a8549f8a4 new file mode 100644 index 00000000000..05d88fc8645 Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/d1/1e7ef63ba7db1db3b1b99cdbafc57a8549f8a4 differ diff --git a/tests/resources/crlf/.gitted/objects/de/5bfa165999d9d6c6dbafad2a7e709f93ec30fd b/tests/resources/crlf/.gitted/objects/de/5bfa165999d9d6c6dbafad2a7e709f93ec30fd new file mode 100644 index 00000000000..e288b975fed Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/de/5bfa165999d9d6c6dbafad2a7e709f93ec30fd differ diff --git a/tests/resources/crlf/.gitted/objects/e5/062da7d7802cf492975eda580f09ac4876bd88 b/tests/resources/crlf/.gitted/objects/e5/062da7d7802cf492975eda580f09ac4876bd88 new file mode 100644 index 00000000000..62835b9e1f6 --- /dev/null +++ b/tests/resources/crlf/.gitted/objects/e5/062da7d7802cf492975eda580f09ac4876bd88 @@ -0,0 +1 @@ +xQ1D)j'd2")xN,3x^AQj)UD`iJֻ>Fc:D&Rr.1#DǓ,HPϖ}9rPGŏ6 ~ a/ }IDx$kj&_֨GZכ›| ǸU \ No newline at end of file diff --git a/tests/resources/crlf/.gitted/objects/f2/b745d7f47d114a3a6b31a7b628e61e804d1a58 b/tests/resources/crlf/.gitted/objects/f2/b745d7f47d114a3a6b31a7b628e61e804d1a58 new file mode 100644 index 00000000000..7b2e7a11617 Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/f2/b745d7f47d114a3a6b31a7b628e61e804d1a58 differ diff --git a/tests/resources/crlf/.gitted/objects/fe/ab3713c4659bb22700042b3c55b8d60d0a952b b/tests/resources/crlf/.gitted/objects/fe/ab3713c4659bb22700042b3c55b8d60d0a952b new file mode 100644 index 00000000000..8552c7bf73d Binary files /dev/null and b/tests/resources/crlf/.gitted/objects/fe/ab3713c4659bb22700042b3c55b8d60d0a952b differ diff --git a/tests/resources/crlf/.gitted/refs/heads/master b/tests/resources/crlf/.gitted/refs/heads/master index c150a97763d..fe1d0aa0387 100644 --- a/tests/resources/crlf/.gitted/refs/heads/master +++ b/tests/resources/crlf/.gitted/refs/heads/master @@ -1 +1 @@ -044bcd5c9bf5ebdd51e514a9a36457018f06f6e1 +5afb6a14a864e30787857dd92af837e8cdd2cb1b diff --git a/tests/resources/crlf/.gitted/refs/heads/utf8 b/tests/resources/crlf/.gitted/refs/heads/utf8 deleted file mode 100644 index 30ab61cd33f..00000000000 --- a/tests/resources/crlf/.gitted/refs/heads/utf8 +++ /dev/null @@ -1 +0,0 @@ -a234455d62297f1856c4603686150c59fcb0aafe diff --git a/tests/resources/crlf_data/.gitattributes b/tests/resources/crlf_data/.gitattributes new file mode 100644 index 00000000000..23d9bdb29a7 --- /dev/null +++ b/tests/resources/crlf_data/.gitattributes @@ -0,0 +1 @@ +* binary diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_false,-crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-text/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,-text/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/all-lf b/tests/resources/crlf_data/posix/autocrlf_false,-text/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,-text/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-text/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_false,-text/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,-text/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-text/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-text/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,-text/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-text/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,-text/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,-text/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-text/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/more-crlf b/tests/resources/crlf_data/posix/autocrlf_false,-text/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,-text/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/more-lf b/tests/resources/crlf_data/posix/autocrlf_false,-text/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,-text/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,-text/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,-text/zero-byte b/tests/resources/crlf_data/posix/autocrlf_false,-text/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_false,crlf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,crlf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_false,crlf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,crlf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_false,crlf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_false,crlf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,crlf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_false,crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_false,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/all-lf b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/more-lf b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_false,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/all-lf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/more-lf b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_false,text,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/all-lf b/tests/resources/crlf_data/posix/autocrlf_false,text/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_false,text/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,text/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,text/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,text/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,text/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/more-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/more-lf b/tests/resources/crlf_data/posix/autocrlf_false,text/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text/zero-byte b/tests/resources/crlf_data/posix/autocrlf_false,text/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/all-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/more-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_false,text_auto,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/all-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/more-crlf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/more-lf b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false,text_auto/zero-byte b/tests/resources/crlf_data/posix/autocrlf_false,text_auto/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_false/all-crlf b/tests/resources/crlf_data/posix/autocrlf_false/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false/all-lf b/tests/resources/crlf_data/posix/autocrlf_false/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_false/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_false/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_false/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_false/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_false/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_false/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_false/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_false/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_false/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_false/more-crlf b/tests/resources/crlf_data/posix/autocrlf_false/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_false/more-lf b/tests/resources/crlf_data/posix/autocrlf_false/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_false/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_false/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_false/zero-byte b/tests/resources/crlf_data/posix/autocrlf_false/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_input,-crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-text/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,-text/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/all-lf b/tests/resources/crlf_data/posix/autocrlf_input,-text/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,-text/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-text/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_input,-text/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,-text/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-text/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-text/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,-text/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-text/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,-text/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,-text/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-text/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/more-crlf b/tests/resources/crlf_data/posix/autocrlf_input,-text/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,-text/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/more-lf b/tests/resources/crlf_data/posix/autocrlf_input,-text/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,-text/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,-text/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,-text/zero-byte b/tests/resources/crlf_data/posix/autocrlf_input,-text/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_input,crlf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,crlf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_input,crlf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,crlf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_input,crlf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_input,crlf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,crlf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_input,crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_input,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/all-lf b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/more-lf b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_input,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/all-lf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/more-lf b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_input,text,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/all-lf b/tests/resources/crlf_data/posix/autocrlf_input,text/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_input,text/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,text/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,text/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,text/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,text/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/more-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/more-lf b/tests/resources/crlf_data/posix/autocrlf_input,text/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text/zero-byte b/tests/resources/crlf_data/posix/autocrlf_input,text/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/all-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/more-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_input,text_auto,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/all-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/more-crlf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/more-lf b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input,text_auto/zero-byte b/tests/resources/crlf_data/posix/autocrlf_input,text_auto/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_input/all-crlf b/tests/resources/crlf_data/posix/autocrlf_input/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input/all-lf b/tests/resources/crlf_data/posix/autocrlf_input/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_input/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_input/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_input/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_input/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_input/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_input/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_input/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_input/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_input/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_input/more-crlf b/tests/resources/crlf_data/posix/autocrlf_input/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_input/more-lf b/tests/resources/crlf_data/posix/autocrlf_input/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_input/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_input/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_input/zero-byte b/tests/resources/crlf_data/posix/autocrlf_input/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_true,-crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-text/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,-text/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/all-lf b/tests/resources/crlf_data/posix/autocrlf_true,-text/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,-text/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-text/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_true,-text/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,-text/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-text/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-text/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,-text/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-text/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,-text/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,-text/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-text/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/more-crlf b/tests/resources/crlf_data/posix/autocrlf_true,-text/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,-text/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/more-lf b/tests/resources/crlf_data/posix/autocrlf_true,-text/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,-text/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,-text/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,-text/zero-byte b/tests/resources/crlf_data/posix/autocrlf_true,-text/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_true,crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_true,crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_true,crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_true,crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_true,crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_true,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/all-lf b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/more-lf b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_true,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/all-lf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/more-lf b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_true,text,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/all-lf b/tests/resources/crlf_data/posix/autocrlf_true,text/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_true,text/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,text/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,text/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,text/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,text/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/more-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/more-lf b/tests/resources/crlf_data/posix/autocrlf_true,text/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text/zero-byte b/tests/resources/crlf_data/posix/autocrlf_true,text/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/all-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/more-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/all-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/more-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/more-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/zero-byte b/tests/resources/crlf_data/posix/autocrlf_true,text_auto,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/all-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/more-crlf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/more-lf b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true,text_auto/zero-byte b/tests/resources/crlf_data/posix/autocrlf_true,text_auto/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/posix/autocrlf_true/all-crlf b/tests/resources/crlf_data/posix/autocrlf_true/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true/all-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true/all-lf b/tests/resources/crlf_data/posix/autocrlf_true/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true/all-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true/binary-all-crlf b/tests/resources/crlf_data/posix/autocrlf_true/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true/binary-all-lf b/tests/resources/crlf_data/posix/autocrlf_true/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/posix/autocrlf_true/binary-mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true/few-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true/few-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/posix/autocrlf_true/many-utf8-chars-crlf b/tests/resources/crlf_data/posix/autocrlf_true/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true/many-utf8-chars-lf b/tests/resources/crlf_data/posix/autocrlf_true/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/posix/autocrlf_true/mixed-lf-cr b/tests/resources/crlf_data/posix/autocrlf_true/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true/mixed-lf-cr-crlf b/tests/resources/crlf_data/posix/autocrlf_true/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/posix/autocrlf_true/more-crlf b/tests/resources/crlf_data/posix/autocrlf_true/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true/more-crlf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/posix/autocrlf_true/more-lf b/tests/resources/crlf_data/posix/autocrlf_true/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true/more-lf-utf8bom b/tests/resources/crlf_data/posix/autocrlf_true/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/posix/autocrlf_true/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/posix/autocrlf_true/zero-byte b/tests/resources/crlf_data/posix/autocrlf_true/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_false,-crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-text/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,-text/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/all-lf b/tests/resources/crlf_data/windows/autocrlf_false,-text/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,-text/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-text/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_false,-text/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,-text/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-text/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-text/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,-text/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-text/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,-text/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,-text/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-text/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/more-crlf b/tests/resources/crlf_data/windows/autocrlf_false,-text/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,-text/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/more-lf b/tests/resources/crlf_data/windows/autocrlf_false,-text/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,-text/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,-text/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,-text/zero-byte b/tests/resources/crlf_data/windows/autocrlf_false,-text/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_false,crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_false,crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_false,crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_false,crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_false,crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_false,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/all-lf b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/more-lf b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_false,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/all-lf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/more-lf b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_false,text,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/all-lf b/tests/resources/crlf_data/windows/autocrlf_false,text/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_false,text/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,text/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,text/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,text/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,text/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/more-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/more-lf b/tests/resources/crlf_data/windows/autocrlf_false,text/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text/zero-byte b/tests/resources/crlf_data/windows/autocrlf_false,text/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/all-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/more-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_false,text_auto,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/all-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/more-crlf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/more-lf b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false,text_auto/zero-byte b/tests/resources/crlf_data/windows/autocrlf_false,text_auto/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_false/all-crlf b/tests/resources/crlf_data/windows/autocrlf_false/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false/all-lf b/tests/resources/crlf_data/windows/autocrlf_false/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_false/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_false/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_false/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_false/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_false/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_false/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_false/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_false/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_false/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_false/more-crlf b/tests/resources/crlf_data/windows/autocrlf_false/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_false/more-lf b/tests/resources/crlf_data/windows/autocrlf_false/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_false/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_false/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_false/zero-byte b/tests/resources/crlf_data/windows/autocrlf_false/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_input,-crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-text/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,-text/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/all-lf b/tests/resources/crlf_data/windows/autocrlf_input,-text/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,-text/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-text/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_input,-text/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,-text/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-text/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-text/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,-text/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-text/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,-text/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,-text/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-text/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/more-crlf b/tests/resources/crlf_data/windows/autocrlf_input,-text/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,-text/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/more-lf b/tests/resources/crlf_data/windows/autocrlf_input,-text/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,-text/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,-text/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,-text/zero-byte b/tests/resources/crlf_data/windows/autocrlf_input,-text/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_input,crlf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,crlf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_input,crlf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,crlf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_input,crlf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_input,crlf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,crlf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_input,crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_input,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/all-lf b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/more-lf b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_input,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/all-lf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/more-lf b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_input,text,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/all-lf b/tests/resources/crlf_data/windows/autocrlf_input,text/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_input,text/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,text/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,text/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,text/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,text/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/more-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/more-lf b/tests/resources/crlf_data/windows/autocrlf_input,text/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text/zero-byte b/tests/resources/crlf_data/windows/autocrlf_input,text/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/all-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/more-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_input,text_auto,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/all-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/more-crlf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/more-lf b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input,text_auto/zero-byte b/tests/resources/crlf_data/windows/autocrlf_input,text_auto/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_input/all-crlf b/tests/resources/crlf_data/windows/autocrlf_input/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input/all-lf b/tests/resources/crlf_data/windows/autocrlf_input/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_input/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_input/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_input/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_input/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_input/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_input/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_input/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_input/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_input/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_input/more-crlf b/tests/resources/crlf_data/windows/autocrlf_input/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_input/more-lf b/tests/resources/crlf_data/windows/autocrlf_input/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_input/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_input/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_input/zero-byte b/tests/resources/crlf_data/windows/autocrlf_input/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_true,-crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-text/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,-text/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/all-lf b/tests/resources/crlf_data/windows/autocrlf_true,-text/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,-text/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-text/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_true,-text/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,-text/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-text/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-text/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,-text/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-text/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,-text/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,-text/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-text/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/more-crlf b/tests/resources/crlf_data/windows/autocrlf_true,-text/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,-text/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/more-lf b/tests/resources/crlf_data/windows/autocrlf_true,-text/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,-text/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,-text/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,-text/zero-byte b/tests/resources/crlf_data/windows/autocrlf_true,-text/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_true,crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_true,crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_true,crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_true,crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_true,crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_true,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/all-lf b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/more-lf b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_true,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/all-lf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/more-lf b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_true,text,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/all-lf b/tests/resources/crlf_data/windows/autocrlf_true,text/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_true,text/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,text/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,text/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,text/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,text/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/more-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/more-lf b/tests/resources/crlf_data/windows/autocrlf_true,text/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text/zero-byte b/tests/resources/crlf_data/windows/autocrlf_true,text/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/all-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/binary-all-lf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/binary-mixed-lf-cr new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..fd2abfa9d9f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/mixed-lf-cr new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..df8c0f680ad --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/more-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_crlf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/all-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/all-lf new file mode 100644 index 00000000000..799770d1cff --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/all-lf-utf8bom new file mode 100644 index 00000000000..7cce67e5817 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/few-utf8-chars-lf new file mode 100644 index 00000000000..f4d25b796d8 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/many-utf8-chars-lf new file mode 100644 index 00000000000..9a6c3533fef --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/more-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/more-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/zero-byte b/tests/resources/crlf_data/windows/autocrlf_true,text_auto,eol_lf/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/all-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/more-crlf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/more-crlf new file mode 100644 index 00000000000..e682c30774d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/more-crlf-utf8bom new file mode 100644 index 00000000000..2e1220cbb52 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/more-lf b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/more-lf new file mode 100644 index 00000000000..6da5b0c7e19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/more-lf-utf8bom new file mode 100644 index 00000000000..3fa59c809c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true,text_auto/zero-byte b/tests/resources/crlf_data/windows/autocrlf_true,text_auto/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/resources/crlf_data/windows/autocrlf_true/all-crlf b/tests/resources/crlf_data/windows/autocrlf_true/all-crlf new file mode 100644 index 00000000000..a9a2e8913c1 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true/all-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true/all-crlf-utf8bom new file mode 100644 index 00000000000..0aa76e474d2 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true/all-lf b/tests/resources/crlf_data/windows/autocrlf_true/all-lf new file mode 100644 index 00000000000..f557a02d86e --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true/all-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true/all-lf-utf8bom new file mode 100644 index 00000000000..381cfe630df --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true/binary-all-crlf b/tests/resources/crlf_data/windows/autocrlf_true/binary-all-crlf new file mode 100644 index 00000000000..85340755cfe --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true/binary-all-lf b/tests/resources/crlf_data/windows/autocrlf_true/binary-all-lf new file mode 100644 index 00000000000..af6fcf6da19 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/windows/autocrlf_true/binary-mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true/binary-mixed-lf-cr new file mode 100644 index 00000000000..203555c5676 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/binary-mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true/binary-mixed-lf-cr-crlf new file mode 100644 index 00000000000..aaf083a9cb5 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/binary-mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true/few-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true/few-utf8-chars-crlf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/few-utf8-chars-crlf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true/few-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true/few-utf8-chars-lf new file mode 100644 index 00000000000..0e052888828 --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/few-utf8-chars-lf @@ -0,0 +1,22 @@ +⚽The rest is ASCII01. +The rest is ASCII02. +The rest is ASCII03. +The rest is ASCII04. +The rest is ASCII05. +The rest is ASCII06. +The rest is ASCII07. +The rest is ASCII08. +The rest is ASCII09. +The rest is ASCII10. +The rest is ASCII11. +The rest is ASCII12. +The rest is ASCII13. +The rest is ASCII14. +The rest is ASCII15. +The rest is ASCII16. +The rest is ASCII17. +The rest is ASCII18. +The rest is ASCII19. +The rest is ASCII20. +The rest is ASCII21. +The rest is ASCII22. diff --git a/tests/resources/crlf_data/windows/autocrlf_true/many-utf8-chars-crlf b/tests/resources/crlf_data/windows/autocrlf_true/many-utf8-chars-crlf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true/many-utf8-chars-lf b/tests/resources/crlf_data/windows/autocrlf_true/many-utf8-chars-lf new file mode 100644 index 00000000000..cd574f5a2ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/windows/autocrlf_true/mixed-lf-cr b/tests/resources/crlf_data/windows/autocrlf_true/mixed-lf-cr new file mode 100644 index 00000000000..d11e7ef63ba --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true/mixed-lf-cr-crlf b/tests/resources/crlf_data/windows/autocrlf_true/mixed-lf-cr-crlf new file mode 100644 index 00000000000..417786fc35b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/mixed-lf-cr-crlf @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/windows/autocrlf_true/more-crlf b/tests/resources/crlf_data/windows/autocrlf_true/more-crlf new file mode 100644 index 00000000000..0ff5a53f19b --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true/more-crlf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true/more-crlf-utf8bom new file mode 100644 index 00000000000..ea030d3c6ce --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/windows/autocrlf_true/more-lf b/tests/resources/crlf_data/windows/autocrlf_true/more-lf new file mode 100644 index 00000000000..04de00b358f --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true/more-lf-utf8bom b/tests/resources/crlf_data/windows/autocrlf_true/more-lf-utf8bom new file mode 100644 index 00000000000..dc88e3b917d --- /dev/null +++ b/tests/resources/crlf_data/windows/autocrlf_true/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/windows/autocrlf_true/zero-byte b/tests/resources/crlf_data/windows/autocrlf_true/zero-byte new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/stash/apply.c b/tests/stash/apply.c index c242536be4c..f26b73b1932 100644 --- a/tests/stash/apply.c +++ b/tests/stash/apply.c @@ -10,14 +10,14 @@ void test_stash_apply__initialize(void) { git_oid oid; - cl_git_pass(git_signature_new(&signature, "nulltoken", "emeric.fermas@gmail.com", 1323847743, 60)); /* Wed Dec 14 08:29:03 2011 +0100 */ - - cl_git_pass(git_repository_init(&repo, "stash", 0)); + repo = cl_git_sandbox_init_new("stash"); cl_git_pass(git_repository_index(&repo_index, repo)); + cl_git_pass(git_signature_new(&signature, "nulltoken", "emeric.fermas@gmail.com", 1323847743, 60)); /* Wed Dec 14 08:29:03 2011 +0100 */ cl_git_mkfile("stash/what", "hello\n"); cl_git_mkfile("stash/how", "small\n"); cl_git_mkfile("stash/who", "world\n"); + cl_git_mkfile("stash/where", "meh\n"); cl_git_pass(git_index_add_bypath(repo_index, "what")); cl_git_pass(git_index_add_bypath(repo_index, "how")); @@ -28,14 +28,23 @@ void test_stash_apply__initialize(void) cl_git_rewritefile("stash/what", "goodbye\n"); cl_git_rewritefile("stash/who", "funky world\n"); cl_git_mkfile("stash/when", "tomorrow\n"); + cl_git_mkfile("stash/why", "would anybody use stash?\n"); + cl_git_mkfile("stash/where", "????\n"); cl_git_pass(git_index_add_bypath(repo_index, "who")); + cl_git_pass(git_index_add_bypath(repo_index, "why")); + cl_git_pass(git_index_add_bypath(repo_index, "where")); + git_index_write(repo_index); + + cl_git_rewritefile("stash/where", "....\n"); /* Pre-stash state */ assert_status(repo, "what", GIT_STATUS_WT_MODIFIED); assert_status(repo, "how", GIT_STATUS_CURRENT); assert_status(repo, "who", GIT_STATUS_INDEX_MODIFIED); assert_status(repo, "when", GIT_STATUS_WT_NEW); + assert_status(repo, "why", GIT_STATUS_INDEX_NEW); + assert_status(repo, "where", GIT_STATUS_INDEX_NEW|GIT_STATUS_WT_MODIFIED); cl_git_pass(git_stash_save(&oid, repo, signature, NULL, GIT_STASH_INCLUDE_UNTRACKED)); @@ -44,8 +53,8 @@ void test_stash_apply__initialize(void) assert_status(repo, "how", GIT_STATUS_CURRENT); assert_status(repo, "who", GIT_STATUS_CURRENT); assert_status(repo, "when", GIT_ENOTFOUND); - - git_index_free(repo_index); + assert_status(repo, "why", GIT_ENOTFOUND); + assert_status(repo, "where", GIT_ENOTFOUND); } void test_stash_apply__cleanup(void) @@ -56,15 +65,13 @@ void test_stash_apply__cleanup(void) git_index_free(repo_index); repo_index = NULL; - git_repository_free(repo); - repo = NULL; - - cl_git_pass(git_futils_rmdir_r("stash", NULL, GIT_RMDIR_REMOVE_FILES)); - cl_fixture_cleanup("sorry-it-is-a-non-bare-only-party"); + cl_git_sandbox_cleanup(); } void test_stash_apply__with_default(void) { + git_buf where = GIT_BUF_INIT; + cl_git_pass(git_stash_apply(repo, 0, NULL)); cl_assert_equal_i(git_index_has_conflicts(repo_index), 0); @@ -72,10 +79,42 @@ void test_stash_apply__with_default(void) assert_status(repo, "how", GIT_STATUS_CURRENT); assert_status(repo, "who", GIT_STATUS_WT_MODIFIED); assert_status(repo, "when", GIT_STATUS_WT_NEW); + assert_status(repo, "why", GIT_STATUS_INDEX_NEW); + assert_status(repo, "where", GIT_STATUS_INDEX_NEW); + + cl_git_pass(git_futils_readbuffer(&where, "stash/where")); + cl_assert_equal_s("....\n", where.ptr); + + git_buf_free(&where); +} + +void test_stash_apply__with_existing_file(void) +{ + cl_git_mkfile("stash/where", "oops!\n"); + cl_git_fail(git_stash_apply(repo, 0, NULL)); +} + +void test_stash_apply__merges_new_file(void) +{ + const git_index_entry *ancestor, *our, *their; + + cl_git_mkfile("stash/where", "committed before stash\n"); + cl_git_pass(git_index_add_bypath(repo_index, "where")); + cl_repo_commit_from_index(NULL, repo, signature, 0, "Other commit"); + + cl_git_pass(git_stash_apply(repo, 0, NULL)); + + cl_assert_equal_i(1, git_index_has_conflicts(repo_index)); + assert_status(repo, "what", GIT_STATUS_INDEX_MODIFIED); + cl_git_pass(git_index_conflict_get(&ancestor, &our, &their, repo_index, "where")); /* unmerged */ + assert_status(repo, "who", GIT_STATUS_INDEX_MODIFIED); + assert_status(repo, "when", GIT_STATUS_WT_NEW); + assert_status(repo, "why", GIT_STATUS_INDEX_NEW); } void test_stash_apply__with_reinstate_index(void) { + git_buf where = GIT_BUF_INIT; git_stash_apply_options opts = GIT_STASH_APPLY_OPTIONS_INIT; opts.flags = GIT_STASH_APPLY_REINSTATE_INDEX; @@ -87,6 +126,13 @@ void test_stash_apply__with_reinstate_index(void) assert_status(repo, "how", GIT_STATUS_CURRENT); assert_status(repo, "who", GIT_STATUS_INDEX_MODIFIED); assert_status(repo, "when", GIT_STATUS_WT_NEW); + assert_status(repo, "why", GIT_STATUS_INDEX_NEW); + assert_status(repo, "where", GIT_STATUS_INDEX_NEW | GIT_STATUS_WT_MODIFIED); + + cl_git_pass(git_futils_readbuffer(&where, "stash/where")); + cl_assert_equal_s("....\n", where.ptr); + + git_buf_free(&where); } void test_stash_apply__conflict_index_with_default(void) @@ -98,6 +144,7 @@ void test_stash_apply__conflict_index_with_default(void) cl_git_rewritefile("stash/who", "nothing\n"); cl_git_pass(git_index_add_bypath(repo_index, "who")); cl_git_pass(git_index_write(repo_index)); + cl_repo_commit_from_index(NULL, repo, signature, 0, "Other commit"); cl_git_pass(git_stash_apply(repo, 0, NULL)); @@ -106,6 +153,7 @@ void test_stash_apply__conflict_index_with_default(void) assert_status(repo, "how", GIT_STATUS_CURRENT); cl_git_pass(git_index_conflict_get(&ancestor, &our, &their, repo_index, "who")); /* unmerged */ assert_status(repo, "when", GIT_STATUS_WT_NEW); + assert_status(repo, "why", GIT_STATUS_INDEX_NEW); } void test_stash_apply__conflict_index_with_reinstate_index(void) @@ -117,14 +165,16 @@ void test_stash_apply__conflict_index_with_reinstate_index(void) cl_git_rewritefile("stash/who", "nothing\n"); cl_git_pass(git_index_add_bypath(repo_index, "who")); cl_git_pass(git_index_write(repo_index)); + cl_repo_commit_from_index(NULL, repo, signature, 0, "Other commit"); cl_git_fail_with(git_stash_apply(repo, 0, &opts), GIT_ECONFLICT); cl_assert_equal_i(git_index_has_conflicts(repo_index), 0); assert_status(repo, "what", GIT_STATUS_CURRENT); assert_status(repo, "how", GIT_STATUS_CURRENT); - assert_status(repo, "who", GIT_STATUS_INDEX_MODIFIED); + assert_status(repo, "who", GIT_STATUS_CURRENT); assert_status(repo, "when", GIT_ENOTFOUND); + assert_status(repo, "why", GIT_ENOTFOUND); } void test_stash_apply__conflict_untracked_with_default(void) @@ -140,6 +190,7 @@ void test_stash_apply__conflict_untracked_with_default(void) assert_status(repo, "how", GIT_STATUS_CURRENT); assert_status(repo, "who", GIT_STATUS_CURRENT); assert_status(repo, "when", GIT_STATUS_WT_NEW); + assert_status(repo, "why", GIT_ENOTFOUND); } void test_stash_apply__conflict_untracked_with_reinstate_index(void) @@ -157,6 +208,7 @@ void test_stash_apply__conflict_untracked_with_reinstate_index(void) assert_status(repo, "how", GIT_STATUS_CURRENT); assert_status(repo, "who", GIT_STATUS_CURRENT); assert_status(repo, "when", GIT_STATUS_WT_NEW); + assert_status(repo, "why", GIT_ENOTFOUND); } void test_stash_apply__conflict_workdir_with_default(void) @@ -170,6 +222,7 @@ void test_stash_apply__conflict_workdir_with_default(void) assert_status(repo, "how", GIT_STATUS_CURRENT); assert_status(repo, "who", GIT_STATUS_CURRENT); assert_status(repo, "when", GIT_STATUS_WT_NEW); + assert_status(repo, "why", GIT_ENOTFOUND); } void test_stash_apply__conflict_workdir_with_reinstate_index(void) @@ -187,6 +240,7 @@ void test_stash_apply__conflict_workdir_with_reinstate_index(void) assert_status(repo, "how", GIT_STATUS_CURRENT); assert_status(repo, "who", GIT_STATUS_CURRENT); assert_status(repo, "when", GIT_STATUS_WT_NEW); + assert_status(repo, "why", GIT_ENOTFOUND); } void test_stash_apply__conflict_commit_with_default(void) @@ -206,6 +260,7 @@ void test_stash_apply__conflict_commit_with_default(void) assert_status(repo, "how", GIT_STATUS_CURRENT); assert_status(repo, "who", GIT_STATUS_INDEX_MODIFIED); assert_status(repo, "when", GIT_STATUS_WT_NEW); + assert_status(repo, "why", GIT_STATUS_INDEX_NEW); } void test_stash_apply__conflict_commit_with_reinstate_index(void) @@ -228,6 +283,23 @@ void test_stash_apply__conflict_commit_with_reinstate_index(void) assert_status(repo, "how", GIT_STATUS_CURRENT); assert_status(repo, "who", GIT_STATUS_INDEX_MODIFIED); assert_status(repo, "when", GIT_STATUS_WT_NEW); + assert_status(repo, "why", GIT_STATUS_INDEX_NEW); +} + +void test_stash_apply__fails_with_uncommitted_changes_in_index(void) +{ + cl_git_rewritefile("stash/who", "nothing\n"); + cl_git_pass(git_index_add_bypath(repo_index, "who")); + cl_git_pass(git_index_write(repo_index)); + + cl_git_fail_with(git_stash_apply(repo, 0, NULL), GIT_EUNCOMMITTED); + + cl_assert_equal_i(git_index_has_conflicts(repo_index), 0); + assert_status(repo, "what", GIT_STATUS_CURRENT); + assert_status(repo, "how", GIT_STATUS_CURRENT); + assert_status(repo, "who", GIT_STATUS_INDEX_MODIFIED); + assert_status(repo, "when", GIT_ENOTFOUND); + assert_status(repo, "why", GIT_ENOTFOUND); } void test_stash_apply__pop(void) @@ -287,6 +359,8 @@ void test_stash_apply__executes_notify_cb(void) assert_status(repo, "how", GIT_STATUS_CURRENT); assert_status(repo, "who", GIT_STATUS_WT_MODIFIED); assert_status(repo, "when", GIT_STATUS_WT_NEW); + assert_status(repo, "why", GIT_STATUS_INDEX_NEW); + assert_status(repo, "where", GIT_STATUS_INDEX_NEW); cl_assert_equal_b(true, seen_paths.what); cl_assert_equal_b(false, seen_paths.how); @@ -339,3 +413,37 @@ void test_stash_apply__progress_cb_can_abort(void) cl_git_fail_with(-44, git_stash_apply(repo, 0, &opts)); } + +void test_stash_apply__uses_reflog_like_indices_1(void) +{ + git_oid oid; + + cl_git_mkfile("stash/untracked", "untracked\n"); + cl_git_pass(git_stash_save(&oid, repo, signature, NULL, GIT_STASH_INCLUDE_UNTRACKED)); + assert_status(repo, "untracked", GIT_ENOTFOUND); + + // stash@{1} is the oldest (first) stash we made + cl_git_pass(git_stash_apply(repo, 1, NULL)); + cl_assert_equal_i(git_index_has_conflicts(repo_index), 0); + assert_status(repo, "what", GIT_STATUS_WT_MODIFIED); + assert_status(repo, "how", GIT_STATUS_CURRENT); + assert_status(repo, "who", GIT_STATUS_WT_MODIFIED); + assert_status(repo, "when", GIT_STATUS_WT_NEW); + assert_status(repo, "why", GIT_STATUS_INDEX_NEW); + assert_status(repo, "where", GIT_STATUS_INDEX_NEW); +} + +void test_stash_apply__uses_reflog_like_indices_2(void) +{ + git_oid oid; + + cl_git_mkfile("stash/untracked", "untracked\n"); + cl_git_pass(git_stash_save(&oid, repo, signature, NULL, GIT_STASH_INCLUDE_UNTRACKED)); + assert_status(repo, "untracked", GIT_ENOTFOUND); + + // stash@{0} is the newest stash we made immediately above + cl_git_pass(git_stash_apply(repo, 0, NULL)); + + cl_assert_equal_i(git_index_has_conflicts(repo_index), 0); + assert_status(repo, "untracked", GIT_STATUS_WT_NEW); +} diff --git a/tests/stash/foreach.c b/tests/stash/foreach.c index f1983625fa6..57dc8eeb42f 100644 --- a/tests/stash/foreach.c +++ b/tests/stash/foreach.c @@ -69,16 +69,16 @@ void test_stash_foreach__enumerating_a_empty_repository_doesnt_fail(void) void test_stash_foreach__can_enumerate_a_repository(void) { char *oids_default[] = { - "1d91c842a7cdfc25872b3a763e5c31add8816c25", NULL }; + "493568b7a2681187aaac8a58d3f1eab1527cba84", NULL }; char *oids_untracked[] = { "7f89a8b15c878809c5c54d1ff8f8c9674154017b", - "1d91c842a7cdfc25872b3a763e5c31add8816c25", NULL }; + "493568b7a2681187aaac8a58d3f1eab1527cba84", NULL }; char *oids_ignored[] = { "c95599a8fef20a7e57582c6727b1a0d02e0a5828", "7f89a8b15c878809c5c54d1ff8f8c9674154017b", - "1d91c842a7cdfc25872b3a763e5c31add8816c25", NULL }; + "493568b7a2681187aaac8a58d3f1eab1527cba84", NULL }; cl_git_pass(git_repository_init(&repo, REPO_NAME, 0)); @@ -96,9 +96,7 @@ void test_stash_foreach__can_enumerate_a_repository(void) cl_git_pass(git_stash_foreach(repo, callback_cb, &data)); cl_assert_equal_i(1, data.invokes); - data.oids = oids_untracked; - data.invokes = 0; - + /* ensure stash_foreach operates with INCLUDE_UNTRACKED */ cl_git_pass(git_stash_save( &stash_tip_oid, repo, @@ -106,12 +104,13 @@ void test_stash_foreach__can_enumerate_a_repository(void) NULL, GIT_STASH_INCLUDE_UNTRACKED)); + data.oids = oids_untracked; + data.invokes = 0; + cl_git_pass(git_stash_foreach(repo, callback_cb, &data)); cl_assert_equal_i(2, data.invokes); - data.oids = oids_ignored; - data.invokes = 0; - + /* ensure stash_foreach operates with INCLUDE_IGNORED */ cl_git_pass(git_stash_save( &stash_tip_oid, repo, @@ -119,6 +118,9 @@ void test_stash_foreach__can_enumerate_a_repository(void) NULL, GIT_STASH_INCLUDE_IGNORED)); + data.oids = oids_ignored; + data.invokes = 0; + cl_git_pass(git_stash_foreach(repo, callback_cb, &data)); cl_assert_equal_i(3, data.invokes); } diff --git a/tests/stash/save.c b/tests/stash/save.c index e078775164f..edcee820ff8 100644 --- a/tests/stash/save.c +++ b/tests/stash/save.c @@ -100,12 +100,18 @@ fatal: Path 'when' exists on disk, but not in 'stash^2'. assert_blob_oid("refs/stash:how", "e6d64adb2c7f3eb8feb493b556cc8070dca379a3"); /* not so small and */ assert_blob_oid("refs/stash:who", "a0400d4954659306a976567af43125a0b1aa8595"); /* funky world */ assert_blob_oid("refs/stash:when", NULL); + assert_blob_oid("refs/stash:why", "88c2533e21f098b89c91a431d8075cbdbe422a51"); /* would anybody use stash? */ + assert_blob_oid("refs/stash:where", "e3d6434ec12eb76af8dfa843a64ba6ab91014a0b"); /* .... */ + assert_blob_oid("refs/stash:.gitignore", "ac4d88de61733173d9959e4b77c69b9f17a00980"); assert_blob_oid("refs/stash:just.ignore", NULL); assert_blob_oid("refs/stash^2:what", "dd7e1c6f0fefe118f0b63d9f10908c460aa317a6"); /* goodbye */ assert_blob_oid("refs/stash^2:how", "e6d64adb2c7f3eb8feb493b556cc8070dca379a3"); /* not so small and */ assert_blob_oid("refs/stash^2:who", "cc628ccd10742baea8241c5924df992b5c019f71"); /* world */ assert_blob_oid("refs/stash^2:when", NULL); + assert_blob_oid("refs/stash^2:why", "88c2533e21f098b89c91a431d8075cbdbe422a51"); /* would anybody use stash? */ + assert_blob_oid("refs/stash^2:where", "e08f7fbb9a42a0c5367cf8b349f1f08c3d56bd72"); /* ???? */ + assert_blob_oid("refs/stash^2:.gitignore", "ac4d88de61733173d9959e4b77c69b9f17a00980"); assert_blob_oid("refs/stash^2:just.ignore", NULL); assert_blob_oid("refs/stash^3", NULL); @@ -243,11 +249,13 @@ void test_stash_save__cannot_stash_when_there_are_no_local_change(void) cl_git_pass(git_repository_index(&index, repo)); /* - * 'what' and 'who' are being committed. - * 'when' remain untracked. + * 'what', 'where' and 'who' are being committed. + * 'when' remains untracked. */ cl_git_pass(git_index_add_bypath(index, "what")); + cl_git_pass(git_index_add_bypath(index, "where")); cl_git_pass(git_index_add_bypath(index, "who")); + cl_repo_commit_from_index(NULL, repo, signature, 0, "Initial commit"); git_index_free(index); diff --git a/tests/stash/stash_helpers.c b/tests/stash/stash_helpers.c index ff683ecedf5..0398757c241 100644 --- a/tests/stash/stash_helpers.c +++ b/tests/stash/stash_helpers.c @@ -26,12 +26,17 @@ void setup_stash(git_repository *repo, git_signature *signature) cl_git_rewritefile("stash/what", "goodbye\n"); /* dd7e1c6f0fefe118f0b63d9f10908c460aa317a6 */ cl_git_rewritefile("stash/how", "not so small and\n"); /* e6d64adb2c7f3eb8feb493b556cc8070dca379a3 */ cl_git_rewritefile("stash/who", "funky world\n"); /* a0400d4954659306a976567af43125a0b1aa8595 */ + cl_git_mkfile("stash/why", "would anybody use stash?\n"); /* 88c2533e21f098b89c91a431d8075cbde422a51 */ + cl_git_mkfile("stash/where", "????\n"); /* e08f7fbb9a42a0c5367cf8b349f1f08c3d56bd72 */ cl_git_pass(git_index_add_bypath(index, "what")); cl_git_pass(git_index_add_bypath(index, "how")); + cl_git_pass(git_index_add_bypath(index, "why")); + cl_git_pass(git_index_add_bypath(index, "where")); cl_git_pass(git_index_write(index)); cl_git_rewritefile("stash/what", "see you later\n"); /* bc99dc98b3eba0e9157e94769cd4d49cb49de449 */ + cl_git_mkfile("stash/where", "....\n"); /* e3d6434ec12eb76af8dfa843a64ba6ab91014a0b */ git_index_free(index); } diff --git a/tests/status/worktree.c b/tests/status/worktree.c index f8d1f7f54bb..75c7b71b079 100644 --- a/tests/status/worktree.c +++ b/tests/status/worktree.c @@ -985,6 +985,8 @@ void test_status_worktree__update_stat_cache_0(void) opts.flags &= ~GIT_STATUS_OPT_UPDATE_INDEX; + /* tick again as the index updating from the previous diff might have reset the timestamp */ + tick_index(index); cl_git_pass(git_status_list_new(&status, repo, &opts)); check_status0(status); cl_git_pass(git_status_list_get_perfdata(&perf, status)); @@ -1096,3 +1098,51 @@ void test_status_worktree__unreadable_as_untracked(void) cl_assert_equal_i(0, counts.wrong_sorted_path); } +void test_status_worktree__update_index_with_symlink_doesnt_change_mode(void) +{ + git_repository *repo = cl_git_sandbox_init("testrepo"); + git_reference *head; + git_object *head_object; + git_index *index; + const git_index_entry *idx_entry; + git_status_options opts = GIT_STATUS_OPTIONS_INIT; + status_entry_counts counts = {0}; + const char *expected_paths[] = { "README" }; + const unsigned int expected_statuses[] = {GIT_STATUS_WT_NEW}; + + opts.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR; + opts.flags = GIT_STATUS_OPT_DEFAULTS | GIT_STATUS_OPT_UPDATE_INDEX; + + cl_git_pass(git_repository_head(&head, repo)); + cl_git_pass(git_reference_peel(&head_object, head, GIT_OBJ_COMMIT)); + + cl_git_pass(git_reset(repo, head_object, GIT_RESET_HARD, NULL)); + + cl_git_rewritefile("testrepo/README", "This was rewritten."); + + /* this status rewrites the index because we have changed the + * contents of a tracked file + */ + counts.expected_entry_count = 1; + counts.expected_paths = expected_paths; + counts.expected_statuses = expected_statuses; + + cl_git_pass( + git_status_foreach_ext(repo, &opts, cb_status__normal, &counts)); + cl_assert_equal_i(1, counts.entry_count); + + /* now ensure that the status's rewrite of the index did not screw + * up the mode of the symlink `link_to_new.txt`, particularly + * on platforms that don't support symlinks + */ + cl_git_pass(git_repository_index(&index, repo)); + cl_git_pass(git_index_read(index, true)); + + cl_assert(idx_entry = git_index_get_bypath(index, "link_to_new.txt", 0)); + cl_assert(S_ISLNK(idx_entry->mode)); + + git_index_free(index); + git_object_free(head_object); + git_reference_free(head); +} + diff --git a/tests/submodule/init.c b/tests/submodule/init.c index dbde0f2846f..9e0cf57536a 100644 --- a/tests/submodule/init.c +++ b/tests/submodule/init.c @@ -23,10 +23,10 @@ void test_submodule_init__absolute_url(void) cl_assert(git_path_dirname_r(&absolute_url, git_repository_workdir(g_repo)) > 0); cl_git_pass(git_buf_joinpath(&absolute_url, absolute_url.ptr, "testrepo.git")); - cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo")); - /* write the absolute url to the .gitmodules file*/ - cl_git_pass(git_submodule_set_url(sm, absolute_url.ptr)); + cl_git_pass(git_submodule_set_url(g_repo, "testrepo", absolute_url.ptr)); + + cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo")); /* verify that the .gitmodules is set with an absolute path*/ cl_assert_equal_s(absolute_url.ptr, git_submodule_url(sm)); diff --git a/tests/submodule/lookup.c b/tests/submodule/lookup.c index 666f56ef126..cddbdcfc20b 100644 --- a/tests/submodule/lookup.c +++ b/tests/submodule/lookup.c @@ -31,6 +31,9 @@ void test_submodule_lookup__simple_lookup(void) /* lookup non-existent item */ refute_submodule_exists(g_repo, "no_such_file", GIT_ENOTFOUND); + + /* lookup a submodule by path with a trailing slash */ + assert_submodule_exists(g_repo, "sm_added_and_uncommited/"); } void test_submodule_lookup__accessors(void) diff --git a/tests/submodule/modify.c b/tests/submodule/modify.c index bbbb2d56e07..f7a089e7265 100644 --- a/tests/submodule/modify.c +++ b/tests/submodule/modify.c @@ -41,17 +41,15 @@ void test_submodule_modify__init(void) git_config_free(cfg); /* confirm no submodule data in config */ - cl_git_pass(git_repository_config(&cfg, g_repo)); - cl_git_fail(git_config_get_string(&str, cfg, "submodule.sm_unchanged.url")); - cl_git_fail(git_config_get_string(&str, cfg, "submodule.sm_changed_head.url")); - cl_git_fail(git_config_get_string(&str, cfg, "submodule.sm_added_and_uncommited.url")); + cl_git_pass(git_repository_config_snapshot(&cfg, g_repo)); + cl_git_fail_with(GIT_ENOTFOUND, git_config_get_string(&str, cfg, "submodule.sm_unchanged.url")); + cl_git_fail_with(GIT_ENOTFOUND, git_config_get_string(&str, cfg, "submodule.sm_changed_head.url")); + cl_git_fail_with(GIT_ENOTFOUND, git_config_get_string(&str, cfg, "submodule.sm_added_and_uncommited.url")); git_config_free(cfg); /* call init and see that settings are copied */ cl_git_pass(git_submodule_foreach(g_repo, init_one_submodule, NULL)); - git_submodule_reload_all(g_repo, 1); - /* confirm submodule data in config */ cl_git_pass(git_repository_config_snapshot(&cfg, g_repo)); cl_git_pass(git_config_get_string(&str, cfg, "submodule.sm_unchanged.url")); @@ -130,132 +128,85 @@ void test_submodule_modify__sync(void) git_submodule_free(sm3); } -void test_submodule_modify__edit_and_save(void) +void assert_ignore_change(git_submodule_ignore_t ignore) { - git_submodule *sm1, *sm2; - char *old_url, *old_branch; - git_submodule_ignore_t old_ignore; - git_submodule_update_t old_update; - git_repository *r2; - git_submodule_recurse_t old_fetchrecurse; - - cl_git_pass(git_submodule_lookup(&sm1, g_repo, "sm_changed_head")); - - old_url = git__strdup(git_submodule_url(sm1)); - old_branch = NULL; - - /* modify properties of submodule */ - cl_git_pass(git_submodule_set_url(sm1, SM_LIBGIT2_URL)); - cl_git_pass(git_submodule_set_branch(sm1, SM_LIBGIT2_BRANCH)); - old_ignore = git_submodule_set_ignore(sm1, GIT_SUBMODULE_IGNORE_UNTRACKED); - old_update = git_submodule_set_update(sm1, GIT_SUBMODULE_UPDATE_REBASE); - old_fetchrecurse = git_submodule_set_fetch_recurse_submodules( - sm1, GIT_SUBMODULE_RECURSE_YES); - - cl_assert_equal_s(SM_LIBGIT2_URL, git_submodule_url(sm1)); - cl_assert_equal_s(SM_LIBGIT2_BRANCH, git_submodule_branch(sm1)); - cl_assert_equal_i( - GIT_SUBMODULE_IGNORE_UNTRACKED, git_submodule_ignore(sm1)); - cl_assert_equal_i( - GIT_SUBMODULE_UPDATE_REBASE, git_submodule_update_strategy(sm1)); - cl_assert_equal_i( - GIT_SUBMODULE_RECURSE_YES, git_submodule_fetch_recurse_submodules(sm1)); - - /* revert without saving (and confirm setters return old value) */ - cl_git_pass(git_submodule_set_url(sm1, old_url)); - cl_git_pass(git_submodule_set_branch(sm1, old_branch)); - cl_assert_equal_i( - GIT_SUBMODULE_IGNORE_UNTRACKED, - git_submodule_set_ignore(sm1, GIT_SUBMODULE_IGNORE_RESET)); - cl_assert_equal_i( - GIT_SUBMODULE_UPDATE_REBASE, - git_submodule_set_update(sm1, GIT_SUBMODULE_UPDATE_RESET)); - cl_assert_equal_i( - GIT_SUBMODULE_RECURSE_YES, git_submodule_set_fetch_recurse_submodules( - sm1, GIT_SUBMODULE_RECURSE_RESET)); - - /* check that revert was successful */ - cl_assert_equal_s(old_url, git_submodule_url(sm1)); - cl_assert_equal_s(old_branch, git_submodule_branch(sm1)); - cl_assert_equal_i((int)old_ignore, (int)git_submodule_ignore(sm1)); - cl_assert_equal_i((int)old_update, (int)git_submodule_update_strategy(sm1)); - cl_assert_equal_i( - old_fetchrecurse, git_submodule_fetch_recurse_submodules(sm1)); - - /* modify properties of submodule (again) */ - cl_git_pass(git_submodule_set_url(sm1, SM_LIBGIT2_URL)); - cl_git_pass(git_submodule_set_branch(sm1, SM_LIBGIT2_BRANCH)); - git_submodule_set_ignore(sm1, GIT_SUBMODULE_IGNORE_UNTRACKED); - git_submodule_set_update(sm1, GIT_SUBMODULE_UPDATE_REBASE); - git_submodule_set_fetch_recurse_submodules(sm1, GIT_SUBMODULE_RECURSE_YES); - - /* call save */ - cl_git_pass(git_submodule_save(sm1)); - - /* attempt to "revert" values */ - git_submodule_set_ignore(sm1, GIT_SUBMODULE_IGNORE_RESET); - git_submodule_set_update(sm1, GIT_SUBMODULE_UPDATE_RESET); - - /* but ignore and update should NOT revert because the RESET - * should now be the newly saved value... - */ - cl_assert_equal_i( - (int)GIT_SUBMODULE_IGNORE_UNTRACKED, (int)git_submodule_ignore(sm1)); - cl_assert_equal_i( - (int)GIT_SUBMODULE_UPDATE_REBASE, (int)git_submodule_update_strategy(sm1)); - cl_assert_equal_i(GIT_SUBMODULE_RECURSE_YES, git_submodule_fetch_recurse_submodules(sm1)); - - /* call reload and check that the new values are loaded */ - cl_git_pass(git_submodule_reload(sm1, 0)); - - cl_assert_equal_s(SM_LIBGIT2_URL, git_submodule_url(sm1)); - cl_assert_equal_s(SM_LIBGIT2_BRANCH, git_submodule_branch(sm1)); - cl_assert_equal_i( - (int)GIT_SUBMODULE_IGNORE_UNTRACKED, (int)git_submodule_ignore(sm1)); - cl_assert_equal_i( - (int)GIT_SUBMODULE_UPDATE_REBASE, (int)git_submodule_update_strategy(sm1)); - cl_assert_equal_i(GIT_SUBMODULE_RECURSE_YES, git_submodule_fetch_recurse_submodules(sm1)); - - /* unset branch again and verify that the property is deleted in config */ - cl_git_pass(git_submodule_set_branch(sm1, NULL)); - cl_git_pass(git_submodule_save(sm1)); - cl_git_pass(git_submodule_reload(sm1, 0)); - cl_assert_equal_s(NULL, git_submodule_branch(sm1)); - - /* open a second copy of the repo and compare submodule */ - cl_git_pass(git_repository_open(&r2, "submod2")); - cl_git_pass(git_submodule_lookup(&sm2, r2, "sm_changed_head")); - - cl_assert_equal_s(SM_LIBGIT2_URL, git_submodule_url(sm2)); - cl_assert_equal_i( - GIT_SUBMODULE_IGNORE_UNTRACKED, git_submodule_ignore(sm2)); - cl_assert_equal_i( - GIT_SUBMODULE_UPDATE_REBASE, git_submodule_update_strategy(sm2)); - cl_assert_equal_i( - GIT_SUBMODULE_RECURSE_NO, git_submodule_fetch_recurse_submodules(sm2)); - - /* set fetchRecurseSubmodules on-demand */ - cl_git_pass(git_submodule_reload(sm1, 0)); - git_submodule_set_fetch_recurse_submodules(sm1, GIT_SUBMODULE_RECURSE_ONDEMAND); - cl_assert_equal_i( - GIT_SUBMODULE_RECURSE_ONDEMAND, git_submodule_fetch_recurse_submodules(sm1)); - /* call save */ - cl_git_pass(git_submodule_save(sm1)); - cl_git_pass(git_submodule_reload(sm1, 0)); - cl_assert_equal_i( - GIT_SUBMODULE_RECURSE_ONDEMAND, git_submodule_fetch_recurse_submodules(sm1)); + git_submodule *sm; - git_submodule_free(sm1); - git_submodule_free(sm2); - git_repository_free(r2); - git__free(old_url); + cl_git_pass(git_submodule_set_ignore(g_repo, "sm_changed_head", ignore)); + + cl_git_pass(git_submodule_lookup(&sm, g_repo, "sm_changed_head")); + cl_assert_equal_i(ignore, git_submodule_ignore(sm)); + git_submodule_free(sm); +} + +void test_submodule_modify__set_ignore(void) +{ + assert_ignore_change(GIT_SUBMODULE_IGNORE_UNTRACKED); + assert_ignore_change(GIT_SUBMODULE_IGNORE_NONE); + assert_ignore_change(GIT_SUBMODULE_IGNORE_ALL); +} + +void assert_update_change(git_submodule_update_t update) +{ + git_submodule *sm; + + cl_git_pass(git_submodule_set_update(g_repo, "sm_changed_head", update)); + + cl_git_pass(git_submodule_lookup(&sm, g_repo, "sm_changed_head")); + cl_assert_equal_i(update, git_submodule_update_strategy(sm)); + git_submodule_free(sm); +} + +void test_submodule_modify__set_update(void) +{ + assert_update_change(GIT_SUBMODULE_UPDATE_REBASE); + assert_update_change(GIT_SUBMODULE_UPDATE_NONE); + assert_update_change(GIT_SUBMODULE_UPDATE_CHECKOUT); +} + +void assert_recurse_change(git_submodule_recurse_t recurse) +{ + git_submodule *sm; + + cl_git_pass(git_submodule_set_fetch_recurse_submodules(g_repo, "sm_changed_head", recurse)); + + cl_git_pass(git_submodule_lookup(&sm, g_repo, "sm_changed_head")); + cl_assert_equal_i(recurse, git_submodule_fetch_recurse_submodules(sm)); + git_submodule_free(sm); +} + +void test_submodule_modify__set_fetch_recurse_submodules(void) +{ + assert_recurse_change(GIT_SUBMODULE_RECURSE_YES); + assert_recurse_change(GIT_SUBMODULE_RECURSE_NO); + assert_recurse_change(GIT_SUBMODULE_RECURSE_ONDEMAND); +} + +void test_submodule_modify__set_branch(void) +{ + git_submodule *sm; + + cl_git_pass(git_submodule_lookup(&sm, g_repo, "sm_changed_head")); + cl_assert(git_submodule_branch(sm) == NULL); + git_submodule_free(sm); + + cl_git_pass(git_submodule_set_branch(g_repo, "sm_changed_head", SM_LIBGIT2_BRANCH)); + cl_git_pass(git_submodule_lookup(&sm, g_repo, "sm_changed_head")); + cl_assert_equal_s(SM_LIBGIT2_BRANCH, git_submodule_branch(sm)); + git_submodule_free(sm); + + cl_git_pass(git_submodule_set_branch(g_repo, "sm_changed_head", NULL)); + cl_git_pass(git_submodule_lookup(&sm, g_repo, "sm_changed_head")); + cl_assert(git_submodule_branch(sm) == NULL); + git_submodule_free(sm); } -void test_submodule_modify__save_last(void) +void test_submodule_modify__set_url(void) { git_submodule *sm; - cl_git_pass(git_submodule_lookup(&sm, g_repo, "sm_gitmodules_only")); - cl_git_pass(git_submodule_save(sm)); + cl_git_pass(git_submodule_set_url(g_repo, "sm_changed_head", SM_LIBGIT2_URL)); + cl_git_pass(git_submodule_lookup(&sm, g_repo, "sm_changed_head")); + cl_assert_equal_s(SM_LIBGIT2_URL, git_submodule_url(sm)); git_submodule_free(sm); } diff --git a/tests/submodule/nosubs.c b/tests/submodule/nosubs.c index e343c162064..538825c1cb2 100644 --- a/tests/submodule/nosubs.c +++ b/tests/submodule/nosubs.c @@ -21,19 +21,11 @@ void test_submodule_nosubs__lookup(void) cl_assert_equal_i(GIT_EEXISTS, git_submodule_lookup(&sm, repo, "subrepo")); - cl_git_pass(git_submodule_reload_all(repo, 0)); - cl_assert_equal_i(GIT_ENOTFOUND, git_submodule_lookup(&sm, repo, "subdir")); cl_assert_equal_i(GIT_EEXISTS, git_submodule_lookup(&sm, repo, "subrepo")); } -void test_submodule_nosubs__immediate_reload(void) -{ - git_repository *repo = cl_git_sandbox_init("status"); - cl_git_pass(git_submodule_reload_all(repo, 0)); -} - static int fake_submod_cb(git_submodule *sm, const char *n, void *p) { GIT_UNUSED(sm); GIT_UNUSED(n); GIT_UNUSED(p); @@ -57,41 +49,7 @@ void test_submodule_nosubs__add(void) git_submodule_free(sm2); cl_git_pass(git_submodule_foreach(repo, fake_submod_cb, NULL)); - cl_git_pass(git_submodule_reload_all(repo, 0)); - - git_submodule_free(sm); -} - -void test_submodule_nosubs__reload_add_reload(void) -{ - git_repository *repo = cl_git_sandbox_init("status"); - git_submodule *sm; - - cl_git_pass(git_submodule_reload_all(repo, 0)); - - /* try one add with a reload (to make sure no errors happen) */ - - cl_git_pass(git_submodule_add_setup(&sm, repo, - "https://github.com/libgit2/libgit2.git", "submodules/libgit2", 1)); - - cl_git_pass(git_submodule_reload_all(repo, 0)); - - cl_assert_equal_s("submodules/libgit2", git_submodule_name(sm)); - git_submodule_free(sm); - - cl_git_pass(git_submodule_lookup(&sm, repo, "submodules/libgit2")); - cl_assert_equal_s("submodules/libgit2", git_submodule_name(sm)); - git_submodule_free(sm); - - /* try one add without a reload (to make sure cache inval works, too) */ - - cl_git_pass(git_submodule_add_setup(&sm, repo, - "https://github.com/libgit2/libgit2.git", "libgit2-again", 1)); - cl_assert_equal_s("libgit2-again", git_submodule_name(sm)); - git_submodule_free(sm); - cl_git_pass(git_submodule_lookup(&sm, repo, "libgit2-again")); - cl_assert_equal_s("libgit2-again", git_submodule_name(sm)); git_submodule_free(sm); } @@ -100,10 +58,8 @@ void test_submodule_nosubs__bad_gitmodules(void) git_repository *repo = cl_git_sandbox_init("status"); cl_git_mkfile("status/.gitmodules", "[submodule \"foobar\"]\tpath=blargle\n\turl=\n\tbranch=\n\tupdate=flooble\n\n"); - cl_git_fail(git_submodule_reload_all(repo, 0)); cl_git_rewritefile("status/.gitmodules", "[submodule \"foobar\"]\tpath=blargle\n\turl=\n\tbranch=\n\tupdate=rebase\n\n"); - cl_git_pass(git_submodule_reload_all(repo, 0)); cl_git_pass(git_submodule_lookup(NULL, repo, "foobar")); cl_assert_equal_i(GIT_ENOTFOUND, git_submodule_lookup(NULL, repo, "subdir")); diff --git a/tests/submodule/status.c b/tests/submodule/status.c index 6efae35c654..6721ee92a91 100644 --- a/tests/submodule/status.c +++ b/tests/submodule/status.c @@ -107,56 +107,47 @@ void test_submodule_status__ignore_none(void) cl_assert((status & GIT_SUBMODULE_STATUS_INDEX_DELETED) != 0); } -static int set_sm_ignore(git_submodule *sm, const char *name, void *payload) -{ - git_submodule_ignore_t ignore = *(git_submodule_ignore_t *)payload; - GIT_UNUSED(name); - git_submodule_set_ignore(sm, ignore); - return 0; -} - void test_submodule_status__ignore_untracked(void) { unsigned int status; git_submodule_ignore_t ign = GIT_SUBMODULE_IGNORE_UNTRACKED; rm_submodule("sm_unchanged"); - cl_git_pass(git_submodule_foreach(g_repo, set_sm_ignore, &ign)); refute_submodule_exists(g_repo, "just_a_dir", GIT_ENOTFOUND); refute_submodule_exists(g_repo, "not-submodule", GIT_EEXISTS); refute_submodule_exists(g_repo, "not", GIT_EEXISTS); - status = get_submodule_status(g_repo, "sm_changed_index"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_index", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_WD_INDEX_MODIFIED) != 0); - status = get_submodule_status(g_repo, "sm_changed_head"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_head", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_WD_MODIFIED) != 0); - status = get_submodule_status(g_repo, "sm_changed_file"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_file", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_WD_WD_MODIFIED) != 0); - status = get_submodule_status(g_repo, "sm_changed_untracked_file"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_untracked_file", ign)); cl_assert(GIT_SUBMODULE_STATUS_IS_UNMODIFIED(status)); - status = get_submodule_status(g_repo, "sm_missing_commits"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_missing_commits", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_WD_MODIFIED) != 0); - status = get_submodule_status(g_repo, "sm_added_and_uncommited"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_added_and_uncommited", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_INDEX_ADDED) != 0); /* removed sm_unchanged for deleted workdir */ - status = get_submodule_status(g_repo, "sm_unchanged"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_unchanged", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_WD_DELETED) != 0); /* now mkdir sm_unchanged to test uninitialized */ cl_git_pass(git_futils_mkdir("sm_unchanged", "submod2", 0755, 0)); - status = get_submodule_status(g_repo, "sm_unchanged"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_unchanged", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_WD_UNINITIALIZED) != 0); /* update sm_changed_head in index */ add_submodule_to_index("sm_changed_head"); - status = get_submodule_status(g_repo, "sm_changed_head"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_head", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_INDEX_MODIFIED) != 0); } @@ -166,42 +157,41 @@ void test_submodule_status__ignore_dirty(void) git_submodule_ignore_t ign = GIT_SUBMODULE_IGNORE_DIRTY; rm_submodule("sm_unchanged"); - cl_git_pass(git_submodule_foreach(g_repo, set_sm_ignore, &ign)); refute_submodule_exists(g_repo, "just_a_dir", GIT_ENOTFOUND); refute_submodule_exists(g_repo, "not-submodule", GIT_EEXISTS); refute_submodule_exists(g_repo, "not", GIT_EEXISTS); - status = get_submodule_status(g_repo, "sm_changed_index"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_index", ign)); cl_assert(GIT_SUBMODULE_STATUS_IS_UNMODIFIED(status)); - status = get_submodule_status(g_repo, "sm_changed_head"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_head", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_WD_MODIFIED) != 0); - status = get_submodule_status(g_repo, "sm_changed_file"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_file", ign)); cl_assert(GIT_SUBMODULE_STATUS_IS_UNMODIFIED(status)); - status = get_submodule_status(g_repo, "sm_changed_untracked_file"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_untracked_file", ign)); cl_assert(GIT_SUBMODULE_STATUS_IS_UNMODIFIED(status)); - status = get_submodule_status(g_repo, "sm_missing_commits"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_missing_commits", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_WD_MODIFIED) != 0); - status = get_submodule_status(g_repo, "sm_added_and_uncommited"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_added_and_uncommited", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_INDEX_ADDED) != 0); /* removed sm_unchanged for deleted workdir */ - status = get_submodule_status(g_repo, "sm_unchanged"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_unchanged", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_WD_DELETED) != 0); /* now mkdir sm_unchanged to test uninitialized */ cl_git_pass(git_futils_mkdir("sm_unchanged", "submod2", 0755, 0)); - status = get_submodule_status(g_repo, "sm_unchanged"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_unchanged", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_WD_UNINITIALIZED) != 0); /* update sm_changed_head in index */ add_submodule_to_index("sm_changed_head"); - status = get_submodule_status(g_repo, "sm_changed_head"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_head", ign)); cl_assert((status & GIT_SUBMODULE_STATUS_INDEX_MODIFIED) != 0); } @@ -211,42 +201,41 @@ void test_submodule_status__ignore_all(void) git_submodule_ignore_t ign = GIT_SUBMODULE_IGNORE_ALL; rm_submodule("sm_unchanged"); - cl_git_pass(git_submodule_foreach(g_repo, set_sm_ignore, &ign)); refute_submodule_exists(g_repo, "just_a_dir", GIT_ENOTFOUND); refute_submodule_exists(g_repo, "not-submodule", GIT_EEXISTS); refute_submodule_exists(g_repo, "not", GIT_EEXISTS); - status = get_submodule_status(g_repo, "sm_changed_index"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_index", ign)); cl_assert(GIT_SUBMODULE_STATUS_IS_UNMODIFIED(status)); - status = get_submodule_status(g_repo, "sm_changed_head"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_head", ign)); cl_assert(GIT_SUBMODULE_STATUS_IS_UNMODIFIED(status)); - status = get_submodule_status(g_repo, "sm_changed_file"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_file", ign)); cl_assert(GIT_SUBMODULE_STATUS_IS_UNMODIFIED(status)); - status = get_submodule_status(g_repo, "sm_changed_untracked_file"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_untracked_file", ign)); cl_assert(GIT_SUBMODULE_STATUS_IS_UNMODIFIED(status)); - status = get_submodule_status(g_repo, "sm_missing_commits"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_missing_commits", ign)); cl_assert(GIT_SUBMODULE_STATUS_IS_UNMODIFIED(status)); - status = get_submodule_status(g_repo, "sm_added_and_uncommited"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_added_and_uncommited", ign)); cl_assert(GIT_SUBMODULE_STATUS_IS_UNMODIFIED(status)); /* removed sm_unchanged for deleted workdir */ - status = get_submodule_status(g_repo, "sm_unchanged"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_unchanged", ign)); cl_assert(GIT_SUBMODULE_STATUS_IS_UNMODIFIED(status)); /* now mkdir sm_unchanged to test uninitialized */ cl_git_pass(git_futils_mkdir("sm_unchanged", "submod2", 0755, 0)); - status = get_submodule_status(g_repo, "sm_unchanged"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_unchanged", ign)); cl_assert(GIT_SUBMODULE_STATUS_IS_UNMODIFIED(status)); /* update sm_changed_head in index */ add_submodule_to_index("sm_changed_head"); - status = get_submodule_status(g_repo, "sm_changed_head"); + cl_git_pass(git_submodule_status(&status, g_repo,"sm_changed_head", ign)); cl_assert(GIT_SUBMODULE_STATUS_IS_UNMODIFIED(status)); } diff --git a/tests/submodule/submodule_helpers.c b/tests/submodule/submodule_helpers.c index 19bb04f755b..1dc68723102 100644 --- a/tests/submodule/submodule_helpers.c +++ b/tests/submodule/submodule_helpers.c @@ -156,21 +156,18 @@ void refute__submodule_exists( git_repository *repo, const char *name, int expected_error, const char *msg, const char *file, int line) { - git_submodule *sm; clar__assert_equal( file, line, msg, 1, "%i", - expected_error, (int)(git_submodule_lookup(&sm, repo, name))); + expected_error, (int)(git_submodule_lookup(NULL, repo, name))); } unsigned int get_submodule_status(git_repository *repo, const char *name) { - git_submodule *sm = NULL; unsigned int status = 0; - cl_git_pass(git_submodule_lookup(&sm, repo, name)); - cl_assert(sm); - cl_git_pass(git_submodule_status(&status, sm)); - git_submodule_free(sm); + assert(repo && name); + + cl_git_pass(git_submodule_status(&status, repo, name, GIT_SUBMODULE_IGNORE_UNSPECIFIED)); return status; } diff --git a/tests/submodule/update.c b/tests/submodule/update.c index e7f1b76b818..40d24d0a784 100644 --- a/tests/submodule/update.c +++ b/tests/submodule/update.c @@ -103,7 +103,7 @@ void test_submodule_update__update_submodule(void) cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo")); /* verify the initial state of the submodule */ - cl_git_pass(git_submodule_status(&submodule_status, sm)); + cl_git_pass(git_submodule_status(&submodule_status, g_repo, "testrepo", GIT_SUBMODULE_IGNORE_UNSPECIFIED)); cl_assert_equal_i(submodule_status, GIT_SUBMODULE_STATUS_IN_HEAD | GIT_SUBMODULE_STATUS_IN_INDEX | GIT_SUBMODULE_STATUS_IN_CONFIG | @@ -114,7 +114,7 @@ void test_submodule_update__update_submodule(void) cl_git_pass(git_submodule_update(sm, 0, &update_options)); /* verify state */ - cl_git_pass(git_submodule_status(&submodule_status, sm)); + cl_git_pass(git_submodule_status(&submodule_status, g_repo, "testrepo", GIT_SUBMODULE_IGNORE_UNSPECIFIED)); cl_assert_equal_i(submodule_status, GIT_SUBMODULE_STATUS_IN_HEAD | GIT_SUBMODULE_STATUS_IN_INDEX | GIT_SUBMODULE_STATUS_IN_CONFIG | @@ -142,7 +142,7 @@ void test_submodule_update__update_and_init_submodule(void) /* get the submodule */ cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo")); - cl_git_pass(git_submodule_status(&submodule_status, sm)); + cl_git_pass(git_submodule_status(&submodule_status, g_repo, "testrepo", GIT_SUBMODULE_IGNORE_UNSPECIFIED)); cl_assert_equal_i(submodule_status, GIT_SUBMODULE_STATUS_IN_HEAD | GIT_SUBMODULE_STATUS_IN_INDEX | GIT_SUBMODULE_STATUS_IN_CONFIG | @@ -177,7 +177,7 @@ void test_submodule_update__update_already_checked_out_submodule(void) /* Initialize and update the sub repository */ cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo")); - cl_git_pass(git_submodule_status(&submodule_status, sm)); + cl_git_pass(git_submodule_status(&submodule_status, g_repo, "testrepo", GIT_SUBMODULE_IGNORE_UNSPECIFIED)); cl_assert_equal_i(submodule_status, GIT_SUBMODULE_STATUS_IN_HEAD | GIT_SUBMODULE_STATUS_IN_INDEX | GIT_SUBMODULE_STATUS_IN_CONFIG | @@ -203,7 +203,11 @@ void test_submodule_update__update_already_checked_out_submodule(void) * HEAD commit and index should be updated, but not the workdir. */ - cl_git_pass(git_submodule_status(&submodule_status, sm)); + cl_git_pass(git_submodule_status(&submodule_status, g_repo, "testrepo", GIT_SUBMODULE_IGNORE_UNSPECIFIED)); + + git_submodule_free(sm); + cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo")); + cl_assert_equal_i(submodule_status, GIT_SUBMODULE_STATUS_IN_HEAD | GIT_SUBMODULE_STATUS_IN_INDEX | GIT_SUBMODULE_STATUS_IN_CONFIG | @@ -251,7 +255,7 @@ void test_submodule_update__update_blocks_on_dirty_wd(void) /* Initialize and update the sub repository */ cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo")); - cl_git_pass(git_submodule_status(&submodule_status, sm)); + cl_git_pass(git_submodule_status(&submodule_status, g_repo, "testrepo", GIT_SUBMODULE_IGNORE_UNSPECIFIED)); cl_assert_equal_i(submodule_status, GIT_SUBMODULE_STATUS_IN_HEAD | GIT_SUBMODULE_STATUS_IN_INDEX | GIT_SUBMODULE_STATUS_IN_CONFIG | @@ -277,7 +281,11 @@ void test_submodule_update__update_blocks_on_dirty_wd(void) * HEAD commit and index should be updated, but not the workdir. */ - cl_git_pass(git_submodule_status(&submodule_status, sm)); + cl_git_pass(git_submodule_status(&submodule_status, g_repo, "testrepo", GIT_SUBMODULE_IGNORE_UNSPECIFIED)); + + git_submodule_free(sm); + cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo")); + cl_assert_equal_i(submodule_status, GIT_SUBMODULE_STATUS_IN_HEAD | GIT_SUBMODULE_STATUS_IN_INDEX | GIT_SUBMODULE_STATUS_IN_CONFIG | @@ -324,7 +332,7 @@ void test_submodule_update__can_force_update(void) /* Initialize and update the sub repository */ cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo")); - cl_git_pass(git_submodule_status(&submodule_status, sm)); + cl_git_pass(git_submodule_status(&submodule_status, g_repo, "testrepo", GIT_SUBMODULE_IGNORE_UNSPECIFIED)); cl_assert_equal_i(submodule_status, GIT_SUBMODULE_STATUS_IN_HEAD | GIT_SUBMODULE_STATUS_IN_INDEX | GIT_SUBMODULE_STATUS_IN_CONFIG | @@ -349,7 +357,11 @@ void test_submodule_update__can_force_update(void) * Verify state after checkout of parent repository. The submodule ID in the * HEAD commit and index should be updated, but not the workdir. */ - cl_git_pass(git_submodule_status(&submodule_status, sm)); + cl_git_pass(git_submodule_status(&submodule_status, g_repo, "testrepo", GIT_SUBMODULE_IGNORE_UNSPECIFIED)); + + git_submodule_free(sm); + cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo")); + cl_assert_equal_i(submodule_status, GIT_SUBMODULE_STATUS_IN_HEAD | GIT_SUBMODULE_STATUS_IN_INDEX | GIT_SUBMODULE_STATUS_IN_CONFIG |