Lars Hjemli | b4649fc | 2007-11-11 00:40:58 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
John Keeping | c95cc5e | 2013-04-01 15:09:05 +0100 | [diff] [blame] | 3 | test_description='Check content on summary page' |
Lars Hjemli | b4649fc | 2007-11-11 00:40:58 +0100 | [diff] [blame] | 4 | . ./setup.sh |
| 5 | |
John Keeping | c95cc5e | 2013-04-01 15:09:05 +0100 | [diff] [blame] | 6 | test_expect_success 'generate foo summary' 'cgit_url "foo" >tmp' |
| 7 | test_expect_success 'find commit 1' 'grep "commit 1" tmp' |
| 8 | test_expect_success 'find commit 5' 'grep "commit 5" tmp' |
| 9 | test_expect_success 'find branch master' 'grep "master" tmp' |
| 10 | test_expect_success 'no tags' '! grep "tags" tmp' |
| 11 | test_expect_success 'clone-url expanded correctly' ' |
| 12 | grep "git://example.org/foo.git" tmp |
Lars Hjemli | a1429db | 2011-06-06 20:49:13 +0000 | [diff] [blame] | 13 | ' |
Lars Hjemli | b4649fc | 2007-11-11 00:40:58 +0100 | [diff] [blame] | 14 | |
John Keeping | c95cc5e | 2013-04-01 15:09:05 +0100 | [diff] [blame] | 15 | test_expect_success 'generate bar summary' 'cgit_url "bar" >tmp' |
| 16 | test_expect_success 'no commit 45' '! grep "commit 45" tmp' |
| 17 | test_expect_success 'find commit 46' 'grep "commit 46" tmp' |
| 18 | test_expect_success 'find commit 50' 'grep "commit 50" tmp' |
| 19 | test_expect_success 'find branch master' 'grep "master" tmp' |
| 20 | test_expect_success 'no tags' '! grep "tags" tmp' |
| 21 | test_expect_success 'clone-url expanded correctly' ' |
| 22 | grep "git://example.org/bar.git" tmp |
Lars Hjemli | a1429db | 2011-06-06 20:49:13 +0000 | [diff] [blame] | 23 | ' |
Lars Hjemli | b4649fc | 2007-11-11 00:40:58 +0100 | [diff] [blame] | 24 | |
John Keeping | c95cc5e | 2013-04-01 15:09:05 +0100 | [diff] [blame] | 25 | test_done |