about summary refs log tree commit diff stats
path: root/tests/setup.sh
diff options
context:
space:
mode:
authorJune McEnroe2021-01-20 13:33:37 -0500
committerJune McEnroe2022-02-13 18:24:04 -0500
commitd993e4be6731b1a806e2c7588334a3f485a5fd31 (patch)
tree3d6276d4a791560a48d9481c31b9e7eba9fcc2a6 /tests/setup.sh
parentMerge remote-tracking branch 'ch/git-2-35' (diff)
downloadcgit-d993e4be6731b1a806e2c7588334a3f485a5fd31.tar.gz
cgit-d993e4be6731b1a806e2c7588334a3f485a5fd31.zip
Remove Lua support
Lua support is unused and the dlsym fwrite/write hacks horrify me.
Clean it up.
Diffstat (limited to 'tests/setup.sh')
-rwxr-xr-xtests/setup.sh19
1 files changed, 0 insertions, 19 deletions
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
60 60
61FILTER_DIRECTORY=$(cd ../filters && pwd) 61FILTER_DIRECTORY=$(cd ../filters && pwd)
62 62
63if cgit --version | grep -F -q "[+] Lua scripting"; then
64 export CGIT_HAS_LUA=1
65else
66 export CGIT_HAS_LUA=0
67fi
68
69mkrepo() { 63mkrepo() {
70 name=$1 64 name=$1
71 count=$2 65 count=$2
@@ -144,19 +138,6 @@ repo.email-filter=exec:$FILTER_DIRECTORY/dump.sh
144repo.source-filter=exec:$FILTER_DIRECTORY/dump.sh 138repo.source-filter=exec:$FILTER_DIRECTORY/dump.sh
145repo.readme=master:a+b 139repo.readme=master:a+b
146EOF 140EOF
147
148 if [ $CGIT_HAS_LUA -eq 1 ]; then
149 cat >>cgitrc <<EOF
150repo.url=filter-lua
151repo.path=$PWD/repos/filter/.git
152repo.desc=filtered repo
153repo.about-filter=lua:$FILTER_DIRECTORY/dump.lua
154repo.commit-filter=lua:$FILTER_DIRECTORY/dump.lua
155repo.email-filter=lua:$FILTER_DIRECTORY/dump.lua
156repo.source-filter=lua:$FILTER_DIRECTORY/dump.lua
157repo.readme=master:a+b
158EOF
159 fi
160} 141}
161 142
162cgit_query() 143cgit_query()