diff options
author | Lukas Fleischer <cgit@cryptocrack.de> | 2014-01-15 06:25:45 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-15 22:45:21 (JST) |
commit | caf557a2ba666ad87a1ebd5b40750feaf1bd631f (patch) | |
tree | 8de9226af92266c06712bf4b480f19eb679c79a7 /tests/setup.sh | |
parent | 8ae1d8b8fd0b097b10716d0d2d8acaadbd7a46f7 (diff) | |
download | cgit-caf557a2ba666ad87a1ebd5b40750feaf1bd631f.zip cgit-caf557a2ba666ad87a1ebd5b40750feaf1bd631f.tar.gz |
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-x | tests/setup.sh | 13 |
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 | |||
125 | repo.path=$PWD/repos/with space/.git | 125 | repo.path=$PWD/repos/with space/.git |
126 | repo.desc=spaced repo | 126 | repo.desc=spaced repo |
127 | 127 | ||
128 | repo.url=filter | 128 | repo.url=filter-exec |
129 | repo.path=$PWD/repos/filter/.git | 129 | repo.path=$PWD/repos/filter/.git |
130 | repo.desc=filtered repo | 130 | repo.desc=filtered repo |
131 | repo.about-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh | 131 | repo.about-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh |
132 | repo.commit-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh | 132 | repo.commit-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh |
133 | repo.email-filter=exec:$FILTER_DIRECTORY/capitalize-argv1.sh | 133 | repo.email-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh |
134 | repo.source-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh | 134 | repo.source-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh |
135 | repo.readme=master:a+b | 135 | repo.readme=master:a+b |
136 | |||
137 | repo.url=filter-lua | ||
138 | repo.path=$PWD/repos/filter/.git | ||
139 | repo.desc=filtered repo | ||
140 | repo.about-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua | ||
141 | repo.commit-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua | ||
142 | repo.email-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua | ||
143 | repo.source-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua | ||
144 | repo.readme=master:a+b | ||
136 | EOF | 145 | EOF |
137 | } | 146 | } |
138 | 147 | ||