diff options
context:
space:
mode:
-rw-r--r--tests/.gitignore2
-rw-r--r--tests/filters/dump.lua4
-rw-r--r--tests/serve-split-check.py4
-rwxr-xr-xtests/t0001-git-version.sh (renamed from tests/t0001-validate-git-versions.sh)0
-rwxr-xr-xtests/t0002-html-validity.sh (renamed from tests/t0010-validate-html.sh)0
-rwxr-xr-xtests/t0003-cache.sh (renamed from tests/t0020-validate-cache.sh)0
-rwxr-xr-xtests/t0106-commit.sh (renamed from tests/t0105-commit.sh)0
-rwxr-xr-xtests/t0107-diff.sh (renamed from tests/t0106-diff.sh)0
-rwxr-xr-xtests/t0108-rawdiff.sh (renamed from tests/t0110-rawdiff.sh)0
-rwxr-xr-xtests/t0109-patch.sh (renamed from tests/t0108-patch.sh)0
-rwxr-xr-xtests/t0110-snapshot.sh (renamed from tests/t0107-snapshot.sh)0
-rwxr-xr-xtests/t0112-stats.sh (renamed from tests/t0202-stats.sh)0
-rwxr-xr-xtests/t0201-filters.sh (renamed from tests/t0111-filter.sh)0
-rwxr-xr-xtests/t0202-submodule-links.sh (renamed from tests/t0112-submodule-links.sh)0
-rwxr-xr-xtests/t0204-limits.sh (renamed from tests/t0201-limits.sh)0
-rwxr-xr-xtests/t0301-security.sh (renamed from tests/t0200-security.sh)0
-rwxr-xr-xtests/t0302-home-access.sh (renamed from tests/t0109-gitconfig.sh)0
-rwxr-xr-xtests/t0401-serve.sh (renamed from tests/t0300-serve.sh)0
18 files changed, 7 insertions, 3 deletions
diff --git a/tests/.gitignore b/tests/.gitignore
index 3fd2e96..f2fe0e2 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -1,2 +1,4 @@
trash\ directory.t*
test-results
+__pycache__/
+.DS_Store
diff --git a/tests/filters/dump.lua b/tests/filters/dump.lua
index ef7f3bf..aa16dfd 100644
--- a/tests/filters/dump.lua
+++ b/tests/filters/dump.lua
@@ -1,4 +1,4 @@
--- Test fixture for the cgit Lua filter API, exercised by tests/t0111-filter.sh.
+-- Test fixture for the cgit Lua filter API, exercised by t0201-filters.sh.
-- It echoes the filter_open arguments and upper-cases the body, which lets the
-- test confirm that arguments and content flow through the lua: filter path. It
-- is not a production filter. Runs on Lua 5.1 through 5.4 and LuaJIT.
@@ -18,5 +18,3 @@ end
function filter_write(str)
buffer = buffer .. string.upper(str)
end
-
-
diff --git a/tests/serve-split-check.py b/tests/serve-split-check.py
index 63c8f97..3a74803 100644
--- a/tests/serve-split-check.py
+++ b/tests/serve-split-check.py
@@ -11,6 +11,10 @@ repository root as the only argument.
import importlib.util
import sys
+# Loading serve.py would otherwise leave a __pycache__ directory behind in
+# tools/, compiled bytecode the repository has no use for.
+sys.dont_write_bytecode = True
+
def load_serve(root):
path = root + "/tools/serve.py"
diff --git a/tests/t0001-validate-git-versions.sh b/tests/t0001-git-version.sh
index 2117764..2117764 100755
--- a/tests/t0001-validate-git-versions.sh
+++ b/tests/t0001-git-version.sh
diff --git a/tests/t0010-validate-html.sh b/tests/t0002-html-validity.sh
index 842437c..842437c 100755
--- a/tests/t0010-validate-html.sh
+++ b/tests/t0002-html-validity.sh
diff --git a/tests/t0020-validate-cache.sh b/tests/t0003-cache.sh
index ca85d97..ca85d97 100755
--- a/tests/t0020-validate-cache.sh
+++ b/tests/t0003-cache.sh
diff --git a/tests/t0105-commit.sh b/tests/t0106-commit.sh
index ca41830..ca41830 100755
--- a/tests/t0105-commit.sh
+++ b/tests/t0106-commit.sh
diff --git a/tests/t0106-diff.sh b/tests/t0107-diff.sh
index 175f609..175f609 100755
--- a/tests/t0106-diff.sh
+++ b/tests/t0107-diff.sh
diff --git a/tests/t0110-rawdiff.sh b/tests/t0108-rawdiff.sh
index c546993..c546993 100755
--- a/tests/t0110-rawdiff.sh
+++ b/tests/t0108-rawdiff.sh
diff --git a/tests/t0108-patch.sh b/tests/t0109-patch.sh
index 3d38e55..3d38e55 100755
--- a/tests/t0108-patch.sh
+++ b/tests/t0109-patch.sh
diff --git a/tests/t0107-snapshot.sh b/tests/t0110-snapshot.sh
index 6f5f588..6f5f588 100755
--- a/tests/t0107-snapshot.sh
+++ b/tests/t0110-snapshot.sh
diff --git a/tests/t0202-stats.sh b/tests/t0112-stats.sh
index 2ada672..2ada672 100755
--- a/tests/t0202-stats.sh
+++ b/tests/t0112-stats.sh
diff --git a/tests/t0111-filter.sh b/tests/t0201-filters.sh
index 88533f4..88533f4 100755
--- a/tests/t0111-filter.sh
+++ b/tests/t0201-filters.sh
diff --git a/tests/t0112-submodule-links.sh b/tests/t0202-submodule-links.sh
index bbd99b4..bbd99b4 100755
--- a/tests/t0112-submodule-links.sh
+++ b/tests/t0202-submodule-links.sh
diff --git a/tests/t0201-limits.sh b/tests/t0204-limits.sh
index f09c290..f09c290 100755
--- a/tests/t0201-limits.sh
+++ b/tests/t0204-limits.sh
diff --git a/tests/t0200-security.sh b/tests/t0301-security.sh
index 8fce5f4..8fce5f4 100755
--- a/tests/t0200-security.sh
+++ b/tests/t0301-security.sh
diff --git a/tests/t0109-gitconfig.sh b/tests/t0302-home-access.sh
index 7078596..7078596 100755
--- a/tests/t0109-gitconfig.sh
+++ b/tests/t0302-home-access.sh
diff --git a/tests/t0300-serve.sh b/tests/t0401-serve.sh
index 513c33a..513c33a 100755
--- a/tests/t0300-serve.sh
+++ b/tests/t0401-serve.sh