2 # -----------------------------------------------------------------------------
5 use lib
($0 =~ m
|^(.*/)| ?
$1 : ".");
8 &message
("Check ssconvert resize");
10 my $src = "$samples/regress.gnumeric";
11 my $tmp = "regress-resize.gnumeric";
12 &GnumericTest
::junkfile
($tmp);
15 &test_command
("$ssconvert --resize=8192x256 $src $tmp", sub { 1 } );
16 &test_command
("($ssdiff --xml $src $tmp ; true)",
19 <?xml version="1.0" encoding="UTF-8"?>
20 <s:Diff xmlns:s="http://www.gnumeric.org/ssdiff.dtd">
21 <s:Sheet Name="Sheet1" Old="0" New="0">
22 <s:Rows Old="65536" New="8192"/>
29 &test_command
("$ssconvert --resize=65536x128 $src $tmp", sub { 1 } );
30 &test_command
("($ssdiff --xml $src $tmp ; true)",
33 <?xml version="1.0" encoding="UTF-8"?>
34 <s:Diff xmlns:s="http://www.gnumeric.org/ssdiff.dtd">
35 <s:Sheet Name="Sheet1" Old="0" New="0">
36 <s:Cols Old="256" New="128"/>
43 &test_command
("$ssconvert --resize=8192x128 $src $tmp", sub { 1 } );
44 &test_command
("($ssdiff --xml $src $tmp ; true)",
47 <?xml version="1.0" encoding="UTF-8"?>
48 <s:Diff xmlns:s="http://www.gnumeric.org/ssdiff.dtd">
49 <s:Sheet Name="Sheet1" Old="0" New="0">
50 <s:Cols Old="256" New="128"/>
51 <s:Rows Old="65536" New="8192"/>
58 &test_command
("$ssconvert --resize=1048576x256 $src $tmp", sub { 1 } );
59 &test_command
("($ssdiff --xml $src $tmp ; true)",
62 <?xml version="1.0" encoding="UTF-8"?>
63 <s:Diff xmlns:s="http://www.gnumeric.org/ssdiff.dtd">
64 <s:Sheet Name="Sheet1" Old="0" New="0">
65 <s:Rows Old="65536" New="1048576"/>
72 &test_command
("$ssconvert --resize=65536x512 $src $tmp", sub { 1 } );
73 &test_command
("($ssdiff --xml $src $tmp ; true)",
76 <?xml version="1.0" encoding="UTF-8"?>
77 <s:Diff xmlns:s="http://www.gnumeric.org/ssdiff.dtd">
78 <s:Sheet Name="Sheet1" Old="0" New="0">
79 <s:Cols Old="256" New="512"/>
86 &test_command
("$ssconvert --resize=1048576x16384 $src $tmp", sub { 1 } );
87 &test_command
("($ssdiff --xml $src $tmp ; true)",
90 <?xml version="1.0" encoding="UTF-8"?>
91 <s:Diff xmlns:s="http://www.gnumeric.org/ssdiff.dtd">
92 <s:Sheet Name="Sheet1" Old="0" New="0">
93 <s:Cols Old="256" New="16384"/>
94 <s:Rows Old="65536" New="1048576"/>