blob: b8864cb187913cad0fea1dbd9e0c7390e3282672 [file] [log] [blame]
Lars Hjemlib4649fc2007-11-11 00:40:58 +01001#!/bin/sh
2
John Keepingc95cc5e2013-04-01 15:09:05 +01003test_description='Check content on summary page'
Lars Hjemlib4649fc2007-11-11 00:40:58 +01004. ./setup.sh
5
John Keepingc95cc5e2013-04-01 15:09:05 +01006test_expect_success 'generate foo summary' 'cgit_url "foo" >tmp'
7test_expect_success 'find commit 1' 'grep "commit 1" tmp'
8test_expect_success 'find commit 5' 'grep "commit 5" tmp'
9test_expect_success 'find branch master' 'grep "master" tmp'
10test_expect_success 'no tags' '! grep "tags" tmp'
11test_expect_success 'clone-url expanded correctly' '
12 grep "git://example.org/foo.git" tmp
Lars Hjemlia1429db2011-06-06 20:49:13 +000013'
Lars Hjemlib4649fc2007-11-11 00:40:58 +010014
John Keepingc95cc5e2013-04-01 15:09:05 +010015test_expect_success 'generate bar summary' 'cgit_url "bar" >tmp'
16test_expect_success 'no commit 45' '! grep "commit 45" tmp'
17test_expect_success 'find commit 46' 'grep "commit 46" tmp'
18test_expect_success 'find commit 50' 'grep "commit 50" tmp'
19test_expect_success 'find branch master' 'grep "master" tmp'
20test_expect_success 'no tags' '! grep "tags" tmp'
21test_expect_success 'clone-url expanded correctly' '
22 grep "git://example.org/bar.git" tmp
Lars Hjemlia1429db2011-06-06 20:49:13 +000023'
Lars Hjemlib4649fc2007-11-11 00:40:58 +010024
John Keepingc95cc5e2013-04-01 15:09:05 +010025test_done