diff options
Diffstat (limited to 'cgit/tests/t0114-root-homepage.sh')
| -rw-r--r-- | cgit/tests/t0114-root-homepage.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cgit/tests/t0114-root-homepage.sh b/cgit/tests/t0114-root-homepage.sh new file mode 100644 index 0000000000..f5a4d28797 --- /dev/null +++ b/cgit/tests/t0114-root-homepage.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +test_description='Check root external links' +. ./setup.sh + +test_expect_success 'index has configured root links' ' + cgit_url "" >tmp && + grep "https://projecttick.org" tmp && + grep ">Project Tick<" tmp && + grep "https://github.com/example" tmp && + grep ">GitHub<" tmp && + grep "https://gitlab.com/example" tmp && + grep ">GitLab<" tmp && + grep "https://codeberg.org/example" tmp && + grep ">Codeberg<" tmp +' + +test_expect_success 'root pages keep root links' ' + cgit_query "p=coc" >tmp && + grep "https://projecttick.org" tmp && + grep ">Project Tick<" tmp && + grep "https://github.com/example" tmp && + grep ">GitHub<" tmp && + grep "https://gitlab.com/example" tmp && + grep ">GitLab<" tmp && + grep "https://codeberg.org/example" tmp && + grep ">Codeberg<" tmp +' + +test_done |
