config: make empty js= omit script tag
[cgit.git] / tests / t0102-summary.sh
blobb8864cb187913cad0fea1dbd9e0c7390e3282672
1 #!/bin/sh
3 test_description='Check content on summary page'
4 . ./setup.sh
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
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
25 test_done