]> granicus.if.org Git - cgit/commitdiff
tests: make whitespace consistent
authorJohn Keeping <john@keeping.me.uk>
Mon, 4 Mar 2013 21:58:50 +0000 (21:58 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 5 Mar 2013 00:39:07 +0000 (19:39 -0500)
Signed-off-by: John Keeping <john@keeping.me.uk>
tests/t0105-commit.sh
tests/t0107-snapshot.sh
tests/t0108-patch.sh

index 19a650b14a4cd8623f6dfbbb75bfb0ea58c26a0a..31b554b241e2a0e58811cd13234139fe2f46760a 100755 (executable)
@@ -16,22 +16,22 @@ run_test 'find commit msg' 'grep "<div class=.commit-msg.></div>" trash/tmp'
 run_test 'find diffstat' 'grep "<table summary=.diffstat. class=.diffstat.>" trash/tmp'
 
 run_test 'find diff summary' '
-        grep "1 files changed, 1 insertions, 0 deletions" trash/tmp
+       grep "1 files changed, 1 insertions, 0 deletions" trash/tmp
 '
 
 run_test 'get root commit' '
-        root=$(cd trash/repos/foo && git rev-list --reverse HEAD | head -1) &&
-        cgit_url "foo/commit&id=$root" >trash/tmp &&
-        grep "</html>" trash/tmp
+       root=$(cd trash/repos/foo && git rev-list --reverse HEAD | head -1) &&
+       cgit_url "foo/commit&id=$root" >trash/tmp &&
+       grep "</html>" trash/tmp
 '
 
 run_test 'root commit contains diffstat' '
-        grep "<a href=./foo/diff/file-1.id=[0-9a-f]\{40\}.>file-1</a>" trash/tmp
+       grep "<a href=./foo/diff/file-1.id=[0-9a-f]\{40\}.>file-1</a>" trash/tmp
 '
 
 run_test 'root commit contains diff' '
-        grep ">diff --git a/file-1 b/file-1<" trash/tmp &&
-        grep "<div class=.add.>+1</div>" trash/tmp
+       grep ">diff --git a/file-1 b/file-1<" trash/tmp &&
+       grep "<div class=.add.>+1</div>" trash/tmp
 '
 
 tests_done
index 8ad95737f193c7d182c53cbe2874336cce02219c..d23bf97bd539820208f611dbdc4964f9266d913c 100755 (executable)
@@ -10,17 +10,20 @@ run_test 'get foo/snapshot/master.tar.gz' '
 
 run_test 'check html headers' '
        head -n 1 trash/tmp |
-            grep "Content-Type: application/x-gzip" &&
+       grep "Content-Type: application/x-gzip" &&
 
        head -n 2 trash/tmp |
-            grep "Content-Disposition: inline; filename=.master.tar.gz."
+       grep "Content-Disposition: inline; filename=.master.tar.gz."
 '
 
 run_test 'strip off the header lines' '
-        tail -n +6 trash/tmp > trash/master.tar.gz
+       tail -n +6 trash/tmp > trash/master.tar.gz
+'
+
+run_test '
+       verify gzip format' 'gunzip --test trash/master.tar.gz
 '
 
-run_test 'verify gzip format' 'gunzip --test trash/master.tar.gz'
 run_test 'untar' '
        rm -rf trash/master &&
        tar -xf trash/master.tar.gz -C trash
@@ -32,8 +35,8 @@ run_test 'count files' '
 '
 
 run_test 'verify untarred file-5' '
-        grep "^5$" trash/master/file-5 &&
-        test $(cat trash/master/file-5 | wc -l) = 1
+       grep "^5$" trash/master/file-5 &&
+       test $(cat trash/master/file-5 | wc -l) = 1
 '
 
 tests_done
index f15c893b73738e7ec21e88602e656c201b4aeed7..f92f69cd520b8648a3842d2cf50a5e18d0c847a2 100755 (executable)
@@ -21,7 +21,7 @@ run_test 'find `Subject:` line' '
 '
 
 run_test 'find `cgit` signature' '
-        tail -1 trash/tmp | grep "^cgit"
+       tail -1 trash/tmp | grep "^cgit"
 '
 
 run_test 'find initial commit' '