Konstantin Tokarev | d66db2f | 2015-12-08 18:11:10 +0300 | [diff] [blame] | 1 | #!/bin/sh -e |
| 2 | |
| 3 | die() { |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 4 | $ECHO "$@" 1>&2 |
Konstantin Tokarev | d66db2f | 2015-12-08 18:11:10 +0300 | [diff] [blame] | 5 | exit 1 |
| 6 | } |
| 7 | |
Konstantin Tokarev | 76be378 | 2015-12-08 18:36:37 +0300 | [diff] [blame] | 8 | roundTripTest() { |
| 9 | if [ -n "$3" ]; then |
Przemyslaw Skibinski | 5f5a902 | 2016-12-22 18:05:07 +0100 | [diff] [blame] | 10 | local_c="$3" |
| 11 | local_p="$2" |
Konstantin Tokarev | 76be378 | 2015-12-08 18:36:37 +0300 | [diff] [blame] | 12 | else |
Przemyslaw Skibinski | 5f5a902 | 2016-12-22 18:05:07 +0100 | [diff] [blame] | 13 | local_c="$2" |
Sean Purcell | eb70d21 | 2017-04-11 17:15:13 -0700 | [diff] [blame^] | 14 | local_p="" |
Konstantin Tokarev | 76be378 | 2015-12-08 18:36:37 +0300 | [diff] [blame] | 15 | fi |
| 16 | |
| 17 | rm -f tmp1 tmp2 |
Przemyslaw Skibinski | 5f5a902 | 2016-12-22 18:05:07 +0100 | [diff] [blame] | 18 | $ECHO "roundTripTest: ./datagen $1 $local_p | $ZSTD -v$local_c | $ZSTD -d" |
| 19 | ./datagen $1 $local_p | $MD5SUM > tmp1 |
| 20 | ./datagen $1 $local_p | $ZSTD --ultra -v$local_c | $ZSTD -d | $MD5SUM > tmp2 |
| 21 | $DIFF -q tmp1 tmp2 |
Konstantin Tokarev | 76be378 | 2015-12-08 18:36:37 +0300 | [diff] [blame] | 22 | } |
| 23 | |
Sean Purcell | eb70d21 | 2017-04-11 17:15:13 -0700 | [diff] [blame^] | 24 | fileRoundTripTest() { |
| 25 | if [ -n "$3" ]; then |
| 26 | local_c="$3" |
| 27 | local_p="$2" |
| 28 | else |
| 29 | local_c="$2" |
| 30 | local_p="" |
| 31 | fi |
| 32 | |
| 33 | rm -f tmp.zstd tmp.md5.1 tmp.md5.2 |
| 34 | $ECHO "fileRoundTripTest: ./datagen $1 $local_p > tmp1 && $ZSTD -v$local_c -c | $ZSTD -d | $MD5SUM > tmp.md5.2" |
| 35 | ./datagen $1 $local_p > tmp |
| 36 | cat tmp | $MD5SUM > tmp.md5.1 |
| 37 | $ZSTD --ultra -v$local_c -c tmp | $ZSTD -d | $MD5SUM > tmp.md5.2 |
| 38 | $DIFF -q tmp.md5.1 tmp.md5.2 |
| 39 | } |
| 40 | |
Sean Purcell | 9a38dfa | 2017-03-17 12:32:18 -0700 | [diff] [blame] | 41 | isTerminal=false |
| 42 | if [ -t 0 ] && [ -t 1 ] |
| 43 | then |
| 44 | isTerminal=true |
| 45 | fi |
| 46 | |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 47 | isWindows=false |
| 48 | ECHO="echo" |
Yann Collet | 391a128 | 2016-06-21 17:06:25 +0200 | [diff] [blame] | 49 | INTOVOID="/dev/null" |
inikep | 993a9df | 2016-05-27 10:07:46 +0200 | [diff] [blame] | 50 | case "$OS" in |
Yann Collet | 673f0d7 | 2016-06-06 00:26:38 +0200 | [diff] [blame] | 51 | Windows*) |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 52 | isWindows=true |
| 53 | ECHO="echo -e" |
Sean Purcell | 9a38dfa | 2017-03-17 12:32:18 -0700 | [diff] [blame] | 54 | INTOVOID="NUL" |
inikep | 993a9df | 2016-05-27 10:07:46 +0200 | [diff] [blame] | 55 | ;; |
| 56 | esac |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 57 | |
Dimitry Andric | 12df6da | 2016-12-12 19:22:47 +0100 | [diff] [blame] | 58 | UNAME=$(uname) |
| 59 | case "$UNAME" in |
| 60 | Darwin) MD5SUM="md5 -r" ;; |
| 61 | FreeBSD) MD5SUM="gmd5sum" ;; |
Yann Collet | 94d1a93 | 2016-12-06 12:02:56 -0800 | [diff] [blame] | 62 | *) MD5SUM="md5sum" ;; |
| 63 | esac |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 64 | |
Przemyslaw Skibinski | 5f5a902 | 2016-12-22 18:05:07 +0100 | [diff] [blame] | 65 | DIFF="diff" |
| 66 | case "$UNAME" in |
| 67 | SunOS) DIFF="gdiff" ;; |
| 68 | esac |
| 69 | |
| 70 | |
Przemyslaw Skibinski | e579ab5 | 2016-11-14 12:57:05 +0100 | [diff] [blame] | 71 | $ECHO "\nStarting playTests.sh isWindows=$isWindows ZSTD='$ZSTD'" |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 72 | |
Konstantin Tokarev | 76be378 | 2015-12-08 18:36:37 +0300 | [diff] [blame] | 73 | [ -n "$ZSTD" ] || die "ZSTD variable must be defined!" |
| 74 | |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 75 | $ECHO "\n**** simple tests **** " |
Yann Collet | de95f96 | 2016-05-23 19:46:47 +0200 | [diff] [blame] | 76 | |
Yann Collet | 8154c3d | 2016-02-13 03:12:10 +0100 | [diff] [blame] | 77 | ./datagen > tmp |
Yann Collet | b3060f7 | 2016-09-09 16:44:16 +0200 | [diff] [blame] | 78 | $ECHO "test : basic compression " |
Yann Collet | 673f0d7 | 2016-06-06 00:26:38 +0200 | [diff] [blame] | 79 | $ZSTD -f tmp # trivial compression case, creates tmp.zst |
Yann Collet | b3060f7 | 2016-09-09 16:44:16 +0200 | [diff] [blame] | 80 | $ECHO "test : basic decompression" |
Yann Collet | 673f0d7 | 2016-06-06 00:26:38 +0200 | [diff] [blame] | 81 | $ZSTD -df tmp.zst # trivial decompression case (overwrites tmp) |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 82 | $ECHO "test : too large compression level (must fail)" |
Yann Collet | fab0230 | 2016-08-12 19:00:18 +0200 | [diff] [blame] | 83 | $ZSTD -99 -f tmp # too large compression level, automatic sized down |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 84 | $ECHO "test : compress to stdout" |
Yann Collet | 0d348d4 | 2016-05-29 02:02:24 +0200 | [diff] [blame] | 85 | $ZSTD tmp -c > tmpCompressed |
Yann Collet | d693117 | 2016-05-10 05:56:09 +0200 | [diff] [blame] | 86 | $ZSTD tmp --stdout > tmpCompressed # long command format |
Yann Collet | 27b5ac6 | 2016-09-21 14:20:56 +0200 | [diff] [blame] | 87 | $ECHO "test : compress to named file" |
| 88 | rm tmpCompressed |
| 89 | $ZSTD tmp -o tmpCompressed |
| 90 | ls tmpCompressed # must work |
| 91 | $ECHO "test : -o must be followed by filename (must fail)" |
Yann Collet | 714464f | 2016-09-21 16:05:03 +0200 | [diff] [blame] | 92 | $ZSTD tmp -of tmpCompressed && die "-o must be followed by filename " |
Yann Collet | 27b5ac6 | 2016-09-21 14:20:56 +0200 | [diff] [blame] | 93 | $ECHO "test : force write, correct order" |
| 94 | $ZSTD tmp -fo tmpCompressed |
Yann Collet | 714464f | 2016-09-21 16:05:03 +0200 | [diff] [blame] | 95 | $ECHO "test : forgotten argument" |
| 96 | cp tmp tmp2 |
| 97 | $ZSTD tmp2 -fo && die "-o must be followed by filename " |
Yann Collet | c843142 | 2016-09-01 15:05:57 -0700 | [diff] [blame] | 98 | $ECHO "test : implied stdout when input is stdin" |
| 99 | $ECHO bob | $ZSTD | $ZSTD -d |
Sean Purcell | 9a38dfa | 2017-03-17 12:32:18 -0700 | [diff] [blame] | 100 | if [ "$isTerminal" = true ]; then |
Sean Purcell | d973071 | 2017-03-16 16:25:19 -0700 | [diff] [blame] | 101 | $ECHO "test : compressed data to terminal" |
| 102 | $ECHO bob | $ZSTD && die "should have refused : compressed data to terminal" |
| 103 | $ECHO "test : compressed data from terminal (a hang here is a test fail, zstd is wrongly waiting on data from terminal)" |
| 104 | $ZSTD -d > $INTOVOID && die "should have refused : compressed data from terminal" |
Sean Purcell | 9a38dfa | 2017-03-17 12:32:18 -0700 | [diff] [blame] | 105 | fi |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 106 | $ECHO "test : null-length file roundtrip" |
| 107 | $ECHO -n '' | $ZSTD - --stdout | $ZSTD -d --stdout |
| 108 | $ECHO "test : decompress file with wrong suffix (must fail)" |
Yann Collet | 2d08b09 | 2016-02-16 14:42:08 +0100 | [diff] [blame] | 109 | $ZSTD -d tmpCompressed && die "wrong suffix error not detected!" |
Yann Collet | 391a128 | 2016-06-21 17:06:25 +0200 | [diff] [blame] | 110 | $ZSTD -df tmp && die "should have refused : wrong extension" |
| 111 | $ECHO "test : decompress into stdout" |
Yann Collet | 0d348d4 | 2016-05-29 02:02:24 +0200 | [diff] [blame] | 112 | $ZSTD -d tmpCompressed -c > tmpResult # decompression using stdout |
Yann Collet | 2d08b09 | 2016-02-16 14:42:08 +0100 | [diff] [blame] | 113 | $ZSTD --decompress tmpCompressed -c > tmpResult |
| 114 | $ZSTD --decompress tmpCompressed --stdout > tmpResult |
Yann Collet | 391a128 | 2016-06-21 17:06:25 +0200 | [diff] [blame] | 115 | $ECHO "test : decompress from stdin into stdout" |
| 116 | $ZSTD -dc < tmp.zst > $INTOVOID # combine decompression, stdin & stdout |
| 117 | $ZSTD -dc - < tmp.zst > $INTOVOID |
| 118 | $ZSTD -d < tmp.zst > $INTOVOID # implicit stdout when stdin is used |
| 119 | $ZSTD -d - < tmp.zst > $INTOVOID |
Yann Collet | d4cda27 | 2016-10-14 13:13:13 -0700 | [diff] [blame] | 120 | $ECHO "test : impose memory limitation (must fail)" |
| 121 | $ZSTD -d -f tmp.zst -M2K -c > $INTOVOID && die "decompression needs more memory than allowed" |
Yann Collet | 1122349 | 2016-10-14 14:07:11 -0700 | [diff] [blame] | 122 | $ZSTD -d -f tmp.zst --memlimit=2K -c > $INTOVOID && die "decompression needs more memory than allowed" # long command |
Yann Collet | d7b120a | 2016-10-14 14:22:32 -0700 | [diff] [blame] | 123 | $ZSTD -d -f tmp.zst --memory=2K -c > $INTOVOID && die "decompression needs more memory than allowed" # long command |
| 124 | $ZSTD -d -f tmp.zst --memlimit-decompress=2K -c > $INTOVOID && die "decompression needs more memory than allowed" # long command |
Yann Collet | 391a128 | 2016-06-21 17:06:25 +0200 | [diff] [blame] | 125 | $ECHO "test : overwrite protection" |
Yann Collet | 2d08b09 | 2016-02-16 14:42:08 +0100 | [diff] [blame] | 126 | $ZSTD -q tmp && die "overwrite check failed!" |
Yann Collet | 391a128 | 2016-06-21 17:06:25 +0200 | [diff] [blame] | 127 | $ECHO "test : force overwrite" |
Yann Collet | 2d08b09 | 2016-02-16 14:42:08 +0100 | [diff] [blame] | 128 | $ZSTD -q -f tmp |
| 129 | $ZSTD -q --force tmp |
Sean Purcell | 9da11c6 | 2017-04-06 12:58:49 -0700 | [diff] [blame] | 130 | $ECHO "test : overwrite readonly file" |
Sean Purcell | 1652172 | 2017-04-06 17:06:30 -0700 | [diff] [blame] | 131 | rm -f tmpro tmpro.zst |
Sean Purcell | 9da11c6 | 2017-04-06 12:58:49 -0700 | [diff] [blame] | 132 | $ECHO foo > tmpro.zst |
| 133 | $ECHO foo > tmpro |
| 134 | chmod 400 tmpro.zst |
Sean Purcell | 1652172 | 2017-04-06 17:06:30 -0700 | [diff] [blame] | 135 | $ZSTD -q tmpro && die "should have refused to overwrite read-only file" |
| 136 | $ZSTD -q -f tmpro |
| 137 | rm -f tmpro tmpro.zst |
Yann Collet | b09b12c | 2016-06-09 22:59:51 +0200 | [diff] [blame] | 138 | $ECHO "test : file removal" |
| 139 | $ZSTD -f --rm tmp |
| 140 | ls tmp && die "tmp should no longer be present" |
| 141 | $ZSTD -f -d --rm tmp.zst |
| 142 | ls tmp.zst && die "tmp.zst should no longer be present" |
Yann Collet | 67d86a7 | 2017-02-27 16:09:20 -0800 | [diff] [blame] | 143 | $ECHO "test : --rm on stdin" |
| 144 | $ECHO a | $ZSTD --rm > $INTOVOID # --rm should remain silent |
Yann Collet | b09b12c | 2016-06-09 22:59:51 +0200 | [diff] [blame] | 145 | rm tmp |
| 146 | $ZSTD -f tmp && die "tmp not present : should have failed" |
| 147 | ls tmp.zst && die "tmp.zst should not be created" |
Yann Collet | de95f96 | 2016-05-23 19:46:47 +0200 | [diff] [blame] | 148 | |
| 149 | |
Przemyslaw Skibinski | 9b4fa0d | 2016-12-14 16:50:00 +0100 | [diff] [blame] | 150 | $ECHO "\n**** Advanced compression parameters **** " |
Przemyslaw Skibinski | 24a4236 | 2016-12-14 18:07:31 +0100 | [diff] [blame] | 151 | $ECHO "Hello world!" | $ZSTD --zstd=windowLog=21, - -o tmp.zst && die "wrong parameters not detected!" |
| 152 | $ECHO "Hello world!" | $ZSTD --zstd=windowLo=21 - -o tmp.zst && die "wrong parameters not detected!" |
Przemyslaw Skibinski | f9a5666 | 2016-12-14 18:43:06 +0100 | [diff] [blame] | 153 | $ECHO "Hello world!" | $ZSTD --zstd=windowLog=21,slog - -o tmp.zst && die "wrong parameters not detected!" |
Przemyslaw Skibinski | 24a4236 | 2016-12-14 18:07:31 +0100 | [diff] [blame] | 154 | ls tmp.zst && die "tmp.zst should not be created" |
Przemyslaw Skibinski | 9b4fa0d | 2016-12-14 16:50:00 +0100 | [diff] [blame] | 155 | roundTripTest -g512K |
Przemyslaw Skibinski | ab5ed6f | 2016-12-14 17:10:38 +0100 | [diff] [blame] | 156 | roundTripTest -g512K " --zstd=slen=3,tlen=48,strat=6" |
| 157 | roundTripTest -g512K " --zstd=strat=6,wlog=23,clog=23,hlog=22,slog=6" |
Przemyslaw Skibinski | 9b4fa0d | 2016-12-14 16:50:00 +0100 | [diff] [blame] | 158 | roundTripTest -g512K " --zstd=windowLog=23,chainLog=23,hashLog=22,searchLog=6,searchLength=3,targetLength=48,strategy=6" |
| 159 | roundTripTest -g512K 19 |
| 160 | |
| 161 | |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 162 | $ECHO "\n**** Pass-Through mode **** " |
Yann Collet | 743b33f | 2016-12-02 15:18:57 -0800 | [diff] [blame] | 163 | $ECHO "Hello world 1!" | $ZSTD -df |
| 164 | $ECHO "Hello world 2!" | $ZSTD -dcf |
| 165 | $ECHO "Hello world 3!" > tmp1 |
| 166 | $ZSTD -dcf tmp1 |
Yann Collet | de95f96 | 2016-05-23 19:46:47 +0200 | [diff] [blame] | 167 | |
Yann Collet | 8154c3d | 2016-02-13 03:12:10 +0100 | [diff] [blame] | 168 | |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 169 | $ECHO "\n**** frame concatenation **** " |
Konstantin Tokarev | d66db2f | 2015-12-08 18:11:10 +0300 | [diff] [blame] | 170 | |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 171 | $ECHO "hello " > hello.tmp |
| 172 | $ECHO "world!" > world.tmp |
Konstantin Tokarev | d66db2f | 2015-12-08 18:11:10 +0300 | [diff] [blame] | 173 | cat hello.tmp world.tmp > helloworld.tmp |
Yann Collet | c8da2c9 | 2016-02-12 02:56:27 +0100 | [diff] [blame] | 174 | $ZSTD -c hello.tmp > hello.zstd |
| 175 | $ZSTD -c world.tmp > world.zstd |
Konstantin Tokarev | d66db2f | 2015-12-08 18:11:10 +0300 | [diff] [blame] | 176 | cat hello.zstd world.zstd > helloworld.zstd |
Yann Collet | c8da2c9 | 2016-02-12 02:56:27 +0100 | [diff] [blame] | 177 | $ZSTD -dc helloworld.zstd > result.tmp |
Konstantin Tokarev | d66db2f | 2015-12-08 18:11:10 +0300 | [diff] [blame] | 178 | cat result.tmp |
Yann Collet | bd6bc22 | 2017-01-22 15:54:14 -0800 | [diff] [blame] | 179 | $DIFF helloworld.tmp result.tmp |
Yann Collet | 4c5bbf6 | 2016-07-28 20:30:25 +0200 | [diff] [blame] | 180 | $ECHO "frame concatenation without checksum" |
| 181 | $ZSTD -c hello.tmp > hello.zstd --no-check |
| 182 | $ZSTD -c world.tmp > world.zstd --no-check |
| 183 | cat hello.zstd world.zstd > helloworld.zstd |
| 184 | $ZSTD -dc helloworld.zstd > result.tmp |
| 185 | cat result.tmp |
Yann Collet | bd6bc22 | 2017-01-22 15:54:14 -0800 | [diff] [blame] | 186 | $DIFF helloworld.tmp result.tmp |
Konstantin Tokarev | 76be378 | 2015-12-08 18:36:37 +0300 | [diff] [blame] | 187 | rm ./*.tmp ./*.zstd |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 188 | $ECHO "frame concatenation tests completed" |
Konstantin Tokarev | d66db2f | 2015-12-08 18:11:10 +0300 | [diff] [blame] | 189 | |
Yann Collet | f062436 | 2016-02-12 15:56:46 +0100 | [diff] [blame] | 190 | |
Przemyslaw Skibinski | 5f5a902 | 2016-12-22 18:05:07 +0100 | [diff] [blame] | 191 | if [ "$isWindows" = false ] && [ "$UNAME" != 'SunOS' ] ; then |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 192 | $ECHO "\n**** flush write error test **** " |
Konstantin Tokarev | d66db2f | 2015-12-08 18:11:10 +0300 | [diff] [blame] | 193 | |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 194 | $ECHO "$ECHO foo | $ZSTD > /dev/full" |
| 195 | $ECHO foo | $ZSTD > /dev/full && die "write error not detected!" |
| 196 | $ECHO "$ECHO foo | $ZSTD | $ZSTD -d > /dev/full" |
| 197 | $ECHO foo | $ZSTD | $ZSTD -d > /dev/full && die "write error not detected!" |
Sean Purcell | 680e4e0 | 2017-03-23 11:52:09 -0700 | [diff] [blame] | 198 | |
| 199 | $ECHO "\n**** symbolic link test **** " |
| 200 | |
| 201 | rm -f hello.tmp world.tmp hello.tmp.zst world.tmp.zst |
| 202 | $ECHO "hello world" > hello.tmp |
| 203 | ln -s hello.tmp world.tmp |
| 204 | $ZSTD world.tmp hello.tmp |
| 205 | ls hello.tmp.zst || die "regular file should have been compressed!" |
| 206 | ls world.tmp.zst && die "symbolic link should not have been compressed!" |
| 207 | $ZSTD world.tmp hello.tmp -f |
| 208 | ls world.tmp.zst || die "symbol link should have been compressed with --force" |
| 209 | rm -f hello.tmp world.tmp hello.tmp.zst world.tmp.zst |
| 210 | |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 211 | fi |
Konstantin Tokarev | d66db2f | 2015-12-08 18:11:10 +0300 | [diff] [blame] | 212 | |
Yann Collet | 6a45835 | 2015-12-18 02:51:14 +0100 | [diff] [blame] | 213 | |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 214 | $ECHO "\n**** test sparse file support **** " |
Yann Collet | 32990b5 | 2016-05-23 17:48:57 +0200 | [diff] [blame] | 215 | |
| 216 | ./datagen -g5M -P100 > tmpSparse |
| 217 | $ZSTD tmpSparse -c | $ZSTD -dv -o tmpSparseRegen |
Przemyslaw Skibinski | 5f5a902 | 2016-12-22 18:05:07 +0100 | [diff] [blame] | 218 | $DIFF -s tmpSparse tmpSparseRegen |
Yann Collet | 32990b5 | 2016-05-23 17:48:57 +0200 | [diff] [blame] | 219 | $ZSTD tmpSparse -c | $ZSTD -dv --sparse -c > tmpOutSparse |
Przemyslaw Skibinski | 5f5a902 | 2016-12-22 18:05:07 +0100 | [diff] [blame] | 220 | $DIFF -s tmpSparse tmpOutSparse |
Yann Collet | 32990b5 | 2016-05-23 17:48:57 +0200 | [diff] [blame] | 221 | $ZSTD tmpSparse -c | $ZSTD -dv --no-sparse -c > tmpOutNoSparse |
Przemyslaw Skibinski | 5f5a902 | 2016-12-22 18:05:07 +0100 | [diff] [blame] | 222 | $DIFF -s tmpSparse tmpOutNoSparse |
Yann Collet | 32990b5 | 2016-05-23 17:48:57 +0200 | [diff] [blame] | 223 | ls -ls tmpSparse* |
| 224 | ./datagen -s1 -g1200007 -P100 | $ZSTD | $ZSTD -dv --sparse -c > tmpSparseOdd # Odd size file (to not finish on an exact nb of blocks) |
Przemyslaw Skibinski | 5f5a902 | 2016-12-22 18:05:07 +0100 | [diff] [blame] | 225 | ./datagen -s1 -g1200007 -P100 | $DIFF -s - tmpSparseOdd |
Yann Collet | 32990b5 | 2016-05-23 17:48:57 +0200 | [diff] [blame] | 226 | ls -ls tmpSparseOdd |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 227 | $ECHO "\n Sparse Compatibility with Console :" |
| 228 | $ECHO "Hello World 1 !" | $ZSTD | $ZSTD -d -c |
| 229 | $ECHO "Hello World 2 !" | $ZSTD | $ZSTD -d | cat |
| 230 | $ECHO "\n Sparse Compatibility with Append :" |
Yann Collet | 32990b5 | 2016-05-23 17:48:57 +0200 | [diff] [blame] | 231 | ./datagen -P100 -g1M > tmpSparse1M |
| 232 | cat tmpSparse1M tmpSparse1M > tmpSparse2M |
| 233 | $ZSTD -v -f tmpSparse1M -o tmpSparseCompressed |
| 234 | $ZSTD -d -v -f tmpSparseCompressed -o tmpSparseRegenerated |
| 235 | $ZSTD -d -v -f tmpSparseCompressed -c >> tmpSparseRegenerated |
| 236 | ls -ls tmpSparse* |
Przemyslaw Skibinski | 5f5a902 | 2016-12-22 18:05:07 +0100 | [diff] [blame] | 237 | $DIFF tmpSparse2M tmpSparseRegenerated |
Yann Collet | 33341de | 2016-05-29 23:09:51 +0200 | [diff] [blame] | 238 | rm tmpSparse* |
Yann Collet | 32990b5 | 2016-05-23 17:48:57 +0200 | [diff] [blame] | 239 | |
| 240 | |
Yann Collet | 9b998e4 | 2016-06-15 23:11:20 +0200 | [diff] [blame] | 241 | $ECHO "\n**** multiple files tests **** " |
| 242 | |
Yann Collet | 391a128 | 2016-06-21 17:06:25 +0200 | [diff] [blame] | 243 | ./datagen -s1 > tmp1 2> $INTOVOID |
| 244 | ./datagen -s2 -g100K > tmp2 2> $INTOVOID |
| 245 | ./datagen -s3 -g1M > tmp3 2> $INTOVOID |
Yann Collet | 9b998e4 | 2016-06-15 23:11:20 +0200 | [diff] [blame] | 246 | $ECHO "compress tmp* : " |
Yann Collet | 60ba31c | 2016-07-28 19:55:09 +0200 | [diff] [blame] | 247 | $ZSTD -f tmp* |
Yann Collet | 9b998e4 | 2016-06-15 23:11:20 +0200 | [diff] [blame] | 248 | ls -ls tmp* |
| 249 | rm tmp1 tmp2 tmp3 |
| 250 | $ECHO "decompress tmp* : " |
| 251 | $ZSTD -df *.zst |
| 252 | ls -ls tmp* |
| 253 | $ECHO "compress tmp* into stdout > tmpall : " |
| 254 | $ZSTD -c tmp1 tmp2 tmp3 > tmpall |
| 255 | ls -ls tmp* |
| 256 | $ECHO "decompress tmpall* into stdout > tmpdec : " |
| 257 | cp tmpall tmpall2 |
| 258 | $ZSTD -dc tmpall* > tmpdec |
| 259 | ls -ls tmp* |
| 260 | $ECHO "compress multiple files including a missing one (notHere) : " |
| 261 | $ZSTD -f tmp1 notHere tmp2 && die "missing file not detected!" |
| 262 | |
| 263 | |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 264 | $ECHO "\n**** dictionary tests **** " |
Yann Collet | f6f3d75 | 2015-12-13 13:35:21 +0100 | [diff] [blame] | 265 | |
Yann Collet | bd7fa21 | 2017-02-26 14:43:07 -0800 | [diff] [blame] | 266 | $ECHO "- test with raw dict (content only) " |
Yann Collet | f6f3d75 | 2015-12-13 13:35:21 +0100 | [diff] [blame] | 267 | ./datagen > tmpDict |
inikep | 93fc13e | 2016-05-30 10:17:55 +0200 | [diff] [blame] | 268 | ./datagen -g1M | $MD5SUM > tmp1 |
| 269 | ./datagen -g1M | $ZSTD -D tmpDict | $ZSTD -D tmpDict -dvq | $MD5SUM > tmp2 |
Przemyslaw Skibinski | 5f5a902 | 2016-12-22 18:05:07 +0100 | [diff] [blame] | 270 | $DIFF -q tmp1 tmp2 |
Yann Collet | bd7fa21 | 2017-02-26 14:43:07 -0800 | [diff] [blame] | 271 | $ECHO "- Create first dictionary " |
| 272 | TESTFILE=../programs/zstdcli.c |
inikep | b7d3449 | 2016-08-18 15:13:41 +0200 | [diff] [blame] | 273 | $ZSTD --train *.c ../programs/*.c -o tmpDict |
| 274 | cp $TESTFILE tmp |
Yann Collet | 6381e99 | 2016-05-31 02:29:45 +0200 | [diff] [blame] | 275 | $ZSTD -f tmp -D tmpDict |
Yann Collet | 27b5ac6 | 2016-09-21 14:20:56 +0200 | [diff] [blame] | 276 | $ZSTD -d tmp.zst -D tmpDict -fo result |
Przemyslaw Skibinski | 5f5a902 | 2016-12-22 18:05:07 +0100 | [diff] [blame] | 277 | $DIFF $TESTFILE result |
Yann Collet | bd7fa21 | 2017-02-26 14:43:07 -0800 | [diff] [blame] | 278 | $ECHO "- Create second (different) dictionary " |
inikep | b7d3449 | 2016-08-18 15:13:41 +0200 | [diff] [blame] | 279 | $ZSTD --train *.c ../programs/*.c ../programs/*.h -o tmpDictC |
Yann Collet | 27b5ac6 | 2016-09-21 14:20:56 +0200 | [diff] [blame] | 280 | $ZSTD -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!" |
Yann Collet | 531a427 | 2016-06-15 19:02:11 +0200 | [diff] [blame] | 281 | $ECHO "- Create dictionary with short dictID" |
Yann Collet | 4c41d37 | 2017-03-24 18:36:56 -0700 | [diff] [blame] | 282 | $ZSTD --train *.c ../programs/*.c --dictID=1 -o tmpDict1 |
Yann Collet | 290aaa7 | 2016-05-30 21:18:52 +0200 | [diff] [blame] | 283 | cmp tmpDict tmpDict1 && die "dictionaries should have different ID !" |
Yann Collet | 27b5ac6 | 2016-09-21 14:20:56 +0200 | [diff] [blame] | 284 | $ECHO "- Create dictionary with wrong dictID parameter order (must fail)" |
| 285 | $ZSTD --train *.c ../programs/*.c --dictID -o 1 tmpDict1 && die "wrong order : --dictID must be followed by argument " |
| 286 | $ECHO "- Create dictionary with size limit" |
Yann Collet | 4c41d37 | 2017-03-24 18:36:56 -0700 | [diff] [blame] | 287 | $ZSTD --train *.c ../programs/*.c -o tmpDict2 --maxdict=4K -v |
Yann Collet | 27b5ac6 | 2016-09-21 14:20:56 +0200 | [diff] [blame] | 288 | $ECHO "- Create dictionary with wrong parameter order (must fail)" |
| 289 | $ZSTD --train *.c ../programs/*.c -o tmpDict2 --maxdict -v 4K && die "wrong order : --maxdict must be followed by argument " |
Yann Collet | 531a427 | 2016-06-15 19:02:11 +0200 | [diff] [blame] | 290 | $ECHO "- Compress without dictID" |
Yann Collet | 6381e99 | 2016-05-31 02:29:45 +0200 | [diff] [blame] | 291 | $ZSTD -f tmp -D tmpDict1 --no-dictID |
Yann Collet | 27b5ac6 | 2016-09-21 14:20:56 +0200 | [diff] [blame] | 292 | $ZSTD -d tmp.zst -D tmpDict -fo result |
Przemyslaw Skibinski | 5f5a902 | 2016-12-22 18:05:07 +0100 | [diff] [blame] | 293 | $DIFF $TESTFILE result |
Yann Collet | 27b5ac6 | 2016-09-21 14:20:56 +0200 | [diff] [blame] | 294 | $ECHO "- Compress with wrong argument order (must fail)" |
Sean Purcell | 9a38dfa | 2017-03-17 12:32:18 -0700 | [diff] [blame] | 295 | $ZSTD tmp -Df tmpDict1 -c > $INTOVOID && die "-D must be followed by dictionary name " |
Yann Collet | 531a427 | 2016-06-15 19:02:11 +0200 | [diff] [blame] | 296 | $ECHO "- Compress multiple files with dictionary" |
Yann Collet | 531a427 | 2016-06-15 19:02:11 +0200 | [diff] [blame] | 297 | rm -rf dirTestDict |
| 298 | mkdir dirTestDict |
| 299 | cp *.c dirTestDict |
inikep | b7d3449 | 2016-08-18 15:13:41 +0200 | [diff] [blame] | 300 | cp ../programs/*.c dirTestDict |
| 301 | cp ../programs/*.h dirTestDict |
Yann Collet | 94376ac | 2016-08-25 19:09:21 +0200 | [diff] [blame] | 302 | $MD5SUM dirTestDict/* > tmph1 |
| 303 | $ZSTD -f --rm dirTestDict/* -D tmpDictC |
Yann Collet | bb93d77 | 2016-08-25 22:22:50 +0200 | [diff] [blame] | 304 | $ZSTD -d --rm dirTestDict/*.zst -D tmpDictC # note : use internal checksum by default |
Dimitry Andric | 12df6da | 2016-12-12 19:22:47 +0100 | [diff] [blame] | 305 | case "$UNAME" in |
| 306 | Darwin) $ECHO "md5sum -c not supported on OS-X : test skipped" ;; # not compatible with OS-X's md5 |
Yann Collet | 94d1a93 | 2016-12-06 12:02:56 -0800 | [diff] [blame] | 307 | *) $MD5SUM -c tmph1 ;; |
| 308 | esac |
Yann Collet | 531a427 | 2016-06-15 19:02:11 +0200 | [diff] [blame] | 309 | rm -rf dirTestDict |
Yann Collet | f332ece | 2017-03-23 16:24:02 -0700 | [diff] [blame] | 310 | $ECHO "- dictionary builder on bogus input" |
| 311 | $ECHO "Hello World" > tmp |
| 312 | $ZSTD --train -q tmp && die "Dictionary training should fail : not enough input source" |
| 313 | ./datagen -P0 -g10M > tmp |
| 314 | $ZSTD --train -q tmp && die "Dictionary training should fail : source is pure noise" |
Yann Collet | 6381e99 | 2016-05-31 02:29:45 +0200 | [diff] [blame] | 315 | rm tmp* |
Yann Collet | b44be74 | 2016-03-26 20:52:14 +0100 | [diff] [blame] | 316 | |
Yann Collet | f6f3d75 | 2015-12-13 13:35:21 +0100 | [diff] [blame] | 317 | |
Nick Terrell | cbb3ce3 | 2017-01-01 01:59:51 -0500 | [diff] [blame] | 318 | $ECHO "\n**** cover dictionary tests **** " |
| 319 | |
| 320 | TESTFILE=../programs/zstdcli.c |
| 321 | ./datagen > tmpDict |
| 322 | $ECHO "- Create first dictionary" |
| 323 | $ZSTD --train --cover=k=46,d=8 *.c ../programs/*.c -o tmpDict |
| 324 | cp $TESTFILE tmp |
| 325 | $ZSTD -f tmp -D tmpDict |
| 326 | $ZSTD -d tmp.zst -D tmpDict -fo result |
| 327 | $DIFF $TESTFILE result |
| 328 | $ECHO "- Create second (different) dictionary" |
Nick Terrell | 3a1fefc | 2017-01-02 12:40:43 -0800 | [diff] [blame] | 329 | $ZSTD --train --cover=k=56,d=8 *.c ../programs/*.c ../programs/*.h -o tmpDictC |
Nick Terrell | cbb3ce3 | 2017-01-01 01:59:51 -0500 | [diff] [blame] | 330 | $ZSTD -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!" |
| 331 | $ECHO "- Create dictionary with short dictID" |
Yann Collet | 4c41d37 | 2017-03-24 18:36:56 -0700 | [diff] [blame] | 332 | $ZSTD --train --cover=k=46,d=8 *.c ../programs/*.c --dictID=1 -o tmpDict1 |
Nick Terrell | cbb3ce3 | 2017-01-01 01:59:51 -0500 | [diff] [blame] | 333 | cmp tmpDict tmpDict1 && die "dictionaries should have different ID !" |
| 334 | $ECHO "- Create dictionary with size limit" |
Yann Collet | 4c41d37 | 2017-03-24 18:36:56 -0700 | [diff] [blame] | 335 | $ZSTD --train --optimize-cover=steps=8 *.c ../programs/*.c -o tmpDict2 --maxdict=4K |
Nick Terrell | cbb3ce3 | 2017-01-01 01:59:51 -0500 | [diff] [blame] | 336 | rm tmp* |
| 337 | |
| 338 | |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 339 | $ECHO "\n**** integrity tests **** " |
Yann Collet | de95f96 | 2016-05-23 19:46:47 +0200 | [diff] [blame] | 340 | |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 341 | $ECHO "test one file (tmp1.zst) " |
Yann Collet | 1a7b8fb | 2016-06-15 23:33:38 +0200 | [diff] [blame] | 342 | ./datagen > tmp1 |
| 343 | $ZSTD tmp1 |
Yann Collet | 459a6b7 | 2016-02-15 20:37:23 +0100 | [diff] [blame] | 344 | $ZSTD -t tmp1.zst |
Yann Collet | 2d08b09 | 2016-02-16 14:42:08 +0100 | [diff] [blame] | 345 | $ZSTD --test tmp1.zst |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 346 | $ECHO "test multiple files (*.zst) " |
Yann Collet | 459a6b7 | 2016-02-15 20:37:23 +0100 | [diff] [blame] | 347 | $ZSTD -t *.zst |
Yann Collet | 24a3d90 | 2016-07-26 01:26:56 +0200 | [diff] [blame] | 348 | $ECHO "test bad files (*) " |
Yann Collet | 459a6b7 | 2016-02-15 20:37:23 +0100 | [diff] [blame] | 349 | $ZSTD -t * && die "bad files not detected !" |
Yann Collet | 24a3d90 | 2016-07-26 01:26:56 +0200 | [diff] [blame] | 350 | $ZSTD -t tmp1 && die "bad file not detected !" |
| 351 | cp tmp1 tmp2.zst |
| 352 | $ZSTD -t tmp2.zst && die "bad file not detected !" |
Yann Collet | 7adc232 | 2016-07-26 15:39:31 +0200 | [diff] [blame] | 353 | ./datagen -g0 > tmp3 |
| 354 | $ZSTD -t tmp3 && die "bad file not detected !" # detects 0-sized files as bad |
Yann Collet | b402490 | 2016-07-26 00:49:47 +0200 | [diff] [blame] | 355 | $ECHO "test --rm and --test combined " |
| 356 | $ZSTD -t --rm tmp1.zst |
| 357 | ls -ls tmp1.zst # check file is still present |
Yann Collet | deb078b | 2015-12-17 20:30:14 +0100 | [diff] [blame] | 358 | |
Yann Collet | de95f96 | 2016-05-23 19:46:47 +0200 | [diff] [blame] | 359 | |
Yann Collet | b9550d6 | 2016-10-28 14:43:24 -0700 | [diff] [blame] | 360 | $ECHO "\n**** benchmark mode tests **** " |
| 361 | |
| 362 | $ECHO "bench one file" |
| 363 | ./datagen > tmp1 |
Yann Collet | c1c040e | 2017-03-01 16:49:20 -0800 | [diff] [blame] | 364 | $ZSTD -bi0 tmp1 |
Yann Collet | b9550d6 | 2016-10-28 14:43:24 -0700 | [diff] [blame] | 365 | $ECHO "bench multiple levels" |
Yann Collet | c1c040e | 2017-03-01 16:49:20 -0800 | [diff] [blame] | 366 | $ZSTD -i0b0e3 tmp1 |
Yann Collet | b9550d6 | 2016-10-28 14:43:24 -0700 | [diff] [blame] | 367 | $ECHO "with recursive and quiet modes" |
Yann Collet | c1c040e | 2017-03-01 16:49:20 -0800 | [diff] [blame] | 368 | $ZSTD -rqi1b1e2 tmp1 |
| 369 | |
| 370 | |
| 371 | $ECHO "\n**** gzip compatibility tests **** " |
| 372 | |
| 373 | GZIPMODE=1 |
| 374 | $ZSTD --format=gzip -V || GZIPMODE=0 |
| 375 | if [ $GZIPMODE -eq 1 ]; then |
Yann Collet | 27526c7 | 2017-03-01 17:02:49 -0800 | [diff] [blame] | 376 | $ECHO "gzip support detected" |
Yann Collet | c1c040e | 2017-03-01 16:49:20 -0800 | [diff] [blame] | 377 | GZIPEXE=1 |
Yann Collet | 27526c7 | 2017-03-01 17:02:49 -0800 | [diff] [blame] | 378 | gzip -V || GZIPEXE=0 |
Yann Collet | c1c040e | 2017-03-01 16:49:20 -0800 | [diff] [blame] | 379 | if [ $GZIPEXE -eq 1 ]; then |
| 380 | ./datagen > tmp |
| 381 | $ZSTD --format=gzip -f tmp |
| 382 | gzip -t -v tmp.gz |
| 383 | gzip -f tmp |
| 384 | $ZSTD -d -f -v tmp.gz |
Nick Terrell | aa8bcf3 | 2017-03-13 18:11:07 -0700 | [diff] [blame] | 385 | rm tmp* |
Yann Collet | c1c040e | 2017-03-01 16:49:20 -0800 | [diff] [blame] | 386 | else |
| 387 | $ECHO "gzip binary not detected" |
| 388 | fi |
| 389 | else |
| 390 | $ECHO "gzip mode not supported" |
| 391 | fi |
Yann Collet | b9550d6 | 2016-10-28 14:43:24 -0700 | [diff] [blame] | 392 | |
| 393 | |
Nick Terrell | aa8bcf3 | 2017-03-13 18:11:07 -0700 | [diff] [blame] | 394 | $ECHO "\n**** gzip frame tests **** " |
| 395 | |
| 396 | if [ $GZIPMODE -eq 1 ]; then |
| 397 | ./datagen > tmp |
| 398 | $ZSTD -f --format=gzip tmp |
| 399 | $ZSTD -f tmp |
| 400 | cat tmp.gz tmp.zst tmp.gz tmp.zst | $ZSTD -d -f -o tmp |
| 401 | head -c -1 tmp.gz | $ZSTD -t && die "incomplete frame not detected !" |
| 402 | rm tmp* |
| 403 | else |
| 404 | $ECHO "gzip mode not supported" |
| 405 | fi |
| 406 | |
| 407 | |
| 408 | $ECHO "\n**** xz compatibility tests **** " |
| 409 | |
| 410 | LZMAMODE=1 |
| 411 | $ZSTD --format=xz -V || LZMAMODE=0 |
| 412 | if [ $LZMAMODE -eq 1 ]; then |
| 413 | $ECHO "xz support detected" |
| 414 | XZEXE=1 |
| 415 | xz -V && lzma -V || XZEXE=0 |
| 416 | if [ $XZEXE -eq 1 ]; then |
| 417 | ./datagen > tmp |
| 418 | $ZSTD --format=lzma -f tmp |
| 419 | $ZSTD --format=xz -f tmp |
| 420 | xz -t -v tmp.xz |
| 421 | xz -t -v tmp.lzma |
| 422 | xz -f -k tmp |
| 423 | lzma -f -k --lzma1 tmp |
| 424 | $ZSTD -d -f -v tmp.xz |
| 425 | $ZSTD -d -f -v tmp.lzma |
| 426 | rm tmp* |
| 427 | else |
| 428 | $ECHO "xz binary not detected" |
| 429 | fi |
| 430 | else |
| 431 | $ECHO "xz mode not supported" |
| 432 | fi |
| 433 | |
| 434 | |
| 435 | $ECHO "\n**** xz frame tests **** " |
| 436 | |
| 437 | if [ $LZMAMODE -eq 1 ]; then |
| 438 | ./datagen > tmp |
| 439 | $ZSTD -f --format=xz tmp |
| 440 | $ZSTD -f --format=lzma tmp |
| 441 | $ZSTD -f tmp |
| 442 | cat tmp.xz tmp.lzma tmp.zst tmp.lzma tmp.xz tmp.zst | $ZSTD -d -f -o tmp |
| 443 | head -c -1 tmp.xz | $ZSTD -t && die "incomplete frame not detected !" |
| 444 | head -c -1 tmp.lzma | $ZSTD -t && die "incomplete frame not detected !" |
| 445 | rm tmp* |
| 446 | else |
| 447 | $ECHO "xz mode not supported" |
| 448 | fi |
| 449 | |
| 450 | |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 451 | $ECHO "\n**** zstd round-trip tests **** " |
Konstantin Tokarev | 76be378 | 2015-12-08 18:36:37 +0300 | [diff] [blame] | 452 | |
| 453 | roundTripTest |
Yann Collet | 3b71925 | 2016-03-30 19:48:05 +0200 | [diff] [blame] | 454 | roundTripTest -g15K # TableID==3 |
| 455 | roundTripTest -g127K # TableID==2 |
| 456 | roundTripTest -g255K # TableID==1 |
Yann Collet | c1c040e | 2017-03-01 16:49:20 -0800 | [diff] [blame] | 457 | roundTripTest -g522K # TableID==0 |
| 458 | roundTripTest -g519K 6 # greedy, hash chain |
| 459 | roundTripTest -g517K 16 # btlazy2 |
| 460 | roundTripTest -g516K 19 # btopt |
Yann Collet | 459a6b7 | 2016-02-15 20:37:23 +0100 | [diff] [blame] | 461 | |
Sean Purcell | eb70d21 | 2017-04-11 17:15:13 -0700 | [diff] [blame^] | 462 | fileRoundTripTest -g500K |
| 463 | |
Yann Collet | 459a6b7 | 2016-02-15 20:37:23 +0100 | [diff] [blame] | 464 | rm tmp* |
Konstantin Tokarev | 76be378 | 2015-12-08 18:36:37 +0300 | [diff] [blame] | 465 | |
Konstantin Tokarev | 0b570b5 | 2015-12-08 18:47:43 +0300 | [diff] [blame] | 466 | if [ "$1" != "--test-large-data" ]; then |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 467 | $ECHO "Skipping large data tests" |
Konstantin Tokarev | 0b570b5 | 2015-12-08 18:47:43 +0300 | [diff] [blame] | 468 | exit 0 |
| 469 | fi |
| 470 | |
Konstantin Tokarev | 76be378 | 2015-12-08 18:36:37 +0300 | [diff] [blame] | 471 | roundTripTest -g270000000 1 |
| 472 | roundTripTest -g270000000 2 |
| 473 | roundTripTest -g270000000 3 |
| 474 | |
| 475 | roundTripTest -g140000000 -P60 4 |
| 476 | roundTripTest -g140000000 -P60 5 |
| 477 | roundTripTest -g140000000 -P60 6 |
| 478 | |
| 479 | roundTripTest -g70000000 -P70 7 |
| 480 | roundTripTest -g70000000 -P70 8 |
| 481 | roundTripTest -g70000000 -P70 9 |
| 482 | |
| 483 | roundTripTest -g35000000 -P75 10 |
| 484 | roundTripTest -g35000000 -P75 11 |
| 485 | roundTripTest -g35000000 -P75 12 |
Konstantin Tokarev | d66db2f | 2015-12-08 18:11:10 +0300 | [diff] [blame] | 486 | |
Konstantin Tokarev | 2b46584 | 2015-12-08 19:36:42 +0300 | [diff] [blame] | 487 | roundTripTest -g18000000 -P80 13 |
| 488 | roundTripTest -g18000000 -P80 14 |
| 489 | roundTripTest -g18000000 -P80 15 |
| 490 | roundTripTest -g18000000 -P80 16 |
| 491 | roundTripTest -g18000000 -P80 17 |
| 492 | |
| 493 | roundTripTest -g50000000 -P94 18 |
| 494 | roundTripTest -g50000000 -P94 19 |
| 495 | |
| 496 | roundTripTest -g99000000 -P99 20 |
Yann Collet | ecabfe3 | 2016-03-20 16:20:06 +0100 | [diff] [blame] | 497 | roundTripTest -g6000000000 -P99 1 |
Yann Collet | 459a6b7 | 2016-02-15 20:37:23 +0100 | [diff] [blame] | 498 | |
Sean Purcell | eb70d21 | 2017-04-11 17:15:13 -0700 | [diff] [blame^] | 499 | fileRoundTripTest -g4193M -P99 1 |
| 500 | |
Yann Collet | 459a6b7 | 2016-02-15 20:37:23 +0100 | [diff] [blame] | 501 | rm tmp* |