aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2014-01-15 23:11:19 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2014-01-16 00:53:18 +0100
commit3741254a6989b2837cd8d20480f152f0096bcb9a (patch)
tree5997134d4aaff3ccade061c8cce6de85cbf3ed88
parent2a7dd4bf67edeff2c6c4f6d6d39d2d7f954d978a (diff)
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-xtests/filters/dump.sh (renamed from tests/filters/capitalize-stdin.sh)0
-rwxr-xr-xtests/setup.sh16
-rwxr-xr-xtests/t0111-filter.sh4
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
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
}
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
'
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