fixed versionsTest

This commit is contained in:
Yann Collet 2016-11-17 14:54:30 -08:00
parent 7d53548473
commit c0e55ec05f
4 changed files with 7 additions and 5 deletions

View File

@ -21,7 +21,7 @@ matrix:
# 14.04 LTS Server Edition 64 bit
- env: Ubu=14.04 Cmd='make -C tests test-lz4c32 test-fullbench32 clean versionsTest' COMPILER=cc
- env: Ubu=14.04 Cmd='make -C tests test-lz4c32 test-fullbench32 versionsTest' COMPILER=cc
dist: trusty
sudo: required
addons:

View File

@ -68,13 +68,14 @@ lz4-release: lz4
lz4c : $(LZ4DIR)/lz4.o $(LZ4DIR)/lz4hc.o $(LZ4DIR)/lz4frame.o $(LZ4DIR)/xxhash.o bench.o lz4io.o lz4cli.c datagen.o
$(CC) $(FLAGS) -DENABLE_LZ4C_LEGACY_OPTIONS $^ -o $@$(EXT)
lz4c32: CFLAGS += -m32
lz4c32: CFLAGS+=-m32
lz4c32: lz4
@cp lz4$(EXT) lz4c32$(EXT)
clean:
@$(MAKE) -C $(LZ4DIR) $@ > $(VOID)
@$(RM) core *.o *.test tmp* \
lz4$(EXT) lz4c$(EXT)
lz4$(EXT) lz4c$(EXT) lz4c32$(EXT)
@echo Cleaning completed

View File

@ -114,6 +114,7 @@ clean:
@rm -fR $(TESTDIR)
@echo Cleaning completed
.PHONY: versionsTest
versionsTest:
$(PYTHON) test-lz4-versions.py

View File

@ -84,11 +84,11 @@ if __name__ == '__main__':
os.chdir(clone_dir)
git(['--work-tree=' + r_dir, 'checkout', tag, '--', '.'], False)
os.chdir(r_dir + '/programs') # /path/to/lz4/lz4test/<TAG>/programs
make(['clean', 'lz4c', 'lz4c32'], False)
else:
os.chdir(programs_dir)
make(['lz4c', 'lz4c32'], False)
make(['clean', 'lz4c'], False)
shutil.copy2('lz4c', dst_lz4c)
make(['clean', 'lz4c32'], False)
shutil.copy2('lz4c32', dst_lz4c32)
# Compress test.dat by all released lz4c and lz4c32