about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-20 13:33:37 -0500
committerRory& <root@rory.gay>2025-03-12 06:41:35 +0100
commit13aa382c3bb518d2b3e96f28f7f28cad4bd843fd (patch)
treeef82a83a38aa92646b352a6ad2f3846e9c2751bd /tests
parentSilence owner-info error (diff)
downloadcgit-magenta-13aa382c3bb518d2b3e96f28f7f28cad4bd843fd.tar.xz
Remove Lua support
Lua support is unused and the dlsym fwrite/write hacks horrify me.
Clean it up.
Diffstat (limited to 'tests')
-rw-r--r--tests/filters/dump.lua17
-rwxr-xr-xtests/setup.sh19
-rwxr-xr-xtests/t0111-filter.sh3
3 files changed, 0 insertions, 39 deletions
diff --git a/tests/filters/dump.lua b/tests/filters/dump.lua
deleted file mode 100644

index 1f15c93..0000000 --- a/tests/filters/dump.lua +++ /dev/null
@@ -1,17 +0,0 @@ -function filter_open(...) - buffer = "" - for i = 1, select("#", ...) do - buffer = buffer .. select(i, ...) .. " " - end -end - -function filter_close() - html(buffer) - return 0 -end - -function filter_write(str) - buffer = buffer .. string.upper(str) -end - - diff --git a/tests/setup.sh b/tests/setup.sh
index 8db810f..31e7d5b 100755 --- a/tests/setup.sh +++ b/tests/setup.sh
@@ -60,12 +60,6 @@ fi FILTER_DIRECTORY=$(cd ../filters && pwd) -if cgit --version | grep -F -q "[+] Lua scripting"; then - export CGIT_HAS_LUA=1 -else - export CGIT_HAS_LUA=0 -fi - mkrepo() { name=$1 count=$2 @@ -144,19 +138,6 @@ repo.email-filter=exec:$FILTER_DIRECTORY/dump.sh repo.source-filter=exec:$FILTER_DIRECTORY/dump.sh repo.readme=master:a+b EOF - - if [ $CGIT_HAS_LUA -eq 1 ]; then - cat >>cgitrc <<EOF -repo.url=filter-lua -repo.path=$PWD/repos/filter/.git -repo.desc=filtered repo -repo.about-filter=lua:$FILTER_DIRECTORY/dump.lua -repo.commit-filter=lua:$FILTER_DIRECTORY/dump.lua -repo.email-filter=lua:$FILTER_DIRECTORY/dump.lua -repo.source-filter=lua:$FILTER_DIRECTORY/dump.lua -repo.readme=master:a+b -EOF - fi } cgit_query() diff --git a/tests/t0111-filter.sh b/tests/t0111-filter.sh
index 2fdc366..e5d3575 100755 --- a/tests/t0111-filter.sh +++ b/tests/t0111-filter.sh
@@ -4,9 +4,6 @@ test_description='Check filtered content' . ./setup.sh prefixes="exec" -if [ $CGIT_HAS_LUA -eq 1 ]; then - prefixes="$prefixes lua" -fi for prefix in $prefixes do