From 7455ae29aaa835041f236435e0594f55beae594b Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 23 Aug 2026 20:18:29 -1000 Subject: Renumber the test scripts into themed ranges The numbering walks outward from the ground the suite stands on. - t000x for the git version, html validity and the cache - t01xx for page content, one script per page - t02xx for filters, submodule links, dates and limits, which cut across pages - t03xx for defence, the security regressions and the $HOME promise - t04xx for the helper tools under tools/ --- tests/t0105-commit.sh | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100755 tests/t0105-commit.sh (limited to 'tests/t0105-commit.sh') diff --git a/tests/t0105-commit.sh b/tests/t0105-commit.sh deleted file mode 100755 index ca41830..0000000 --- a/tests/t0105-commit.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -# The commit page shows a single commit, its message, the files it touched and -# the diff for them. Most of these checks read the markup cgit emits for the -# tree link, the parent link, the subject and the diffstat. The last few ask -# for the root commit of a repository, which has no parent and so goes through -# the code that compares a commit against an empty tree. - -test_description='Check content on commit page' -. ./setup.sh - -test_expect_success 'generate foo/commit' 'cgit_url "foo/commit" >tmp' -test_expect_success 'find tree link' 'grep "" tmp' -test_expect_success 'find parent link' 'grep -E "" tmp' - -test_expect_success 'find commit subject' ' - grep "
commit 5<" tmp -' - -test_expect_success 'find commit msg' 'grep "
" tmp' -test_expect_success 'find diffstat' 'grep "" tmp' - -test_expect_success 'find diff summary' ' - grep "1 file changed, 1 insertion, 0 deletions" tmp -' - -test_expect_success 'get root commit' ' - root=$(cd repos/foo && git rev-list --reverse HEAD | head -1) && - cgit_url "foo/commit&id=$root" >tmp && - grep "" tmp -' - -test_expect_success 'root commit contains diffstat' ' - grep "file-1" tmp -' - -test_expect_success 'root commit contains diff' ' - grep ">diff --git a/file-1 b/file-1<" tmp && - grep "
+1
" tmp -' - -test_done -- cgit 2.12.1