mirror of
https://git.zx2c4.com/cgit
synced 2025-08-04 18:14:48 +02:00
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>
This commit is contained in:
parent
8ae1d8b8fd
commit
caf557a2ba
5 changed files with 56 additions and 29 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue