summaryrefslogtreecommitdiff
path: root/tests/t0108-patch.sh
blob: e608104733c299340c472eac9ed6e0408b966cd5 (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
38
39
#!/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"
'

tests_done
=b0429d05f562448e9f4366bf4602e05789634302&follow=1'>dunst: Revert to Monospace 8René 'Necoro' Neumann1-1/+1 2013-06-18Remove subtle configRené 'Necoro' Neumann1-876/+0 2013-06-18dunst: Use DroidSansMonoRené 'Necoro' Neumann1-1/+1 2013-06-18i3: workspaces.py -- small cosmetic changesRené 'Necoro' Neumann1-3/+3 2013-06-18i3: Use i3-msg 'exec …' for processes, not sh.CommandRené 'Necoro' Neumann2-3/+8 2013-06-17i3: workspaces.py -- python errorRené 'Necoro' Neumann1-0/+1 2013-06-17i3: workspaces.py -- python errorRené 'Necoro' Neumann1-1/+1 2013-06-17i3 changesRené 'Necoro' Neumann2-2/+2 2013-06-14i3: New 'open new workspace with a terminal on'René 'Necoro' Neumann2-15/+31 2013-06-14Vimperator: Do not open popups in a new window -- sucks with tiling WMsRené 'Necoro' Neumann1-1/+1 2013-06-08Cleanup X startup filesRené 'Necoro' Neumann3-19/+42 2013-06-07i3: better renameRené 'Necoro' Neumann2-3/+17 2013-06-07i3: Some keybinding changes.René 'Necoro' Neumann1-5/+6 2013-06-07i3: Overhaul workspaces.pyRené 'Necoro' Neumann1-27/+19 2013-06-06i3: use $mod+t for tabbed instead of $mod+wRené 'Necoro' Neumann1-1/+1 2013-06-06i3: unify scripts into oneRené 'Necoro' Neumann6-49/+1771 2013-06-06i3: new temporary workspaceRené Neumann2-1/+27 2013-06-06Allow 'klass' in i3.py descriptionsRené Neumann1-0/+4 2013-06-04i3: rename workspaceRené Neumann1-0/+3 2013-06-03Some more greek chars / math product and sumRené 'Necoro' Neumann1-0/+6 2013-06-02Fix rules in i3-config. Somehow 'set' expands variables twice :-/René Neumann1-14/+11 2013-06-01Overhaul xlock.shRené 'Necoro' Neumann1-4/+8 2013-06-01Better workspace chooserRené 'Necoro' Neumann3-2/+581 2013-06-01FF/TB/Pidgin stuffRené 'Necoro' Neumann1-26/+45 2013-06-01More i3René 'Necoro' Neumann1-2/+11 2013-06-01FixesRené 'Necoro' Neumann2-2/+2