summaryrefslogtreecommitdiff
path: root/tests/t0105-commit.sh
blob: aa2bf33326203c1ad779fa23ba8e0ec2cd09e60c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

. ./setup.sh

prepare_tests "Check content on commit page"

run_test 'generate foo/commit' 'cgit_url "foo/commit" >trash/tmp'
run_test 'find tree link' 'grep -e "<a href=./foo/tree/.>" trash/tmp'
run_test 'find parent link' 'grep -E "<a href=./foo/commit/\?id=.+>" trash/tmp'

run_test 'find commit subject' '
	grep -e "<div class=.commit-subject.>commit 5</div>" trash/tmp
'

run_test 'find commit msg' 'grep -e "<div class=.commit-msg.></div>" trash/tmp'
run_test 'find diffstat' 'grep -e "<table summary=.diffstat. class=.diffstat.>" trash/tmp'

run_test 'find diff summary' '
	 grep -e "1 files changed, 1 insertions, 0 deletions" trash/tmp
'

tests_done
mmit/templates/layout.jinja?id=9c17adec33e26933f99812bf9675abaec8afe801&follow=1'>Increase copyrightRené 'Necoro' Neumann1-1/+1 2017-02-12Incorporate API changesRené 'Necoro' Neumann3-6/+6 2017-02-12Migrate flask.ext.foo to flask_fooRené 'Necoro' Neumann3-4/+4 2017-02-12Enable debugging for manage.shRené 'Necoro' Neumann1-1/+1 2017-02-12No need for flask-script anymore; flask provides this out of the boxRené 'Necoro' Neumann3-28/+17 2017-02-12No need for flask-sqlalchemy to track modifications and send eventsRené 'Necoro' Neumann1-0/+1 2017-02-12FixRené 'Necoro' Neumann1-1/+1 2016-07-08Constant -> KonstantRené 'Necoro' Neumann1-1/+1 2016-07-052to3 fixed too muchRené 'Necoro' Neumann1-1/+1 2016-07-052to3 conversionRené 'Necoro' Neumann12-42/+42 2016-07-05First batch of py3 changesRené 'Necoro' Neumann7-8/+7 2016-05-01Removed base 'Expense' class; introduce CategoryModel insteadRené 'Necoro' Neumann1-6/+7 2016-05-01Ignore .pyoRené 'Necoro' Neumann1-0/+1