fe11e0b142
Add forward/backward compatibility test between all versions - Add new Makefile target "versionstest". - Standard test procedure like "make versionstest && make clean" works properly. test/test-lz4-versions.py - This script creates test/lz4test and checkout all Release tagged versions. After that, compile all versions of lz4c and lz4c32 and compress/decompress between all versions. - This test clones entire git repository to checkout all tags. - Since Travis's default command does not clone entire repository, we could not checkout all tags from Travis' default clone. - After that, test script shows all unique .lz4 files. In this list, 'r999' means 'head' of current working copy.
41 lines
1.4 KiB
Makefile
41 lines
1.4 KiB
Makefile
# ##########################################################################
|
|
# LZ4 tests - Makefile
|
|
# Copyright (C) Yann Collet 2011-2015
|
|
#
|
|
# GPL v2 License
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License along
|
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
#
|
|
# You can contact the author at :
|
|
# - LZ4 source repository : https://github.com/Cyan4973/lz4
|
|
# - LZ4 public forum : https://groups.google.com/forum/#!forum/lz4c
|
|
# ##########################################################################
|
|
# versionstest : Compatibility test between all LZ4 versions
|
|
# ##########################################################################
|
|
|
|
PYTHON?= python3
|
|
TESTDIR := lz4test
|
|
|
|
default: all
|
|
|
|
all: versionstest
|
|
|
|
versionstest:
|
|
$(PYTHON) test-lz4-versions.py
|
|
|
|
clean:
|
|
@rm -fR $(TESTDIR)
|
|
@echo Cleaning completed
|