aboutsummaryrefslogtreecommitdiffstats
path: root/tests/setup.sh
diff options
context:
space:
mode:
authorLukas Fleischer2014-01-14 22:25:45 +0100
committerJason A. Donenfeld2014-01-15 14:45:21 +0100
commitcaf557a2ba666ad87a1ebd5b40750feaf1bd631f (patch)
tree8de9226af92266c06712bf4b480f19eb679c79a7 /tests/setup.sh
parent8ae1d8b8fd0b097b10716d0d2d8acaadbd7a46f7 (diff)
downloadcgit-caf557a2ba666ad87a1ebd5b40750feaf1bd631f.tar.gz
cgit-caf557a2ba666ad87a1ebd5b40750feaf1bd631f.tar.bz2
cgit-caf557a2ba666ad87a1ebd5b40750feaf1bd631f.zip
t0111: Add basic tests for Lua filters
* Validate the email filter by manipulating stdin. Additional checks for all the arguments can be added in a later patch. * Add the exec prefix to all informational messages. * Rename the filter repository to filter-exec. The Git repository itself is not renamed since it can be shared amongst all filter types. * In the filter checks, check whether all arguments are passed properly instead of validating the buffer/stdin only. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'tests/setup.sh')
-rwxr-xr-xtests/setup.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/setup.sh b/tests/setup.sh
index 861f48a..12c97f5 100755
--- a/tests/setup.sh
+++ b/tests/setup.sh
@@ -125,14 +125,23 @@ repo.url=with space
125repo.path=$PWD/repos/with space/.git 125repo.path=$PWD/repos/with space/.git
126repo.desc=spaced repo 126repo.desc=spaced repo
127 127
128repo.url=filter 128repo.url=filter-exec
129repo.path=$PWD/repos/filter/.git 129repo.path=$PWD/repos/filter/.git
130repo.desc=filtered repo 130repo.desc=filtered repo
131repo.about-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh 131repo.about-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh
132repo.commit-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh 132repo.commit-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh
133repo.email-filter=exec:$FILTER_DIRECTORY/capitalize-argv1.sh 133repo.email-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh
134repo.source-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh 134repo.source-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh
135repo.readme=master:a+b 135repo.readme=master:a+b
136
137repo.url=filter-lua
138repo.path=$PWD/repos/filter/.git
139repo.desc=filtered repo
140repo.about-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua
141repo.commit-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua
142repo.email-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua
143repo.source-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua
144repo.readme=master:a+b
136EOF 145EOF
137} 146}
138 147