test: add test_write_lines helper
[gitweb.git] / t / test-lib-functions.sh
index 2f79146e6ce0c5df32845f7c9c0927cea133ad5f..213fd0f3c5542fcd34137d9239027c64597ca40d 100644 (file)
@@ -1,4 +1,5 @@
-#!/bin/sh
+# Library of functions shared by all tests scripts, included by
+# test-lib.sh.
 #
 # Copyright (c) 2005 Junio C Hamano
 #
@@ -711,6 +712,11 @@ test_ln_s_add () {
        fi
 }
 
+# This function writes out its parameters, one per line
+test_write_lines () {
+       printf "%s\n" "$@"
+}
+
 perl () {
        command "$PERL_PATH" "$@"
 }