]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed benchmark mode typo .
authorYann Collet <cyan@fb.com>
Fri, 28 Oct 2016 21:43:24 +0000 (14:43 -0700)
committerYann Collet <cyan@fb.com>
Fri, 28 Oct 2016 21:43:24 +0000 (14:43 -0700)
added benchmark mode tests

programs/zstdcli.c
tests/playTests.sh

index c9d2cf5dbcd35a1dcb074662e87162523ca849c9..db4d6acc694182972041b11dd12186243d37d3ac 100644 (file)
@@ -369,7 +369,7 @@ int main(int argCount, const char* argv[])
 
 #ifndef ZSTD_NOBENCH
                         /* Benchmark */
-                    case 'b': operation=zom_train; argument++; break;
+                    case 'b': operation=zom_bench; argument++; break;
 
                         /* range bench (benchmark only) */
                     case 'e':
index c5a58d628b8bd22f492b97d55633a411394ceb62..ad70538a31fc017ef308acb8c8d25a2833c49540 100755 (executable)
@@ -258,6 +258,17 @@ $ZSTD -t --rm tmp1.zst
 ls -ls tmp1.zst  # check file is still present
 
 
+$ECHO "\n**** benchmark mode tests **** "
+
+$ECHO "bench one file"
+./datagen > tmp1
+$ZSTD -bi1 tmp1
+$ECHO "bench multiple levels"
+$ZSTD -i1b1e3 tmp1
+$ECHO "with recursive and quiet modes"
+$ZSTD -rqi1b1e3 tmp1
+
+
 $ECHO "\n**** zstd round-trip tests **** "
 
 roundTripTest