]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Improve normalization of --dump-manifest output
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 5 Nov 2010 21:09:03 +0000 (22:09 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 5 Nov 2010 21:09:03 +0000 (22:09 +0100)
test.sh

diff --git a/test.sh b/test.sh
index 0a68cc6562a43a798806f19d00f0b594ef21c425..0b1a55b46c4b899e8649dd4b2a8295021b4975fc 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1185,7 +1185,7 @@ EOF
     $CCACHE $COMPILER test.c -c -o test.o
     manifest=`find $CCACHE_DIR -name '*.manifest'`
     $CCACHE --dump-manifest $manifest |
-        perl -ape 's/:.*/: objhash/ if $F[0] eq "Hash:" and ++$n == 4' \
+        perl -ape 's/:.*/: normalized/ if $F[0] =~ "(Hash|Size):" and ++$n > 6' \
         >manifest.dump
     cat <<EOF >expected.dump
 Magic: cCmF
@@ -1212,8 +1212,8 @@ File infos (3):
 Results (1):
   0:
     File hash indexes: 0 1 2
-    Hash: objhash
-    Size: 372
+    Hash: normalized
+    Size: normalized
 EOF
     if ! diff -u expected.dump manifest.dump; then
         test_failed "unexpected output of --dump-manifest"