2007-11-10 23:40:58 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. ./setup.sh
|
|
|
|
|
|
|
|
prepare_tests "Check content on index page"
|
|
|
|
|
|
|
|
run_test 'generate index page' 'cgit_url "" >trash/tmp'
|
|
|
|
run_test 'find foo repo' 'grep -e "foo" trash/tmp'
|
2008-02-24 14:27:33 +00:00
|
|
|
run_test 'find foo description' 'grep -e "\[no description\]" trash/tmp'
|
2007-11-10 23:40:58 +00:00
|
|
|
run_test 'find bar repo' 'grep -e "bar" trash/tmp'
|
2008-02-24 14:27:33 +00:00
|
|
|
run_test 'find bar description' 'grep -e "the bar repo" trash/tmp'
|
2008-10-05 10:52:25 +00:00
|
|
|
run_test 'find foo+bar repo' 'grep -e ">foo+bar<" trash/tmp'
|
|
|
|
run_test 'verify foo+bar link' 'grep -e "/foo+bar/" trash/tmp'
|
2008-02-24 14:35:52 +00:00
|
|
|
run_test 'no tree-link' '! grep -e "foo/tree" trash/tmp'
|
|
|
|
run_test 'no log-link' '! grep -e "foo/log" trash/tmp'
|
2007-11-10 23:40:58 +00:00
|
|
|
|
|
|
|
tests_done
|