blob: f5a4d287971454dd886cac84162b835a146674b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|