]>
git.cameronkatri.com Git - cgit.git/blob - tests/t0108-patch.sh
3 test_description
='Check content on patch page'
6 test_expect_success
'generate foo/patch' '
7 cgit_query "url=foo/patch" >tmp
10 test_expect_success
'find `From:` line' '
14 test_expect_success
'find `Date:` line' '
18 test_expect_success
'find `Subject:` line' '
19 grep "^Subject: commit 5" tmp
22 test_expect_success
'find `cgit` signature' '
23 tail -1 tmp | grep "^cgit"
26 test_expect_success
'find initial commit' '
27 root=$(git --git-dir="$PWD/repos/foo/.git" rev-list HEAD | tail -1)
30 test_expect_success
'generate patch for initial commit' '
31 cgit_query "url=foo/patch&id=$root" >tmp
34 test_expect_success
'find `cgit` signature' '
35 tail -1 tmp | grep "^cgit"