27
Content-Disposition: inline; filename="
e
t0101-index.sh
HTTP/1.1 200 OK
Connection: close
Content-Length: 715
Content-Security-Policy: default-src 'none'
Content-Type: text/plain; charset=UTF-8
Date: Wed, 11 Feb 2026 23:46:30 GMT
ETag: "82ef9b04e55eaed26a6e64cdf119864228ea547e"
Expires: Sat, 09 Feb 2036 23:46:29 GMT
Last-Modified: Wed, 11 Feb 2026 23:46:29 GMT
Server: OpenBSD httpd
X-Content-Type-Options: nosniff

#!/bin/sh

test_description='Check content on index page'
. ./setup.sh

test_expect_success 'generate index page' 'cgit_url "" >tmp'
test_expect_success 'find foo repo' 'grep "foo" tmp'
test_expect_success 'find foo description' 'grep "\[no description\]" tmp'
test_expect_success 'find bar repo' 'grep "bar" tmp'
test_expect_success 'find bar description' 'grep "the bar repo" tmp'
test_expect_success 'find foo+bar repo' 'grep ">foo+bar<" tmp'
test_expect_success 'verify foo+bar link' 'grep "/foo+bar/" tmp'
test_expect_success 'verify "with%20space" link' 'grep "/with%20space/" tmp'
test_expect_success 'no tree-link' '! grep "foo/tree" tmp'
test_expect_success 'no log-link' '! grep "foo/log" tmp'

test_done
