author | Lars Hjemli <hjemli@gmail.com> | 2010-08-29 15:40:51 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2010-08-29 15:40:51 (UTC) |
commit | 6940b23b9e4698ba466a4616e4de77b986560ad3 (patch) (unidiff) | |
tree | 69dc61393b834474a8556d7b3969b327d223dc15 /tests | |
parent | 6d7552bc072599313ef423d69156d824c075572a (diff) | |
parent | 48434780ca62fde84337ea1e797f642de5ca50d5 (diff) | |
download | cgit-6940b23b9e4698ba466a4616e4de77b986560ad3.zip cgit-6940b23b9e4698ba466a4616e4de77b986560ad3.tar.gz cgit-6940b23b9e4698ba466a4616e4de77b986560ad3.tar.bz2 |
Merge branch 'stable'
-rwxr-xr-x | tests/t0108-patch.sh | 2 |
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 | ||
5 | prepare_tests "Check content on patch page" | 5 | prepare_tests "Check content on patch page" |
6 | 6 | ||
7 | run_test 'generate foo/patch' ' | 7 | run_test 'generate foo/patch' ' |
8 | cgit_query "url=foo/patch" >trash/tmp | 8 | cgit_query "url=foo/patch" >trash/tmp |
9 | ' | 9 | ' |
10 | 10 | ||
11 | run_test 'find `From:` line' ' | 11 | run_test 'find `From:` line' ' |
12 | grep -e "^From: " trash/tmp | 12 | grep -e "^From: " trash/tmp |
13 | ' | 13 | ' |
14 | 14 | ||
15 | run_test 'find `Date:` line' ' | 15 | run_test 'find `Date:` line' ' |
16 | grep -e "^Date: " trash/tmp | 16 | grep -e "^Date: " trash/tmp |
17 | ' | 17 | ' |
18 | 18 | ||
19 | run_test 'find `Subject:` line' ' | 19 | run_test 'find `Subject:` line' ' |
20 | grep -e "^Subject: commit 5" trash/tmp | 20 | grep -e "^Subject: commit 5" trash/tmp |
21 | ' | 21 | ' |
22 | 22 | ||
23 | run_test 'find `cgit` signature' ' | 23 | run_test 'find `cgit` signature' ' |
24 | tail -1 trash/tmp | grep -e "^cgit" | 24 | tail -1 trash/tmp | grep -e "^cgit" |
25 | ' | 25 | ' |
26 | 26 | ||
27 | run_test 'find initial commit' ' | 27 | run_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 | ||
31 | run_test 'generate patch for initial commit' ' | 31 | run_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 | ||
35 | run_test 'find `cgit` signature' ' | 35 | run_test 'find `cgit` signature' ' |
36 | tail -1 trash/tmp | grep -e "^cgit" | 36 | tail -1 trash/tmp | grep -e "^cgit" |
37 | ' | 37 | ' |
38 | |||
39 | tests_done | ||