Configure: house cleaning.
[gnumeric.git] / test / t6511-solver.pl
blob4ecb2739325ee2559cc6ca5ef6c3606594bdf73c
1 #!/usr/bin/perl -w
2 # -----------------------------------------------------------------------------
4 use strict;
5 use lib ($0 =~ m|^(.*/)| ? $1 : ".");
6 use GnumericTest;
8 my $file = "$samples/solver-tests.gnumeric";
9 $GnumericTest::default_subtests = 'gnumeric';
11 if (&subtest ("gnumeric")) {
12 &message ("Check solver gnumeric roundtrip.");
13 &test_roundtrip ($file,
14 'format' => 'Gnumeric_XmlIO:sax',
15 'ext' => "gnm");
18 if (&subtest ("ods")) {
19 # Format is deficient
20 &message ("Check solver ods roundtrip.");
21 &test_roundtrip ($file,
22 'format' => 'Gnumeric_OpenCalc:odf',
23 'ext' => "ods",
24 'filter2' => 'std:drop_generator');
27 if (&subtest ("biff7")) {
28 # Format is deficient
29 &message ("Check solver xls/BIFF7 roundtrip.");
30 &test_roundtrip ($file,
31 'format' => 'Gnumeric_Excel:excel_biff7',
32 'ext' => "xls",
33 'resize' => '16384x256',
34 'filter2' => 'std:drop_codepage');
37 if (&subtest ("biff8")) {
38 # Format is deficient
39 &message ("Check solver xls/BIFF8 roundtrip.");
40 &test_roundtrip ($file,
41 'format' => 'Gnumeric_Excel:excel_biff8',
42 'ext' => "xls",
43 'filter2' => 'std:drop_codepage');
46 if (&subtest ("xlsx")) {
47 # Format is deficient
48 &message ("Check solver xlsx roundtrip.");
49 &test_roundtrip ($file,
50 'format' => 'Gnumeric_Excel:xlsx',
51 'ext' => "xlsx",
52 'resize' => '1048576x16384');