]> gitweb.ps.run Git - ps-cgit/commit
t0111: Add basic tests for Lua filters
authorLukas Fleischer <cgit@cryptocrack.de>
Tue, 14 Jan 2014 21:25:45 +0000 (22:25 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 15 Jan 2014 13:45:21 +0000 (14:45 +0100)
commitcaf557a2ba666ad87a1ebd5b40750feaf1bd631f
tree8de9226af92266c06712bf4b480f19eb679c79a7
parent8ae1d8b8fd0b097b10716d0d2d8acaadbd7a46f7
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>
tests/filters/capitalize-argv1.sh [deleted file]
tests/filters/capitalize-buffer.lua [new file with mode: 0644]
tests/filters/capitalize-stdin.sh
tests/setup.sh
tests/t0111-filter.sh