diff options
author | Lars Hjemli <hjemli@gmail.com> | 2011-05-22 19:22:56 (JST) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2011-05-24 05:58:35 (JST) |
commit | 084ca50972b4be120eba8d22ce585766ae315c36 (patch) | |
tree | 2121925ba34a7f5821567c56a16ae6d8c92b46f7 /tests/t0101-index.sh | |
parent | afe04daa3380ae144c2c9b486674c98e5dd082a3 (diff) | |
download | cgit-084ca50972b4be120eba8d22ce585766ae315c36.zip cgit-084ca50972b4be120eba8d22ce585766ae315c36.tar.gz |
tests: add tests for links with space in path and/or args
These tests tries to detect bad links in various pages. On the log page,
there currently exists links which are not properly escaped due to the
use of cgit_fileurl() when building the link. For now, this bug is simply
tagged as such.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'tests/t0101-index.sh')
-rwxr-xr-x | tests/t0101-index.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/t0101-index.sh b/tests/t0101-index.sh index 07e39f9..573a351 100755 --- a/tests/t0101-index.sh +++ b/tests/t0101-index.sh | |||
@@ -11,6 +11,7 @@ run_test 'find bar repo' 'grep -e "bar" trash/tmp' | |||
11 | run_test 'find bar description' 'grep -e "the bar repo" trash/tmp' | 11 | run_test 'find bar description' 'grep -e "the bar repo" trash/tmp' |
12 | run_test 'find foo+bar repo' 'grep -e ">foo+bar<" trash/tmp' | 12 | run_test 'find foo+bar repo' 'grep -e ">foo+bar<" trash/tmp' |
13 | run_test 'verify foo+bar link' 'grep -e "/foo+bar/" trash/tmp' | 13 | run_test 'verify foo+bar link' 'grep -e "/foo+bar/" trash/tmp' |
14 | run_test 'verify "with%20space" link' 'grep -e "/with%20space/" trash/tmp' | ||
14 | run_test 'no tree-link' '! grep -e "foo/tree" trash/tmp' | 15 | run_test 'no tree-link' '! grep -e "foo/tree" trash/tmp' |
15 | run_test 'no log-link' '! grep -e "foo/log" trash/tmp' | 16 | run_test 'no log-link' '! grep -e "foo/log" trash/tmp' |
16 | 17 | ||