[gnumeric] tests: start test file for defined names
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] tests: start test file for defined names
- Date: Fri, 23 May 2014 01:15:12 +0000 (UTC)
commit 731d10cd447dd5bcb01901d5ab3e3b3286f9b0d1
Author: Morten Welinder <terra gnome org>
Date: Thu May 22 21:14:25 2014 -0400
tests: start test file for defined names
samples/names-tests.gnumeric | Bin 0 -> 1872 bytes
test/Makefile.am | 1 +
test/t6517-names.pl | 43 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/samples/names-tests.gnumeric b/samples/names-tests.gnumeric
new file mode 100644
index 0000000..e2c4e47
Binary files /dev/null and b/samples/names-tests.gnumeric differ
diff --git a/test/Makefile.am b/test/Makefile.am
index 76cf89d..dd72270 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -92,6 +92,7 @@ TESTS = t1000-statfuns.pl \
t6514-rich-text.pl \
t6515-cond-format.pl \
t6516-graph.pl \
+ t6517-names.pl \
t7000-goal-seek.pl \
t7100-solver-blend.pl \
t7101-solver-afiro.pl \
diff --git a/test/t6517-names.pl b/test/t6517-names.pl
new file mode 100755
index 0000000..47a2f00
--- /dev/null
+++ b/test/t6517-names.pl
@@ -0,0 +1,43 @@
+#!/usr/bin/perl -w
+# -----------------------------------------------------------------------------
+
+use strict;
+use lib ($0 =~ m|^(.*/)| ? $1 : ".");
+use GnumericTest;
+
+my $file = "$samples/names-tests.gnumeric";
+
+&message ("Check names gnumeric roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_XmlIO:sax',
+ 'ext' => "gnm");
+
+&message ("Check names ods roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_OpenCalc:odf',
+ 'ext' => "ods",
+ 'filter2' => "$PERL -p -e '\$_ = \"\" if m{<meta:generator>}'");
+
+my $xls_codepage_filter = "$PERL -p -e '\$_ = \"\" if m{<meta:user-defined meta:name=.msole:codepage.}'";
+
+&message ("Check names xls/BIFF7 roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_Excel:excel_biff7',
+ 'ext' => "xls",
+ 'resize' => '16384x256',
+ 'filter2' => $xls_codepage_filter,
+ 'ignore_failure' => 1);
+
+&message ("Check names xls/BIFF8 roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_Excel:excel_biff8',
+ 'ext' => "xls",
+ 'filter2' => $xls_codepage_filter,
+ 'ignore_failure' => 1);
+
+&message ("Check names xlsx roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_Excel:xlsx',
+ 'ext' => "xlsx",
+ 'resize' => '1048576x16384',
+ 'ignore_failure' => 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]