summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorgstedman <gabriel.stedman@zynstra.com>2019-05-16 14:12:00 (GMT)
committergabrielstedman <gabriel.stedman@zynstra.com>2019-05-16 19:53:29 (GMT)
commit81081f9b2d6e114b06f7a3eecc8e6a20bb88e035 (patch)
treeffb6d07b2c20d700b425cc0a38cc0aec8e7489bd /tests
parent98a86c8ef6ea3202f8cb52772144d0f744bd5c73 (diff)
downloadlz4-81081f9b2d6e114b06f7a3eecc8e6a20bb88e035.zip
lz4-81081f9b2d6e114b06f7a3eecc8e6a20bb88e035.tar.gz
lz4-81081f9b2d6e114b06f7a3eecc8e6a20bb88e035.tar.bz2
List mode improvements.
Improve formatting Include static assert Use UTIL_fseek to handle potential fseek limitation Be explicit when refusing to read from stdin Properly free dctx after use Include valgrind tests
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile2
-rw-r--r--tests/test-lz4-list.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 3d3cfa2..dbb7bd5 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -466,6 +466,8 @@ test-mem: lz4 datagen fuzzer frametest fullbench
valgrind --leak-check=yes --error-exitcode=1 $(LZ4) -bi1 ftmdg7M
valgrind --leak-check=yes --error-exitcode=1 ./fullbench -i1 ftmdg7M ftmdg16K2
valgrind --leak-check=yes --error-exitcode=1 $(LZ4) -B4D -f -vq ftmdg7M $(VOID)
+ valgrind --leak-check=yes --error-exitcode=1 $(LZ4) --list -m ftm*.lz4
+ valgrind --leak-check=yes --error-exitcode=1 $(LZ4) --list -m -v ftm*.lz4
$(RM) ftm*
valgrind --leak-check=yes --error-exitcode=1 ./fuzzer -i64 -t1
valgrind --leak-check=yes --error-exitcode=1 ./frametest -i256
diff --git a/tests/test-lz4-list.py b/tests/test-lz4-list.py
index 4738e99..ce89757 100644
--- a/tests/test-lz4-list.py
+++ b/tests/test-lz4-list.py
@@ -8,9 +8,9 @@ import unittest
SIZES = [3, 11] # Always 2 sizes
MIB = 1048576
-LZ4 = os.getcwd() + "/../lz4"
+LZ4 = os.path.dirname(os.path.realpath(__file__)) + "/../lz4"
if not os.path.exists(LZ4):
- LZ4 = os.getcwd() + "/../programs/lz4"
+ LZ4 = os.path.dirname(os.path.realpath(__file__)) + "/../programs/lz4"
TEMP = tempfile.gettempdir()