]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
made changes to cli test so it runs properly
authorPaul Cruz <paulcruz74@fb.com>
Thu, 22 Jun 2017 22:13:41 +0000 (15:13 -0700)
committerPaul Cruz <paulcruz74@fb.com>
Thu, 22 Jun 2017 22:13:41 +0000 (15:13 -0700)
tests/Makefile

index 4789b1ccf5d64cb2f62ed1905ad229316adb28f3..033e3f78270621e5a805f714d2771313e12db1ad 100644 (file)
@@ -344,33 +344,32 @@ test-decodecorpus-cli: decodecorpus
        @echo "\n ---- decodecorpus basic cli tests ----"
        @mkdir testdir
        ./decodecorpus -n5 -otestdir -ptestdir
-       @cd testdir \
-       zstd -d z000000.zst -o tmp0 \
-       zstd -d z000001.zst -o tmp1 \
-       zstd -d z000002.zst -o tmp2 \
-       zstd -d z000003.zst -o tmp3 \
-       zstd -d z000004.zst -o tmp4 \
-       diff z000000 tmp0 \
-       diff z000001 tmp1 \
-       diff z000002 tmp2 \
-       diff z000003 tmp3 \
-       diff z000004 tmp4 \
-       @rm ./* \
-       @cd ..
-
+       @cd testdir && \
+       $(ZSTD) -d z000000.zst -o tmp0 && \
+       $(ZSTD) -d z000001.zst -o tmp1 && \
+       $(ZSTD) -d z000002.zst -o tmp2 && \
+       $(ZSTD) -d z000003.zst -o tmp3 && \
+       $(ZSTD) -d z000004.zst -o tmp4 && \
+       diff z000000 tmp0 && \
+       diff z000001 tmp1 && \
+       diff z000002 tmp2 && \
+       diff z000003 tmp3 && \
+       diff z000004 tmp4 && \
+       rm ./* && \
+       cd ..
        ./decodecorpus -n5 -otestdir -ptestdir --use-dict=1MB
-       @cd testdir \
-       zstd -d z000000.zst -D dictionary -o tmp0 \
-       zstd -d z000001.zst -D dictionary -o tmp1 \
-       zstd -d z000002.zst -D dictionary -o tmp2 \
-       zstd -d z000003.zst -D dictionary -o tmp3 \
-       zstd -d z000004.zst -D dictionary -o tmp4 \
-       diff z000000 tmp0 \
-       diff z000001 tmp1 \
-       diff z000002 tmp2 \
-       diff z000003 tmp3 \
-       diff z000004 tmp4 \
-       @cd .. 
+       @cd testdir && \
+       $(ZSTD) -d z000000.zst -D dictionary -o tmp0 && \
+       $(ZSTD) -d z000001.zst -D dictionary -o tmp1 && \
+       $(ZSTD) -d z000002.zst -D dictionary -o tmp2 && \
+       $(ZSTD) -d z000003.zst -D dictionary -o tmp3 && \
+       $(ZSTD) -d z000004.zst -D dictionary -o tmp4 && \
+       diff z000000 tmp0 && \
+       diff z000001 tmp1 && \
+       diff z000002 tmp2 && \
+       diff z000003 tmp3 && \
+       diff z000004 tmp4 && \
+       @cd ..
        @rm -rf testdir
 
 test-pool: pool