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 index 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 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' |
Lars Hjemli | b4649fc | 2007-11-11 00:40:58 +0100 | [diff] [blame] | 16 | |
John Keeping | c95cc5e | 2013-04-01 15:09:05 +0100 | [diff] [blame] | 17 | test_done |