X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/e0572c39f78b4f88c706a49a60e211302b8e015c..b0d72da02850abaf4be65ff220774a457c214651:/tests/t0101-index.sh diff --git a/tests/t0101-index.sh b/tests/t0101-index.sh index 12ed00c..573a351 100755 --- a/tests/t0101-index.sh +++ b/tests/t0101-index.sh @@ -6,8 +6,13 @@ 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 'no tree-link' 'grep -ve "foo/tree" trash/tmp' -run_test 'no log-link' 'grep -ve "foo/log" trash/tmp' +run_test 'find bar description' 'grep -e "the bar repo" trash/tmp' +run_test 'find foo+bar repo' 'grep -e ">foo+bar<" trash/tmp' +run_test 'verify foo+bar link' 'grep -e "/foo+bar/" trash/tmp' +run_test 'verify "with%20space" link' 'grep -e "/with%20space/" 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