all repos — cgit @ 3741254a6989b2837cd8d20480f152f0096bcb9a

a hyperfast web frontend for git written in c

t0111: Additions and fixes

* Rename the capitalize-* filters to dump.* since they also dump the
  arguments.

* Add full argument validation to the email filters.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Lukas Fleischer cgit@cryptocrack.de
Wed, 15 Jan 2014 23:11:19 +0100
commit

3741254a6989b2837cd8d20480f152f0096bcb9a

parent

2a7dd4bf67edeff2c6c4f6d6d39d2d7f954d978a

4 files changed, 10 insertions(+), 10 deletions(-)

jump to
M tests/setup.shtests/setup.sh

@@ -128,19 +128,19 @@

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-stdin.sh -repo.source-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh +repo.about-filter=exec:$FILTER_DIRECTORY/dump.sh +repo.commit-filter=exec:$FILTER_DIRECTORY/dump.sh +repo.email-filter=exec:$FILTER_DIRECTORY/dump.sh +repo.source-filter=exec:$FILTER_DIRECTORY/dump.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.about-filter=lua:$FILTER_DIRECTORY/dump.lua +repo.commit-filter=lua:$FILTER_DIRECTORY/dump.lua +repo.email-filter=lua:$FILTER_DIRECTORY/dump.lua +repo.source-filter=lua:$FILTER_DIRECTORY/dump.lua repo.readme=master:a+b EOF }
M tests/t0111-filter.shtests/t0111-filter.sh

@@ -30,11 +30,11 @@ grep "<div class='"'"'commit-subject'"'"'>ADD A+B" tmp

' test_expect_success "check whether the $prefix email filter works for authors" ' - grep "A U THOR &LT;AUTHOR@EXAMPLE.COM&GT;" tmp + grep "<author@example.com> commit A U THOR &LT;AUTHOR@EXAMPLE.COM&GT;" tmp ' test_expect_success "check whether the $prefix email filter works for committers" ' - grep "C O MITTER &LT;COMMITTER@EXAMPLE.COM&GT;" tmp + grep "<committer@example.com> commit C O MITTER &LT;COMMITTER@EXAMPLE.COM&GT;" tmp ' done