2007-11-11 00:40:58 +01: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 15:27:33 +01:00
|
|
|
run_test 'find foo description' 'grep -e "\[no description\]" trash/tmp'
|
2007-11-11 00:40:58 +01:00
|
|
|
run_test 'find bar repo' 'grep -e "bar" trash/tmp'
|
2008-02-24 15:27:33 +01:00
|
|
|
run_test 'find bar description' 'grep -e "the bar repo" trash/tmp'
|
2008-02-24 15:35:52 +01: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-11 00:40:58 +01:00
|
|
|
|
|
|
|
tests_done
|