27
Content-Disposition: inline; filename="
HTTP/1.1 200 OK
Connection: close
Content-Length: 427
Content-Security-Policy: default-src 'none'
Content-Type: text/plain; charset=UTF-8
Date: Sun, 08 Mar 2026 00:59:36 GMT
ETag: "b08cd299f37f298887b586cac10384ae793e7d9d"
Expires: Wed, 05 Mar 2036 00:59:35 GMT
Last-Modified: Sun, 08 Mar 2026 00:59:35 GMT
Server: OpenBSD httpd
X-Content-Type-Options: nosniff

#!/bin/sh

. ./setup.sh

prepare_tests "Check content on log page"

run_test 'generate foo/log' 'cgit_url "foo/log" >trash/tmp'
run_test 'find commit 1' 'grep -e "commit 1" trash/tmp'
run_test 'find commit 5' 'grep -e "commit 5" trash/tmp'

run_test 'generate bar/log' 'cgit_url "bar/log" >trash/tmp'
run_test 'find commit 1' 'grep -e "commit 1" trash/tmp'
run_test 'find commit 50' 'grep -e "commit 50" trash/tmp'

tests_done
