]> git.cameronkatri.com Git - cgit.git/blob - tests/t0101-index.sh
ui-ssdiff: ban strcat()
[cgit.git] / tests / t0101-index.sh
1 #!/bin/sh
2
3 test_description='Check content on index page'
4 . ./setup.sh
5
6 test_expect_success 'generate index page' 'cgit_url "" >tmp'
7 test_expect_success 'find foo repo' 'grep "foo" tmp'
8 test_expect_success 'find foo description' 'grep "\[no description\]" tmp'
9 test_expect_success 'find bar repo' 'grep "bar" tmp'
10 test_expect_success 'find bar description' 'grep "the bar repo" tmp'
11 test_expect_success 'find foo+bar repo' 'grep ">foo+bar<" tmp'
12 test_expect_success 'verify foo+bar link' 'grep "/foo+bar/" tmp'
13 test_expect_success 'verify "with%20space" link' 'grep "/with%20space/" tmp'
14 test_expect_success 'no tree-link' '! grep "foo/tree" tmp'
15 test_expect_success 'no log-link' '! grep "foo/log" tmp'
16
17 test_done