about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2020-01-13 21:04:46 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-01-13 15:17:19 -0500
commit5e49023b01e5dfaacfc89199159e53c0c6e41331 (patch)
tree2e8bfebb57281618629a44270caed7aaef4fbc65 /tests
parentBump version (diff)
downloadcgit-pink-5e49023b01e5dfaacfc89199159e53c0c6e41331.tar.gz
cgit-pink-5e49023b01e5dfaacfc89199159e53c0c6e41331.zip
tests: allow to skip git version tests
This allows to run tests non-tagged git checkout or when bisecting.

Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to '')
-rwxr-xr-xtests/t0001-validate-git-versions.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/t0001-validate-git-versions.sh b/tests/t0001-validate-git-versions.sh
index 3200f31..73bd32f 100755
--- a/tests/t0001-validate-git-versions.sh
+++ b/tests/t0001-validate-git-versions.sh
@@ -1,5 +1,9 @@
 #!/bin/sh
 
+if [ "${CGIT_TEST_NO_GIT_VERSION}" = "YesPlease" ]; then
+	exit 0
+fi
+
 test_description='Check Git version is correct'
 CGIT_TEST_NO_CREATE_REPOS=YesPlease
 . ./setup.sh
/span>Replace htagml regex with strncmpJune McEnroe Since ctags only ever produces regular expressions of the form /^re$/ or /^re/ with no other special characters, instead unescape the pattern and simply use strncmp. Running on a sqlite3.c amalgamation, the regex version takes ~37s while the strncmp version takes ~1s, producing identical output. Big win! 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe This fixes badly indented comments. 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe