summaryrefslogtreecommitdiffabout
path: root/tests
authorLars Hjemli <hjemli@gmail.com>2010-08-29 15:40:51 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2010-08-29 15:40:51 (UTC)
commit6940b23b9e4698ba466a4616e4de77b986560ad3 (patch) (unidiff)
tree69dc61393b834474a8556d7b3969b327d223dc15 /tests
parent6d7552bc072599313ef423d69156d824c075572a (diff)
parent48434780ca62fde84337ea1e797f642de5ca50d5 (diff)
downloadcgit-6940b23b9e4698ba466a4616e4de77b986560ad3.zip
cgit-6940b23b9e4698ba466a4616e4de77b986560ad3.tar.gz
cgit-6940b23b9e4698ba466a4616e4de77b986560ad3.tar.bz2
Merge branch 'stable'
Diffstat (limited to 'tests') (more/less context) (ignore whitespace changes)
-rwxr-xr-xtests/t0108-patch.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/t0108-patch.sh b/tests/t0108-patch.sh
index 33351d6..e608104 100755
--- a/tests/t0108-patch.sh
+++ b/tests/t0108-patch.sh
@@ -1,37 +1,39 @@
1#!/bin/sh 1#!/bin/sh
2 2
3. ./setup.sh 3. ./setup.sh
4 4
5prepare_tests "Check content on patch page" 5prepare_tests "Check content on patch page"
6 6
7run_test 'generate foo/patch' ' 7run_test 'generate foo/patch' '
8 cgit_query "url=foo/patch" >trash/tmp 8 cgit_query "url=foo/patch" >trash/tmp
9' 9'
10 10
11run_test 'find `From:` line' ' 11run_test 'find `From:` line' '
12 grep -e "^From: " trash/tmp 12 grep -e "^From: " trash/tmp
13' 13'
14 14
15run_test 'find `Date:` line' ' 15run_test 'find `Date:` line' '
16 grep -e "^Date: " trash/tmp 16 grep -e "^Date: " trash/tmp
17' 17'
18 18
19run_test 'find `Subject:` line' ' 19run_test 'find `Subject:` line' '
20 grep -e "^Subject: commit 5" trash/tmp 20 grep -e "^Subject: commit 5" trash/tmp
21' 21'
22 22
23run_test 'find `cgit` signature' ' 23run_test 'find `cgit` signature' '
24 tail -1 trash/tmp | grep -e "^cgit" 24 tail -1 trash/tmp | grep -e "^cgit"
25' 25'
26 26
27run_test 'find initial commit' ' 27run_test 'find initial commit' '
28 root=$(git --git-dir=$PWD/trash/repos/foo/.git rev-list HEAD | tail -1) 28 root=$(git --git-dir=$PWD/trash/repos/foo/.git rev-list HEAD | tail -1)
29' 29'
30 30
31run_test 'generate patch for initial commit' ' 31run_test 'generate patch for initial commit' '
32 cgit_query "url=foo/patch&id=$root" >trash/tmp 32 cgit_query "url=foo/patch&id=$root" >trash/tmp
33' 33'
34 34
35run_test 'find `cgit` signature' ' 35run_test 'find `cgit` signature' '
36 tail -1 trash/tmp | grep -e "^cgit" 36 tail -1 trash/tmp | grep -e "^cgit"
37' 37'
38
39tests_done