]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Suffix list test
authorGeorge Lu <gclu@fb.com>
Fri, 1 Jun 2018 17:43:06 +0000 (10:43 -0700)
committerGeorge Lu <gclu@fb.com>
Fri, 1 Jun 2018 17:43:06 +0000 (10:43 -0700)
tests/playTests.sh

index 200de4bd93fcf890ec87a3f48345e2e31fa68bd5..e2dbccbf578d01c079707d27ad425715dec9ec48 100755 (executable)
@@ -620,6 +620,23 @@ else
     $ECHO "lz4 mode not supported"
 fi
 
+$ECHO "\n===> suffix list test"
+
+$ZSTD -d tmp.abc 2> tmplg || echo 
+
+if [ $GZIPMODE -ne 1 ]; then 
+    grep ".gz" tmplg > $INTOVOID && die "Unsupported suffix listed"
+fi
+
+if [ $LZMAMODE -ne 1 ]; then 
+    grep ".lzma" tmplg > $INTOVOID && die "Unsupported suffix listed"
+    grep ".xz" tmplg > $INTOVOID && die "Unsupported suffix listed"
+fi
+
+if [ $LZ4MODE -ne 1 ]; then
+    grep ".lz4" tmplg > $INTOVOID && die "Unsupported suffix listed"
+fi
+
 $ECHO "\n===>  zstd round-trip tests "
 
 roundTripTest