Diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0101-index.sh | 12 |
1 file changed, 12 insertions, 0 deletions
diff --git a/tests/t0101-index.sh b/tests/t0101-index.sh index 4a8bdb3..ca0c88d 100755 --- a/tests/t0101-index.sh +++ b/tests/t0101-index.sh @@ -190,4 +190,16 @@ test_expect_success 'a repository without repo.desc reads its description file' grep "<meta name=.description. content=.told by the file.>" tmp ' +# The search and the sort look at descriptions too, so the file has to be +# read before either of them. +test_expect_success 'the search and the sort see a description file' ' + cgit_ok describedrc "q=told" >tmp && + test_grep "href=./described/.>told by the file</a>" tmp && + test_grep ! ">overridden</a>" tmp && + cgit_ok describedrc "s=desc" >tmp && + sed -n "s/.*class=.col-name toplevel-repo.><a href=.\/[a-z]*\/.>\([a-z]*\)<\/a>.*/\1/p" tmp >order && + printf "%s\n" placeholder overridden described >expect && + test_cmp expect order +' + test_done |
