From 9065160bfb55bea6d4bf932783d7ceab952ed1c9 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Wed, 1 Jul 2015 16:55:06 +0200 Subject: 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 --- tests/resources/crlf_data/README | 3 ++- .../crlf_data/checkin_input_files/all-crlf | 4 ++++ .../crlf_data/checkin_input_files/all-crlf-utf8bom | 4 ++++ .../resources/crlf_data/checkin_input_files/all-lf | 5 +++++ .../crlf_data/checkin_input_files/all-lf-utf8bom | 5 +++++ .../crlf_data/checkin_input_files/binary-all-crlf | 4 ++++ .../crlf_data/checkin_input_files/binary-all-lf | 4 ++++ .../checkin_input_files/binary-mixed-lf-cr | 3 +++ .../checkin_input_files/binary-mixed-lf-cr-crlf | 3 +++ .../checkin_input_files/few-utf8-chars-crlf | 22 ++++++++++++++++++++++ .../checkin_input_files/few-utf8-chars-lf | 22 ++++++++++++++++++++++ .../checkin_input_files/many-utf8-chars-crlf | 4 ++++ .../checkin_input_files/many-utf8-chars-lf | 4 ++++ .../crlf_data/checkin_input_files/mixed-lf-cr | 3 +++ .../crlf_data/checkin_input_files/mixed-lf-cr-crlf | 3 +++ .../crlf_data/checkin_input_files/more-crlf | 5 +++++ .../checkin_input_files/more-crlf-utf8bom | 5 +++++ .../crlf_data/checkin_input_files/more-lf | 5 +++++ .../crlf_data/checkin_input_files/more-lf-utf8bom | 5 +++++ .../crlf_data/checkin_input_files/zero-byte | 0 20 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 tests/resources/crlf_data/checkin_input_files/all-crlf create mode 100644 tests/resources/crlf_data/checkin_input_files/all-crlf-utf8bom create mode 100644 tests/resources/crlf_data/checkin_input_files/all-lf create mode 100644 tests/resources/crlf_data/checkin_input_files/all-lf-utf8bom create mode 100644 tests/resources/crlf_data/checkin_input_files/binary-all-crlf create mode 100644 tests/resources/crlf_data/checkin_input_files/binary-all-lf create mode 100644 tests/resources/crlf_data/checkin_input_files/binary-mixed-lf-cr create mode 100644 tests/resources/crlf_data/checkin_input_files/binary-mixed-lf-cr-crlf create mode 100644 tests/resources/crlf_data/checkin_input_files/few-utf8-chars-crlf create mode 100644 tests/resources/crlf_data/checkin_input_files/few-utf8-chars-lf create mode 100644 tests/resources/crlf_data/checkin_input_files/many-utf8-chars-crlf create mode 100644 tests/resources/crlf_data/checkin_input_files/many-utf8-chars-lf create mode 100644 tests/resources/crlf_data/checkin_input_files/mixed-lf-cr create mode 100644 tests/resources/crlf_data/checkin_input_files/mixed-lf-cr-crlf create mode 100644 tests/resources/crlf_data/checkin_input_files/more-crlf create mode 100644 tests/resources/crlf_data/checkin_input_files/more-crlf-utf8bom create mode 100644 tests/resources/crlf_data/checkin_input_files/more-lf create mode 100644 tests/resources/crlf_data/checkin_input_files/more-lf-utf8bom create mode 100644 tests/resources/crlf_data/checkin_input_files/zero-byte (limited to 'tests/resources/crlf_data') diff --git a/tests/resources/crlf_data/README b/tests/resources/crlf_data/README index 2347e126f..0c8badf9f 100644 --- a/tests/resources/crlf_data/README +++ b/tests/resources/crlf_data/README @@ -1,2 +1,3 @@ This test data was generated using the `tests/resources/generate_crlf.sh` -script. Please see that script for usage information. +(posix and windows directories) and `tests/resources/generate_crlf_checkin.sh` +(checkin_results directory) scripts. Please see these scripts for usage information. diff --git a/tests/resources/crlf_data/checkin_input_files/all-crlf b/tests/resources/crlf_data/checkin_input_files/all-crlf new file mode 100644 index 000000000..a9a2e8913 --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/all-crlf @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/checkin_input_files/all-crlf-utf8bom b/tests/resources/crlf_data/checkin_input_files/all-crlf-utf8bom new file mode 100644 index 000000000..0aa76e474 --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/all-crlf-utf8bom @@ -0,0 +1,4 @@ +crlf +crlf +crlf +crlf diff --git a/tests/resources/crlf_data/checkin_input_files/all-lf b/tests/resources/crlf_data/checkin_input_files/all-lf new file mode 100644 index 000000000..799770d1c --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/all-lf @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/checkin_input_files/all-lf-utf8bom b/tests/resources/crlf_data/checkin_input_files/all-lf-utf8bom new file mode 100644 index 000000000..7cce67e58 --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/all-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +lf +lf +lf diff --git a/tests/resources/crlf_data/checkin_input_files/binary-all-crlf b/tests/resources/crlf_data/checkin_input_files/binary-all-crlf new file mode 100644 index 000000000..85340755c --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/binary-all-crlf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/checkin_input_files/binary-all-lf b/tests/resources/crlf_data/checkin_input_files/binary-all-lf new file mode 100644 index 000000000..af6fcf6da --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/binary-all-lf @@ -0,0 +1,4 @@ +one +two +three +four diff --git a/tests/resources/crlf_data/checkin_input_files/binary-mixed-lf-cr b/tests/resources/crlf_data/checkin_input_files/binary-mixed-lf-cr new file mode 100644 index 000000000..203555c56 --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/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/checkin_input_files/binary-mixed-lf-cr-crlf b/tests/resources/crlf_data/checkin_input_files/binary-mixed-lf-cr-crlf new file mode 100644 index 000000000..aaf083a9c --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/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/checkin_input_files/few-utf8-chars-crlf b/tests/resources/crlf_data/checkin_input_files/few-utf8-chars-crlf new file mode 100644 index 000000000..0e0528888 --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/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/checkin_input_files/few-utf8-chars-lf b/tests/resources/crlf_data/checkin_input_files/few-utf8-chars-lf new file mode 100644 index 000000000..f4d25b796 --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/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/checkin_input_files/many-utf8-chars-crlf b/tests/resources/crlf_data/checkin_input_files/many-utf8-chars-crlf new file mode 100644 index 000000000..cd574f5a2 --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/many-utf8-chars-crlf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/checkin_input_files/many-utf8-chars-lf b/tests/resources/crlf_data/checkin_input_files/many-utf8-chars-lf new file mode 100644 index 000000000..9a6c3533f --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/many-utf8-chars-lf @@ -0,0 +1,4 @@ +Lets sing! +♫♪♬♩ +Eat food +🍅🍕 diff --git a/tests/resources/crlf_data/checkin_input_files/mixed-lf-cr b/tests/resources/crlf_data/checkin_input_files/mixed-lf-cr new file mode 100644 index 000000000..d11e7ef63 --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/mixed-lf-cr @@ -0,0 +1,3 @@ +one +two three +four \ No newline at end of file diff --git a/tests/resources/crlf_data/checkin_input_files/mixed-lf-cr-crlf b/tests/resources/crlf_data/checkin_input_files/mixed-lf-cr-crlf new file mode 100644 index 000000000..417786fc3 --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/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/checkin_input_files/more-crlf b/tests/resources/crlf_data/checkin_input_files/more-crlf new file mode 100644 index 000000000..0ff5a53f1 --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/more-crlf @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/checkin_input_files/more-crlf-utf8bom b/tests/resources/crlf_data/checkin_input_files/more-crlf-utf8bom new file mode 100644 index 000000000..ea030d3c6 --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/more-crlf-utf8bom @@ -0,0 +1,5 @@ +crlf +crlf +lf +crlf +crlf diff --git a/tests/resources/crlf_data/checkin_input_files/more-lf b/tests/resources/crlf_data/checkin_input_files/more-lf new file mode 100644 index 000000000..04de00b35 --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/more-lf @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/checkin_input_files/more-lf-utf8bom b/tests/resources/crlf_data/checkin_input_files/more-lf-utf8bom new file mode 100644 index 000000000..dc88e3b91 --- /dev/null +++ b/tests/resources/crlf_data/checkin_input_files/more-lf-utf8bom @@ -0,0 +1,5 @@ +lf +lf +crlf +lf +lf diff --git a/tests/resources/crlf_data/checkin_input_files/zero-byte b/tests/resources/crlf_data/checkin_input_files/zero-byte new file mode 100644 index 000000000..e69de29bb -- cgit v1.2.1