diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2014-04-27 21:15:47 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-10 13:09:00 -0700 |
commit | ac9afcc31cd1f7c00c2747132e5f512173613fd9 (patch) | |
tree | bc03b31f830e29630af35e9afbd2e796f1dd2e94 /t/README | |
parent | 5f95c9f850b19b368c43ae399cc831b17a26a5ac (diff) | |
download | git-ac9afcc31cd1f7c00c2747132e5f512173613fd9.tar.gz git-ac9afcc31cd1f7c00c2747132e5f512173613fd9.tar.xz |
test: add test_write_lines helper
API and implementation as suggested by Junio.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/README')
-rw-r--r-- | t/README | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -596,6 +596,28 @@ library for your script to use. ... ' + - test_write_lines <text> + + Split <text> to white-space separated words and write it out on standard + output, one word per line. + Useful to prepare multi-line files in a compact form. + + Example: + + test_write_lines "a b c d e f g" >foo + + Is a more compact equivalent of: + cat >foo <<-EOF + a + b + c + d + e + f + g + EOF + + - test_pause This command is useful for writing and debugging tests and must be |