]> thyrsus.com Git - src.git/commitdiff
Add another commit and log test.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 7 Nov 2014 21:29:07 +0000 (16:29 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 7 Nov 2014 21:29:07 +0000 (16:29 -0500)
srctest

diff --git a/srctest b/srctest
index a7384f11ea0d6a1b2e44709635af6845ca5c0b32..5ab05b91c3499cb604fe0eba9e259e0e568d75a1 100755 (executable)
--- a/srctest
+++ b/srctest
@@ -68,7 +68,7 @@ EOF
 
 src $TESTOPTS log testfile1 >testfile3
 diff testfile2 testfile3
-check "log test"
+check "2-commit log test"
 
 cat >testfile1 <<EOF
 Now is the time
@@ -80,6 +80,23 @@ echo "Third comment" >testfile4
 src $TESTOPTS commit -f testfile4 testfile1 >/dev/null
 check "commit with -f"
 
+cat >testfile4 <<EOF
+= testfile1 =================================================================
+3    | 1970-01-02T00:01:00Z
+Third comment
+------------------------------------------------------------------------------
+2    | 1970-01-02T00:02:00Z
+Second comment
+------------------------------------------------------------------------------
+1    | 1970-01-02T00:03:00Z
+First comment
+------------------------------------------------------------------------------
+EOF
+
+src $TESTOPTS log testfile1 >testfile5
+diff testfile4 testfile5
+check "3-commit log test"
+
 # to do: checkout, tag, fast-export, out-of-bounds revisions.
 
 # end