2 # -----------------------------------------------------------------------------
5 use lib
($0 =~ m
|^(.*/)| ?
$1 : ".");
8 &message
("Check ssdiff on identical files");
10 my @sources = &GnumericTest
::corpus
();
16 for my $src (@sources) {
22 print STDERR
"$src...\n";
24 my $cmd = "$ssdiff --xml $src $src";
25 my $output = `$cmd 2>&1`;
28 &GnumericTest
::dump_indented
($output);
30 die "Failed command: $cmd [$err]\n" if $err > (1 << 8);
32 if ($output =~ m
'<\?xml version="1\.0" encoding="UTF-8"\?>
34 ( <s:Sheet Name=".*" Old="\d+" New="\d+"/>
38 &GnumericTest
::dump_indented
($output);
44 &GnumericTest
::report_skip
("No source files present") if $nbad + $ngood == 0;
47 print STDERR
"$nskipped files skipped.\n";
53 print STDERR
"Pass\n";