@@ -546,7 +546,10 @@ function DefineTests {
546546 $threadslist = (1 , 2 , 4 , 8 , 16 , 32 , 64 , 128 , 256 )
547547 $shorttime = 120 # Runtime of point tests
548548 $longtime = 1200 # Runtime of long-running tests
549-
549+ $threadslist = (1 )
550+ $bslist = (4096 )
551+ $shorttime = 2
552+ $longtime = 4
550553 function AddTest ( $name , $seqrand , $writepct , $blocksize , $threads , $qdperthread , $desc , $cmdline ) {
551554 if ($threads -eq " " ) { $qd = ' ' } else { $qd = ([int ]$threads ) * ([int ]$qdperthread ) }
552555 if ($blocksize -ne " " ) { if ($blocksize -lt 1024 ) { $bsstr = " ${blocksize} b" } else { $bsstr = " {0:N0}K" -f ([int ]$blocksize / 1024 ) } }
@@ -949,7 +952,10 @@ VNEBUEsFBgAAAAABAAEAWgAAAFQAAAAAAA==
949952 $zasrc = [System.IO.Compression.ZipFile ]::Open( $odssrc , [System.IO.Compression.ZipArchiveMode ]::Read )
950953 $zadst = [System.IO.Compression.ZipFile ]::Open( $odsdest , [System.IO.Compression.ZipArchiveMode ]::Update )
951954 foreach ($entry in $zasrc.Entries ) {
952- if ($entry.FullName -eq " mimetype" ) { continue }
955+ if (($entry.FullName -eq " mimetype" ) -or $entry.FullName.StartsWith (" Thumbnails" ) -or $entry.FullName.StartsWith (" ObjectReplacement" )) {
956+ # Skip binary versions, and the copied-over mimetype
957+ continue
958+ }
953959 $newentry = $zadst.CreateEntry ( $entry )
954960 if ($entry.FullName.EndsWith (" /" ) -or $entry.FullName.EndsWith (" \" )) {
955961 # Directory, don't copy anything
@@ -958,6 +964,20 @@ VNEBUEsFBgAAAAABAAEAWgAAAFQAAAAAAA==
958964 $wr = New-Object System.IO.StreamWriter( $newentry.Open () )
959965 $wr.Write ( $xmltext )
960966 $wr.Close ()
967+ } elseif ($entry.FullName -eq " META-INF/manifest.xml" ) {
968+ # Remove ObjectReplacements from the list
969+ $rd = New-Object System.IO.StreamReader( $entry.Open () )
970+ $wr = New-Object System.IO.StreamWriter( $newentry.Open () )
971+ $rdbytes = $rd.ReadToEnd ()
972+ $rd.close ()
973+ $lines = $rdbytes.Split (" `n " )
974+ foreach ($line in $lines ) {
975+ if ( -not ( ($line -contains " ObjectReplacement" ) -or ($line -contains " Thumbnails" ) ) ) {
976+ $wr.Write ($line )
977+ $wr.Write (" `n " )
978+ }
979+ }
980+ $wr.Close ();
961981 } else {
962982 # Copying data for from the source ZIP
963983 $wr = New-Object System.IO.StreamWriter( $newentry.Open () )
0 commit comments