[gnumeric] tests: fix tests after adding creation date.



commit 854f6035c139a0691fbb4ad4df0b24623996f86c
Author: Morten Welinder <terra gnome org>
Date:   Thu Dec 10 19:28:44 2009 -0500

    tests: fix tests after adding creation date.

 test/ChangeLog          |    4 ++++
 test/normalize-gnumeric |    4 ++++
 test/t5900-sc.pl        |    4 ++--
 test/t5901-qpro.pl      |    2 +-
 test/t5902-applix.pl    |    2 +-
 test/t5903-sylk.pl      |    6 +++---
 test/t5904-mps.pl       |    4 ++--
 7 files changed, 17 insertions(+), 9 deletions(-)
---
diff --git a/test/ChangeLog b/test/ChangeLog
index ae70edd..699edb7 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,7 @@
+2009-12-10  Morten Welinder <terra gnome org>
+
+	* normalize-gnumeric: Blank creation date.
+
 2009-11-29  Morten Welinder <terra gnome org>
 
 	* Release 1.9.16
diff --git a/test/normalize-gnumeric b/test/normalize-gnumeric
index 8c394c8..8609567 100755
--- a/test/normalize-gnumeric
+++ b/test/normalize-gnumeric
@@ -26,6 +26,10 @@ while (<STDIN>) {
 	s{(<gnm:(paper|orientation)>).*(</gnm:\2>)}{$1xxx$3};
     }
 
+    if (m|^\s*<office:meta>\s*$| .. m|^\s*</office:meta>\s*$|) {
+        s|(<meta:creation-date>).*(</meta:creation-date>)|$1XXX$2|;
+    }
+
     # Sort names.
     if (0 && m|^\s*<gnm:Sheets>\s*$| .. m|^\s*</gnm:Sheets>\s*$|) {
 	if (m|^\s*<gnm:Names>\s*$| .. m|^\s*</gnm:Names>\s*$|) {
diff --git a/test/t5900-sc.pl b/test/t5900-sc.pl
index 94c3528..eb025ea 100755
--- a/test/t5900-sc.pl
+++ b/test/t5900-sc.pl
@@ -9,5 +9,5 @@ use GnumericTest;
 my $mode = ((shift @ARGV) || "check");
 
 &message ("Check the sc importer.");
-&test_importer ("$samples/sc/demo_func", "1be918fc16acd996c634cc2e44aaa6caeb158542", $mode);
-&test_importer ("$samples/sc/demo_math", "a141d3dd635b8d92e22fad386487491fd29b7513", $mode);
+&test_importer ("$samples/sc/demo_func", "210675683db9cf06f1dc410f3dc84c69a6767f76", $mode);
+&test_importer ("$samples/sc/demo_math", "b3c334cde654b7d40b1fe7631cdf28521484b207", $mode);
diff --git a/test/t5901-qpro.pl b/test/t5901-qpro.pl
index 1d2ff12..90e5cc3 100755
--- a/test/t5901-qpro.pl
+++ b/test/t5901-qpro.pl
@@ -9,4 +9,4 @@ use GnumericTest;
 my $mode = ((shift @ARGV) || "check");
 
 &message ("Check the Quattro Pro importer.");
-&test_importer ("$samples/qpro/gantt.wb3", "1702269c2199c85b2d98ea29ce970e1aadad197a", $mode);
+&test_importer ("$samples/qpro/gantt.wb3", "2b073ef28443aeee0ee204ac0663a784eec99ba1", $mode);
diff --git a/test/t5902-applix.pl b/test/t5902-applix.pl
index b8d4c5b..35a1f33 100755
--- a/test/t5902-applix.pl
+++ b/test/t5902-applix.pl
@@ -9,4 +9,4 @@ use GnumericTest;
 my $mode = ((shift @ARGV) || "check");
 
 &message ("Check the applix importer.");
-&test_importer ("$samples/applix/sample.as", "1f76742ff7a08f1832361d66ecfbb504f2da9943", $mode);
+&test_importer ("$samples/applix/sample.as", "abe100b659a005be9cadbf7ceef120ad99c6b1ca", $mode);
diff --git a/test/t5903-sylk.pl b/test/t5903-sylk.pl
index 228017c..3b8a59c 100755
--- a/test/t5903-sylk.pl
+++ b/test/t5903-sylk.pl
@@ -9,6 +9,6 @@ use GnumericTest;
 my $mode = ((shift @ARGV) || "check");
 
 &message ("Check the sylk importer.");
-&test_importer ("$samples/sylk/test.sylk", "563a755d6238f2eb9d41f724bb21e56974067453", $mode);
-&test_importer ("$samples/sylk/encoding.sylk", "f8f29c64305dda6313e96588dbd18a7cc1740f1d", $mode);
-&test_importer ("$samples/sylk/app_b2.sylk", "4b5101407d9b7106db1eff95d92a0f42237948b2", $mode);
+&test_importer ("$samples/sylk/test.sylk", "b71727195e4c854f139eb3512d025ff152593b7a", $mode);
+&test_importer ("$samples/sylk/encoding.sylk", "084ef2fe0a43fac23b1d8f3d83be02c8396e9104", $mode);
+&test_importer ("$samples/sylk/app_b2.sylk", "9158ff7b315a63657b24f746f80cc5cef971b15e", $mode);
diff --git a/test/t5904-mps.pl b/test/t5904-mps.pl
index 5546af5..0a623c8 100755
--- a/test/t5904-mps.pl
+++ b/test/t5904-mps.pl
@@ -9,5 +9,5 @@ use GnumericTest;
 my $mode = ((shift @ARGV) || "check");
 
 &message ("Check the mps importer.");
-&test_importer ("$samples/solver/blend.mps", "500a4e0a17fcf7ad215594f194a87079dbcba0ac", $mode);
-&test_importer ("$samples/solver/afiro.mps", "2d82c1d1d3c6e9d7f5f8f1da6a1d60643945a0bf", $mode);
+&test_importer ("$samples/solver/blend.mps", "7f234ba9e698cbd702f68c6de979496b9c86d389", $mode);
+&test_importer ("$samples/solver/afiro.mps", "e330c9a07934723184e69bcc467d19e1212c9245", $mode);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]