[gnumeric] t6150: test also graph xml.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] t6150: test also graph xml.
- Date: Mon, 19 May 2014 18:40:23 +0000 (UTC)
commit c1744e38af603186437390752bdde8024780d80e
Author: Morten Welinder <terra gnome org>
Date: Mon May 19 14:39:50 2014 -0400
t6150: test also graph xml.
NEWS | 1 +
test/t6150-ods-syntax.pl | 19 ++++++++++++++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 3501e69..bdc8ab2 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ Morten:
* Fix ods series marker import/export.
* Fix plan-perfect issue. [Debian #748054]
* Make installtion work without scrollkeeper.
+ * Improve import/export testing. [#730397]
--------------------------------------------------------------------------
Gnumeric 1.12.15
diff --git a/test/t6150-ods-syntax.pl b/test/t6150-ods-syntax.pl
index 2997883..79b0e94 100755
--- a/test/t6150-ods-syntax.pl
+++ b/test/t6150-ods-syntax.pl
@@ -93,7 +93,24 @@ foreach my $src (@sources) {
die "Fail\n";
}
- for my $member ('content.xml', 'styles.xml') {
+ my %members;
+ foreach (`$unzip -v $tmp`) {
+ next unless /^----/ ... /^----/;
+ next unless m{\s(\S+)$};
+ my $member = $1;
+ if (exists $members{$member}) {
+ print STDERR "Duplicate member $member\n";
+ die "Fail\n";
+ }
+ $members{$member} = 1;
+ }
+
+ my @check_members = ('content.xml', 'styles.xml');
+ foreach my $member (sort keys %members) {
+ push @check_members, $member if $member =~ m{^Graph\d+/content.xml$};
+ }
+
+ for my $member (@check_members) {
my $cmd = "$unzip -p $tmp $member | $xmllint --noout --relaxng $schema -";
print STDERR "# $cmd\n" if $GnumericTest::verbose;
my $out = `$cmd 2>&1`;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]