You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
492 B
15 lines
492 B
#!/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'
|
|
run_test 'find foo description' 'grep -e "\[no description\]" trash/tmp'
|
|
run_test 'find bar repo' 'grep -e "bar" trash/tmp'
|
|
run_test 'find bar description' 'grep -e "the bar repo" trash/tmp'
|
|
run_test 'no tree-link' '! grep -e "foo/tree" trash/tmp'
|
|
run_test 'no log-link' '! grep -e "foo/log" trash/tmp'
|
|
|
|
tests_done
|
|
|