aboutsummaryrefslogtreecommitdiffstats
path: root/tests/setup.sh
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2014-01-14 22:25:45 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2014-01-15 14:45:21 +0100
commitcaf557a2ba666ad87a1ebd5b40750feaf1bd631f (patch)
tree8de9226af92266c06712bf4b480f19eb679c79a7 /tests/setup.sh
parent8ae1d8b8fd0b097b10716d0d2d8acaadbd7a46f7 (diff)
downloadcgit-caf557a2ba666ad87a1ebd5b40750feaf1bd631f.tar.gz
cgit-caf557a2ba666ad87a1ebd5b40750feaf1bd631f.tar.xz
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
repo.path=$PWD/repos/with space/.git
repo.desc=spaced repo
-repo.url=filter
+repo.url=filter-exec
repo.path=$PWD/repos/filter/.git
repo.desc=filtered repo
repo.about-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh
repo.commit-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh
-repo.email-filter=exec:$FILTER_DIRECTORY/capitalize-argv1.sh
+repo.email-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh
repo.source-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh
repo.readme=master:a+b
+
+repo.url=filter-lua
+repo.path=$PWD/repos/filter/.git
+repo.desc=filtered repo
+repo.about-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua
+repo.commit-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua
+repo.email-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua
+repo.source-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua
+repo.readme=master:a+b
EOF
}