From ac9afcc31cd1f7c00c2747132e5f512173613fd9 Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Sun, 27 Apr 2014 21:15:47 +0300 Subject: test: add test_write_lines helper API and implementation as suggested by Junio. Signed-off-by: Michael S. Tsirkin Signed-off-by: Junio C Hamano --- t/README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 't/README') diff --git a/t/README b/t/README index caeeb9dedc..2d6232fbd3 100644 --- a/t/README +++ b/t/README @@ -596,6 +596,28 @@ library for your script to use. ... ' + - test_write_lines + + Split 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 -- cgit v1.2.3