2007-11-10 23:40:58 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-04-01 14:09:05 +00:00
|
|
|
test_description='Check content on summary page'
|
2007-11-10 23:40:58 +00:00
|
|
|
. ./setup.sh
|
|
|
|
|
2013-04-01 14:09:05 +00:00
|
|
|
test_expect_success 'generate foo summary' 'cgit_url "foo" >tmp'
|
|
|
|
test_expect_success 'find commit 1' 'grep "commit 1" tmp'
|
|
|
|
test_expect_success 'find commit 5' 'grep "commit 5" tmp'
|
|
|
|
test_expect_success 'find branch master' 'grep "master" tmp'
|
|
|
|
test_expect_success 'no tags' '! grep "tags" tmp'
|
|
|
|
test_expect_success 'clone-url expanded correctly' '
|
|
|
|
grep "git://example.org/foo.git" tmp
|
2011-06-06 20:49:13 +00:00
|
|
|
'
|
2007-11-10 23:40:58 +00:00
|
|
|
|
2013-04-01 14:09:05 +00:00
|
|
|
test_expect_success 'generate bar summary' 'cgit_url "bar" >tmp'
|
|
|
|
test_expect_success 'no commit 45' '! grep "commit 45" tmp'
|
|
|
|
test_expect_success 'find commit 46' 'grep "commit 46" tmp'
|
|
|
|
test_expect_success 'find commit 50' 'grep "commit 50" tmp'
|
|
|
|
test_expect_success 'find branch master' 'grep "master" tmp'
|
|
|
|
test_expect_success 'no tags' '! grep "tags" tmp'
|
|
|
|
test_expect_success 'clone-url expanded correctly' '
|
|
|
|
grep "git://example.org/bar.git" tmp
|
2011-06-06 20:49:13 +00:00
|
|
|
'
|
2007-11-10 23:40:58 +00:00
|
|
|
|
2013-04-01 14:09:05 +00:00
|
|
|
test_done
|