mirror of
https://git.zx2c4.com/cgit
synced 2024-11-08 09:38:41 +00:00
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>
This commit is contained in:
parent
2a7dd4bf67
commit
3741254a69
@ -128,19 +128,19 @@ repo.desc=spaced repo
|
||||
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
|
||||
}
|
||||
|
@ -30,11 +30,11 @@ do
|
||||
'
|
||||
|
||||
test_expect_success "check whether the $prefix email filter works for authors" '
|
||||
grep "A U THOR <AUTHOR@EXAMPLE.COM>" tmp
|
||||
grep "<author@example.com> commit A U THOR <AUTHOR@EXAMPLE.COM>" tmp
|
||||
'
|
||||
|
||||
test_expect_success "check whether the $prefix email filter works for committers" '
|
||||
grep "C O MITTER <COMMITTER@EXAMPLE.COM>" tmp
|
||||
grep "<committer@example.com> commit C O MITTER <COMMITTER@EXAMPLE.COM>" tmp
|
||||
'
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user