aboutsummaryrefslogtreecommitdiff
path: root/t/t0021-conversion.sh
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2007-10-19 21:48:04 +0200
committerShawn O. Pearce <spearce@spearce.org>2007-10-21 01:30:42 -0400
commita0ae35ae2d92cc706f902227cb0f34e2a2f0fd50 (patch)
treeb3fd5f9600ddb03a7c264630b9e3e154c677ecba /t/t0021-conversion.sh
parent21edd3f197df80e9493233a3b9849b61764ebf46 (diff)
downloadgit-a0ae35ae2d92cc706f902227cb0f34e2a2f0fd50.tar.gz
git-a0ae35ae2d92cc706f902227cb0f34e2a2f0fd50.tar.xz
t0021-conversion.sh: Test that the clean filter really cleans content.
This test uses a rot13 filter, which is its own inverse. It tested only that the content was the same as the original after both the 'clean' and the 'smudge' filter were applied. This way it would not detect whether any filter was run at all. Hence, here we add another test that checks that the repository contained content that was processed by the 'clean' filter. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 't/t0021-conversion.sh')
-rwxr-xr-xt/t0021-conversion.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/t0021-conversion.sh b/t/t0021-conversion.sh
index a839f4e07..cb860296e 100755
--- a/t/t0021-conversion.sh
+++ b/t/t0021-conversion.sh
@@ -42,7 +42,12 @@ test_expect_success check '
git diff --raw --exit-code :test :test.i &&
id=$(git rev-parse --verify :test) &&
embedded=$(sed -ne "$script" test.i) &&
- test "z$id" = "z$embedded"
+ test "z$id" = "z$embedded" &&
+
+ git cat-file blob :test.t > test.r &&
+
+ ./rot13.sh < test.o > test.t &&
+ cmp test.r test.t
'
# If an expanded ident ever gets into the repository, we want to make sure that