Use lz4 binary to check output
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 18 Jun 2015 03:37:19 +0000 (23:37 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 18 Jun 2015 03:45:15 +0000 (23:45 -0400)
Makefile
examples/Makefile

index ce5e9fc..863c866 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -119,6 +119,7 @@ versionstest: clean
 
 streaming-examples:
        cd lib; $(MAKE) -e
+       cd programs; $(MAKE) -e lz4
        cd examples; $(MAKE) -e test
 
 prg-travis:
index 5d8bb0f..b7f6eca 100644 (file)
@@ -33,6 +33,7 @@ FLAGS  := -I../lib $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
 
 TESTFILE= Makefile
 LZ4DIR := ../lib
+LZ4 = ../programs/lz4
 
 
 # Define *.exe as extension for Windows systems
@@ -74,6 +75,7 @@ test : all
        ./ringBufferHC$(EXT) $(TESTFILE)
        ./lineCompress$(EXT) $(TESTFILE)
        LD_LIBRARY_PATH=$(LZ4DIR) ./frameCompress$(EXT) $(TESTFILE)
+       $(LZ4) -vt $(TESTFILE).lz4
 
 clean:
        @rm -f core *.o *.dec *-0 *-9 *-8192 *.lz4s \