]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Add Test 1618/head
authorW. Felix Handte <w@felixhandte.com>
Fri, 24 May 2019 21:21:44 +0000 (17:21 -0400)
committerW. Felix Handte <w@felixhandte.com>
Fri, 24 May 2019 21:21:44 +0000 (17:21 -0400)
tests/Makefile

index f11b731835ea34f69ec991d25cc41f2f01e64e72..4ee684e08709db67f7e7ae0ee0ec7daef89cc59f 100644 (file)
@@ -359,6 +359,9 @@ test-zstdgrep: gzstd
        -echo 'hello world' > test.txt && $(PRGDIR)/zstd test.txt
        env ZCAT=/tmp/zstdcat $(PRGDIR)/zstdgrep hello test.txt.zst
        env ZCAT=/tmp/zstdcat $(PRGDIR)/zstdgrep weird test.txt.zst && return 1 || return 0
+       -echo 'hello' > pattern.txt
+       env ZCAT=/tmp/zstdcat $(PRGDIR)/zstdgrep -f pattern.txt test.txt.zst
+       $(RM) test.txt test.txt.zst pattern.txt
 
 test-fullbench: fullbench datagen
        $(QEMU_SYS) ./fullbench -i1