[gnumeric] tools: teach zzufit a bit about xlsx



commit c88dd9013add3b4bb8f92266f1f292980d56deb3
Author: Morten Welinder <terra gnome org>
Date:   Fri Oct 24 18:04:42 2014 -0400

    tools: teach zzufit a bit about xlsx

 test/zzufit |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/test/zzufit b/test/zzufit
index 15fb1f6..4ed1a55 100755
--- a/test/zzufit
+++ b/test/zzufit
@@ -60,8 +60,10 @@ while (1) {
        $fuzzcmd = "gzip -dc '$file' | ./fuzzxml -s$n -r$rate - '$zzuffile'";
     } elsif ($type eq 'raw') {
        $fuzzcmd = "zzuf -s$n -r$rate <'$file' >'$zzuffile'";
-    } elsif ($type eq 'zip') {
+    } elsif ($type eq 'ods') {
        $fuzzcmd = "./fuzzzip --subfuzzer='./fuzzxml -s$n -r$rate %i %o' --subfile content.xml --subfile 
styles.xml '$file' '$zzuffile'";
+    } elsif ($type eq 'xlsx') {
+       $fuzzcmd = "./fuzzzip --subfuzzer='./fuzzxml -s$n -r$rate %i %o' --subfile xl/styles.xml --subfile 
xl/worksheets/sheet1.xml '$file' '$zzuffile'";
     } else {
        die "$0: Internal error.\n";
     }
@@ -138,7 +140,11 @@ sub determine_file_type {
     }
 
     if ($file =~ /\.ods$/) {
-       return $file_type{$file} = 'zip';
+       return $file_type{$file} = 'ods';
+    }
+
+    if ($file =~ /\.xlsx$/) {
+       return $file_type{$file} = 'xlsx';
     }
 
     if ($file =~ /\.xml$/) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]