]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
make test : removed zstreamtest unit tests for variants
authorYann Collet <cyan@fb.com>
Fri, 29 Sep 2017 01:34:38 +0000 (18:34 -0700)
committerYann Collet <cyan@fb.com>
Fri, 29 Sep 2017 01:34:38 +0000 (18:34 -0700)
slightly reduced time to create dictionary
at beginning of unit tests

tests/Makefile
tests/zstreamtest.c

index fc62b9e261f1e3f4fcc5522c4170b6dbb5c0d7cb..95c33bc4b3744690e3f55753d643e2c0c2aa9322 100644 (file)
@@ -316,9 +316,9 @@ test-zbuff32: zbufftest32
 
 test-zstream: zstreamtest
        $(QEMU_SYS) ./zstreamtest $(ZSTREAM_TESTTIME) $(FUZZER_FLAGS)
-       $(QEMU_SYS) ./zstreamtest --mt $(ZSTREAM_TESTTIME) $(FUZZER_FLAGS)
-       $(QEMU_SYS) ./zstreamtest --newapi $(ZSTREAM_TESTTIME) $(FUZZER_FLAGS)
-       $(QEMU_SYS) ./zstreamtest --opaqueapi $(ZSTREAM_TESTTIME) $(FUZZER_FLAGS)
+       $(QEMU_SYS) ./zstreamtest --mt -t1 $(ZSTREAM_TESTTIME) $(FUZZER_FLAGS)
+       $(QEMU_SYS) ./zstreamtest --newapi -t1 $(ZSTREAM_TESTTIME) $(FUZZER_FLAGS)
+       $(QEMU_SYS) ./zstreamtest --opaqueapi -t1 $(ZSTREAM_TESTTIME) $(FUZZER_FLAGS)
 
 test-zstream32: zstreamtest32
        $(QEMU_SYS) ./zstreamtest32 $(ZSTREAM_TESTTIME) $(FUZZER_FLAGS)
index 16f51442594d30c770cf1cc17c74c159110020f0..8b4c836940a63951ba8f3bdbc0b2c19d321c0d53 100644 (file)
@@ -175,7 +175,8 @@ static int basicUnitTests(U32 seed, double compressibility, ZSTD_customMem custo
     RDG_genBuffer(CNBuffer, CNBufferSize, compressibility, 0., seed);
 
     /* Create dictionary */
-    dictionary = FUZ_createDictionary(CNBuffer, CNBufferSize, 4 KB, 40 KB);
+    DISPLAYLEVEL(3, "creating dictionary for unit tests \n");
+    dictionary = FUZ_createDictionary(CNBuffer, CNBufferSize / 2, 8 KB, 40 KB);
     if (!dictionary.start) {
         DISPLAY("Error creating dictionary, aborting \n");
         goto _output_error;