diff options
author | Lukas Fleischer | 2014-01-15 23:11:19 +0100 |
---|---|---|
committer | Jason A. Donenfeld | 2014-01-16 00:53:18 +0100 |
commit | 3741254a6989b2837cd8d20480f152f0096bcb9a (patch) | |
tree | 5997134d4aaff3ccade061c8cce6de85cbf3ed88 | |
parent | 2a7dd4bf67edeff2c6c4f6d6d39d2d7f954d978a (diff) | |
download | cgit-3741254a6989b2837cd8d20480f152f0096bcb9a.tar.gz cgit-3741254a6989b2837cd8d20480f152f0096bcb9a.tar.bz2 cgit-3741254a6989b2837cd8d20480f152f0096bcb9a.zip |
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>
-rw-r--r-- | tests/filters/dump.lua (renamed from tests/filters/capitalize-buffer.lua) | 0 | ||||
-rwxr-xr-x | tests/filters/dump.sh (renamed from tests/filters/capitalize-stdin.sh) | 0 | ||||
-rwxr-xr-x | tests/setup.sh | 16 | ||||
-rwxr-xr-x | tests/t0111-filter.sh | 4 |
4 files changed, 10 insertions, 10 deletions
diff --git a/tests/filters/capitalize-buffer.lua b/tests/filters/dump.lua index 1f15c93..1f15c93 100644 --- a/tests/filters/capitalize-buffer.lua +++ b/tests/filters/dump.lua | |||
diff --git a/tests/filters/capitalize-stdin.sh b/tests/filters/dump.sh index da6f7a1..da6f7a1 100755 --- a/tests/filters/capitalize-stdin.sh +++ b/tests/filters/dump.sh | |||
diff --git a/tests/setup.sh b/tests/setup.sh index 12c97f5..785edd7 100755 --- a/tests/setup.sh +++ b/tests/setup.sh | |||
@@ -128,19 +128,19 @@ repo.desc=spaced repo | |||
128 | repo.url=filter-exec | 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/dump.sh |
132 | repo.commit-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh | 132 | repo.commit-filter=exec:$FILTER_DIRECTORY/dump.sh |
133 | repo.email-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh | 133 | repo.email-filter=exec:$FILTER_DIRECTORY/dump.sh |
134 | repo.source-filter=exec:$FILTER_DIRECTORY/capitalize-stdin.sh | 134 | repo.source-filter=exec:$FILTER_DIRECTORY/dump.sh |
135 | repo.readme=master:a+b | 135 | repo.readme=master:a+b |
136 | 136 | ||
137 | repo.url=filter-lua | 137 | repo.url=filter-lua |
138 | repo.path=$PWD/repos/filter/.git | 138 | repo.path=$PWD/repos/filter/.git |
139 | repo.desc=filtered repo | 139 | repo.desc=filtered repo |
140 | repo.about-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua | 140 | repo.about-filter=lua:$FILTER_DIRECTORY/dump.lua |
141 | repo.commit-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua | 141 | repo.commit-filter=lua:$FILTER_DIRECTORY/dump.lua |
142 | repo.email-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua | 142 | repo.email-filter=lua:$FILTER_DIRECTORY/dump.lua |
143 | repo.source-filter=lua:$FILTER_DIRECTORY/capitalize-buffer.lua | 143 | repo.source-filter=lua:$FILTER_DIRECTORY/dump.lua |
144 | repo.readme=master:a+b | 144 | repo.readme=master:a+b |
145 | EOF | 145 | EOF |
146 | } | 146 | } |
diff --git a/tests/t0111-filter.sh b/tests/t0111-filter.sh index c89020a..730f1c0 100755 --- a/tests/t0111-filter.sh +++ b/tests/t0111-filter.sh | |||
@@ -30,11 +30,11 @@ do | |||
30 | ' | 30 | ' |
31 | 31 | ||
32 | test_expect_success "check whether the $prefix email filter works for authors" ' | 32 | test_expect_success "check whether the $prefix email filter works for authors" ' |
33 | grep "A U THOR <AUTHOR@EXAMPLE.COM>" tmp | 33 | grep "<author@example.com> commit A U THOR <AUTHOR@EXAMPLE.COM>" tmp |
34 | ' | 34 | ' |
35 | 35 | ||
36 | test_expect_success "check whether the $prefix email filter works for committers" ' | 36 | test_expect_success "check whether the $prefix email filter works for committers" ' |
37 | grep "C O MITTER <COMMITTER@EXAMPLE.COM>" tmp | 37 | grep "<committer@example.com> commit C O MITTER <COMMITTER@EXAMPLE.COM>" tmp |
38 | ' | 38 | ' |
39 | done | 39 | done |
40 | 40 | ||