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-10-05 12:52:25 +02: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'
|
2011-05-22 12:22:56 +02:00
|
|
|
run_test 'verify "with%20space" link' 'grep -e "/with%20space/" 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
|