]> gitweb.ps.run Git - ps-cgit/blobdiff - tests/t0101-index.sh
Add regression-test for description-less repos
[ps-cgit] / tests / t0101-index.sh
index 12ed00c4e4574cf36a63996a08c3169284562e29..59edc5936fe3ceea17c038440c21808ea9d1e656 100755 (executable)
@@ -6,7 +6,9 @@ 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 -ve "foo/tree" trash/tmp'
 run_test 'no log-link' 'grep -ve "foo/log" trash/tmp'