]>
git.cameronkatri.com Git - cgit.git/blob - tests/t0108-patch.sh
5 prepare_tests
"Check content on patch page"
7 run_test
'generate foo/patch' '
8 cgit_query "url=foo/patch" >trash/tmp
11 run_test
'find `From:` line' '
12 grep -e "^From: " trash/tmp
15 run_test
'find `Date:` line' '
16 grep -e "^Date: " trash/tmp
19 run_test
'find `Subject:` line' '
20 grep -e "^Subject: commit 5" trash/tmp
23 run_test
'find `cgit` signature' '
24 tail -1 trash/tmp | grep -e "^cgit"
27 run_test
'find initial commit' '
28 root=$(git --git-dir=$PWD/trash/repos/foo/.git rev-list HEAD | tail -1)
31 run_test
'generate patch for initial commit' '
32 cgit_query "url=foo/patch&id=$root" >trash/tmp
35 run_test
'find `cgit` signature' '
36 tail -1 trash/tmp | grep -e "^cgit"