[gnumeric] style optimizer: test.



commit cc9a11a50ed81a01b5b2702e920d6e163f910725
Author: Morten Welinder <terra gnome org>
Date:   Sat May 9 14:51:18 2009 -0400

    style optimizer: test.
---
 test/t2800-style-optimizer.pl |   17 +++++++++++++++++
 test/t8050-valgrind-sstest.pl |    2 +-
 2 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/test/t2800-style-optimizer.pl b/test/t2800-style-optimizer.pl
new file mode 100755
index 0000000..1aa9240
--- /dev/null
+++ b/test/t2800-style-optimizer.pl
@@ -0,0 +1,17 @@
+#!/usr/bin/perl -w
+# -----------------------------------------------------------------------------
+
+use strict;
+use lib ($0 =~ m|^(.*/)| ? $1 : ".");
+use GnumericTest;
+
+&message ("Check style optimizer.");
+$ENV{'GNM_DEBUG'} = 'style-optimize:style-optimize-verify';
+
+my $src = "$samples/excel/statfuns.xls";
+&GnumericTest::report_skip ("file $src does not exist") unless -r $src;
+
+my $tmp = "statfuns.gnumeric";
+&GnumericTest::junkfile ($tmp);
+
+&test_command ("$ssconvert $src $tmp", sub { 1 } );
diff --git a/test/t8050-valgrind-sstest.pl b/test/t8050-valgrind-sstest.pl
index 63cc75c..1c7296c 100755
--- a/test/t8050-valgrind-sstest.pl
+++ b/test/t8050-valgrind-sstest.pl
@@ -7,4 +7,4 @@ use GnumericTest;
 
 &message ("Check sstest with valgrind.");
 
-&test_valgrind ("$sstest all", 1);
+&test_valgrind ("$sstest all >/dev/null 2>&1", 1);



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