summaryrefslogtreecommitdiff
path: root/tests/t0108-patch.sh
blob: 33351d6df592421be4fdf13d2f44f2c27257fa7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh

. ./setup.sh

prepare_tests "Check content on patch page"

run_test 'generate foo/patch' '
	cgit_query "url=foo/patch" >trash/tmp
'

run_test 'find `From:` line' '
	grep -e "^From: " trash/tmp
'

run_test 'find `Date:` line' '
	grep -e "^Date: " trash/tmp
'

run_test 'find `Subject:` line' '
	grep -e "^Subject: commit 5" trash/tmp
'

run_test 'find `cgit` signature' '
	 tail -1 trash/tmp | grep -e "^cgit"
'

run_test 'find initial commit' '
	root=$(git --git-dir=$PWD/trash/repos/foo/.git rev-list HEAD | tail -1)
'

run_test 'generate patch for initial commit' '
	cgit_query "url=foo/patch&id=$root" >trash/tmp
'

run_test 'find `cgit` signature' '
	tail -1 trash/tmp | grep -e "^cgit"
'
e8335a443751512dfbb03508&follow=1'>Add structural commentsRené 'Necoro' Neumann2-8/+15 2010-04-07Fixed internal linksRené 'Necoro' Neumann3-7/+7 2010-04-07Better screenshot page designRené 'Necoro' Neumann2-7/+10 2010-04-07More screenshotsRené 'Necoro' Neumann10-1/+6 2010-04-07Changes fixedRené 'Necoro' Neumann1-1/+1 2010-04-07ChangesRené 'Necoro' Neumann2-5/+3 2010-04-07ScreenshotsRené 'Necoro' Neumann5-1/+66 2010-04-07Added highslideRené 'Necoro' Neumann28-0/+412 2010-04-07Noscript handling for TOCRené 'Necoro' Neumann1-1/+9 2010-04-07Created tmp directoryRené 'Necoro' Neumann2-0/+1 2010-04-07DownloadRené 'Necoro' Neumann1-1/+1 2010-04-07Development pageRené 'Necoro' Neumann2-2/+51 2010-04-07Menu reorderingRené 'Necoro' Neumann1-2/+2 2010-04-07Screenshot pageRené 'Necoro' Neumann2-0/+7 2010-04-07ForumsRené 'Necoro' Neumann1-0/+6 2010-04-07Some more tocRené 'Necoro' Neumann2-3/+9 2010-04-07Use 'Found' instead of 'Redirect'René 'Necoro' Neumann1-1/+1 2010-04-07Sanitized JSRené 'Necoro' Neumann2-15/+14 2010-04-07Fixed CSS; added stuff for TOCRené 'Necoro' Neumann1-8/+19 2010-04-07Renamed 'menu' to the correct 'toc'René 'Necoro' Neumann2-8/+8 2010-04-07Default argument for 404René 'Necoro' Neumann1-1/+1 2010-04-07Javascript to generate TOCsRené 'Necoro' Neumann4-1/+63