1 --- gnumeric-1.12.43/test/GnumericTest.pm.~1~ Wed May 30 22:31:13 2018
2 +++ gnumeric-1.12.43/test/GnumericTest.pm Mon Aug 20 14:56:19 2018
4 my $code = system ("$ssconvert '$file' '$tmp' 2>&1 | sed -e 's/^/| /'");
5 &system_failure ($ssconvert, $code) if $code;
7 - my $htxt = `zcat -f '$tmp' | $normalize_gnumeric | sha1sum`;
8 + my $htxt = `gzip -dcf '$tmp' | $normalize_gnumeric | sha1sum`;
9 my $newsha1 = lc substr ($htxt, 0, 40);
10 die "SHA-1 failure\n" unless $newsha1 =~ /^[0-9a-f]{40}$/;
14 my $tmp1 = "$tmp-old";
16 - my $code1 = system ("zcat -f '$saved' >'$tmp1'");
17 - &system_failure ('zcat', $code1) if $code1;
18 + my $code1 = system ("gzip -dcf '$saved' >'$tmp1'");
19 + &system_failure ('gzip', $code1) if $code1;
21 my $tmp2 = "$tmp-new";
23 - my $code2 = system ("zcat -f '$tmp' >'$tmp2'");
24 - &system_failure ('zcat', $code2) if $code2;
25 + my $code2 = system ("gzip -dcf '$tmp' >'$tmp2'");
26 + &system_failure ('gzip', $code2) if $code2;
28 my $code3 = system ('diff', @ARGV, $tmp1, $tmp2);
32 my $tmp4 = "$tmp.xml";
33 &junkfile ($tmp4) unless $keep;
34 - $code = system ("earg ("zcat", "-f", $tmp1) . "| $normalize_gnumeric >" . "earg ($tmp4));
35 - &system_failure ('zcat', $code) if $code;
36 + $code = system ("earg ("gzip", "-dcf", $tmp1) . "| $normalize_gnumeric >" . "earg ($tmp4));
37 + &system_failure ('gzip', $code) if $code;
39 my $tmp5 = "$tmp-new.xml";
40 &junkfile ($tmp5) unless $keep;
41 - $code = system ("earg ("zcat" , "-f", $tmp3) . " | $normalize_gnumeric >" . "earg ($tmp5));
42 - &system_failure ('zcat', $code) if $code;
43 + $code = system ("earg ("gzip" , "-dcf", $tmp3) . " | $normalize_gnumeric >" . "earg ($tmp5));
44 + &system_failure ('gzip', $code) if $code;
46 $code = system ('diff', '-u', $tmp4, $tmp5);
47 &system_failure ('diff', $code) if $code;
49 $file_filtered =~ s{^.*/}{};
50 $file_filtered =~ s/(\.gnumeric)$/-filter$1/;
51 unlink $file_filtered;
52 - my $cmd = "zcat " . "earg ($file_resized) . " | $filter0 >" . "earg ($file_filtered);
53 + my $cmd = "gzip -dcf " . "earg ($file_resized) . " | $filter0 >" . "earg ($file_filtered);
54 print STDERR "# $cmd\n" if $verbose;
55 $code = system ("($cmd) 2>&1 | sed -e 's/^/| /'");
56 &system_failure ($ssconvert, $code) if $code;
58 my $tmp_xml = "$tmp.xml";
60 &junkfile ($tmp_xml) unless $keep;
61 - $code = system ("zcat -f '$file_filtered' | $normalize_gnumeric | $filter1 >'$tmp_xml'");
62 - &system_failure ('zcat', $code) if $code;
63 + $code = system ("gzip -dcf '$file_filtered' | $normalize_gnumeric | $filter1 >'$tmp_xml'");
64 + &system_failure ('gzip', $code) if $code;
66 my $tmp2_xml = "$tmp-new.xml";
68 &junkfile ($tmp2_xml) unless $keep;
69 - # print STDERR "zcat -f '$tmp2' | $normalize_gnumeric | $filter2 >'$tmp2_xml'\n";
70 - $code = system ("zcat -f '$tmp2' | $normalize_gnumeric | $filter2 >'$tmp2_xml'");
71 - &system_failure ('zcat', $code) if $code;
72 + # print STDERR "gzip -dcf '$tmp2' | $normalize_gnumeric | $filter2 >'$tmp2_xml'\n";
73 + $code = system ("gzip -dcf '$tmp2' | $normalize_gnumeric | $filter2 >'$tmp2_xml'");
74 + &system_failure ('gzip', $code) if $code;
76 $code = system ('diff', '-u', $tmp_xml, $tmp2_xml);
77 &system_failure ('diff', $code) if $code && !$ignore_failure;