2 # -----------------------------------------------------------------------------
5 use lib
($0 =~ m
|^(.*/)| ?
$1 : ".");
8 my $file = "$samples/string-tests.gnumeric";
10 if (&subtest
("gnumeric")) {
11 &message
("Check string gnumeric roundtrip.");
12 &test_roundtrip
($file,
13 'format' => 'Gnumeric_XmlIO:sax',
17 if (&subtest
("ods")) {
18 &message
("Check string ods roundtrip.");
19 &test_roundtrip
($file,
20 'format' => 'Gnumeric_OpenCalc:odf',
22 'filter2' => 'std:drop_generator');
25 my $xls_greek_filter = "$PERL -p -C7 -e '1 while (s{\\b(ValueType=\"60\">Greek[ ?]+)[^ ?<]}{\$1?})'";
27 if (&subtest
("biff7")) {
28 &message
("Check string xls/BIFF7 roundtrip.");
29 &test_roundtrip
($file,
30 'format' => 'Gnumeric_Excel:excel_biff7',
32 'resize' => '16384x256',
33 'filter1' => $xls_greek_filter,
34 'filter2' => 'std:drop_codepage');
37 if (&subtest
("biff8")) {
38 &message
("Check string xls/BIFF8 roundtrip.");
39 &test_roundtrip
($file,
40 'format' => 'Gnumeric_Excel:excel_biff8',
42 'filter2' => 'std:drop_codepage');
45 if (&subtest
("xlsx")) {
46 &message
("Check string xlsx roundtrip.");
47 &test_roundtrip
($file,
48 'format' => 'Gnumeric_Excel:xlsx',
50 'resize' => '1048576x16384');