10 Commits

Author SHA1 Message Date
Tyler Wanek
a653f96781 Get rid of some test files that were accidentally committed 2019-01-14 16:12:28 -07:00
Edward Thomson
3d804063d9 crlf_data: add corpus of known-good odb-filtered data
Use the crlf data scripts to produce a corpus of known-good data in
"git" format (aka ODB format) from a variety of files with different
line endings.  `git` created these files running `git add` to stage the
contents then extracting the data from the repository.

We'll use these to ensure that we create identical contents when we add
files into the index.
2018-12-03 17:01:25 -08:00
Edward Thomson
a0ab90b881 crlf: re-use existing crlf script to create odb
Re-use the existing crlf data generation script for creating the to-odb
dataset.  Also, store the actual file contents instead of the ID so that
we can identify differences instead of detecting that differences exist.
2018-12-03 17:01:24 -08:00
Sven Strickroth
9065160bfb crlf: script to generate expected crlf data for adding files to index
Include a shell script that will generate the expected data of OIDs and
failures for calling git.git to capture its output as a test resource.

Right now, there is no need to differentiate different systems as git behaves
the same on all systems IIRC.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
2018-12-03 17:01:24 -08:00
Edward Thomson
13a8bc924c crlf_data: move to a "to_workdir" folder
Move the crlf_data folders reponsible for holding the state of the
filters going into the working directory to "to_workdir" variations of
the folder name to accommodate future growth into the "to odb" filter
variation.  Update the script to create these new folders as appopriate.
2018-12-03 13:08:25 -08:00
Edward Thomson
2ad24a4e2d tests: add information about the crlf data generator
The CRLF data generator is somewhat obscure; add information about how
to use it and what it does.
2018-04-17 20:05:35 +01:00
Sven Strickroth
ad5a696eb2 tests: crlf: update POSIX test data to reflect Git 2.9+ behavior
Update with vanilla Git 2.11.0 on Debian

Signed-off-by: Sven Strickroth <email@cs-ware.de>
2018-04-17 19:42:09 +02:00
Sven Strickroth
f65eea4498 tests: crlf: update Windows test data to reflect Git 2.9+ behavior
Update with "git version 2.11.0.windows.3"

Signed-off-by: Sven Strickroth <email@cs-ware.de>
2018-04-17 19:42:09 +02:00
Edward Thomson
e774fa6c0b crlf tests: posix known-good data
A corpus of files checked out with Git (Linux, 1.9.1) to ensure that
produce identical data when checking out using a CRLF filter.
2015-06-22 12:00:11 -04:00
Edward Thomson
4ebe320a31 crlf tests: windows known-good data
A corpus of files checked out with Git for Windows (2.4.1.windows.1)
to ensure that we produce identical data when checking out using a
CRLF filter.
2015-06-22 12:00:06 -04:00