Merge branch 'jk/xstrfmt'
[gitweb.git] / t / test-lib-functions.sh
index 0681003b347ffb9152dee3f5866ccda415aa3dc9..0377d3e2960cc282ce1a2c7cb629245728c82092 100644 (file)
@@ -617,6 +617,12 @@ test_cmp() {
        $GIT_TEST_CMP "$@"
 }
 
+# test_cmp_bin - helper to compare binary files
+
+test_cmp_bin() {
+       cmp "$@"
+}
+
 # Check if the file expected to be empty is indeed empty, and barfs
 # otherwise.
 
@@ -717,6 +723,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" "$@"
 }