From 521b0108dd2e4e61d36e10b6f55232f308e85168 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 8 Feb 2016 01:27:59 +0100 Subject: [PATCH] Added PowerPC tests with Qemu user more Shortened tests for emulated platforms removed date from CLI for reproducibility --- .travis.yml | 7 ++----- Makefile | 26 +++++++++++++++++++++++++- programs/Makefile | 3 ++- programs/zstdcli.c | 2 +- 4 files changed, 30 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8663b286..b67b986e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,21 +2,18 @@ language: c before_install: - sudo apt-get update -qq - - sudo apt-get install -qq gcc-arm-linux-gnueabi - sudo apt-get install -qq clang - sudo apt-get install -qq g++-multilib - sudo apt-get install -qq gcc-multilib - sudo apt-get install -qq valgrind - - sudo apt-get install -qq qemu - - sudo apt-get install -qq binfmt-support - - sudo apt-get install -qq qemu-user-static env: - ZSTD_TRAVIS_CI_ENV=travis-install - ZSTD_TRAVIS_CI_ENV=cmaketest - ZSTD_TRAVIS_CI_ENV=clangtest - ZSTD_TRAVIS_CI_ENV=gpptest - - ZSTD_TRAVIS_CI_ENV=armtest + - ZSTD_TRAVIS_CI_ENV=armtest-w-install + - ZSTD_TRAVIS_CI_ENV=ppctest-w-install - ZSTD_TRAVIS_CI_ENV=test - ZSTD_TRAVIS_CI_ENV="-C programs test32" - ZSTD_TRAVIS_CI_ENV="-C programs test-zstd_nolegacy" diff --git a/Makefile b/Makefile index 60a083fd..566f82b0 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,31 @@ gpptest: clean armtest: clean # $(MAKE) -C $(ZSTDDIR) all CC=arm-linux-gnueabi-gcc MOREFLAGS="-Werror" $(MAKE) -C $(PRGDIR) datagen # use native, faster - $(MAKE) -C $(PRGDIR) test CC=arm-linux-gnueabi-gcc MOREFLAGS=-static # MOREFLAGS="-Werror -static" + $(MAKE) -C $(PRGDIR) test CC=arm-linux-gnueabi-gcc ZSTDRTTEST= MOREFLAGS=-static # MOREFLAGS="-Werror -static" + +# for Travis CI +arminstall: clean + sudo apt-get install -q qemu + sudo apt-get install -q binfmt-support + sudo apt-get install -q qemu-user-static + sudo apt-get install -q gcc-arm-linux-gnueabi + +# for Travis CI +armtest-w-install: clean arminstall armtest + +ppctest: clean + $(MAKE) -C $(PRGDIR) datagen # use native, faster + $(MAKE) -C $(PRGDIR) test CC=powerpc-linux-gnu-gcc ZSTDRTTEST= MOREFLAGS=-static # MOREFLAGS="-Werror -static" + +# for Travis CI +ppcinstall: clean + sudo apt-get install -q qemu + sudo apt-get install -q binfmt-support + sudo apt-get install -q qemu-user-static + sudo apt-get install -q gcc-powerpc-linux-gnu + +# for Travis CI +ppctest-w-install: clean ppcinstall ppctest usan: clean $(MAKE) test CC=clang MOREFLAGS="-g -fsanitize=undefined" diff --git a/programs/Makefile b/programs/Makefile index 3db80a7c..a23b2f7f 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -76,6 +76,7 @@ endif ZBUFFTEST = -T2mn FUZZERTEST= -T5mn +ZSTDRTTEST= --test-large-data .PHONY: default all clean install uninstall test test32 test-all @@ -179,7 +180,7 @@ test32: test-zstd32 test-fullbench32 test-fuzzer32 test-zbuff32 test-all: test test32 valgrindTest zstd-playTests: datagen - ZSTD=$(ZSTD) ./playTests.sh --test-large-data + ZSTD=$(ZSTD) ./playTests.sh $(ZSTDRTTEST) test-zstd: ZSTD = ./zstd test-zstd: zstd zstd-playTests diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 1fe1b8b3..89027afd 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -78,7 +78,7 @@ # define ZSTD_VERSION "v" EXPAND_AND_QUOTE(ZSTD_VERSION_MAJOR) "." EXPAND_AND_QUOTE(ZSTD_VERSION_MINOR) "." EXPAND_AND_QUOTE(ZSTD_VERSION_RELEASE) #endif #define AUTHOR "Yann Collet" -#define WELCOME_MESSAGE "*** %s %i-bits %s, by %s (%s) ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), ZSTD_VERSION, AUTHOR, __DATE__ +#define WELCOME_MESSAGE "*** %s %i-bits %s, by %s ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), ZSTD_VERSION, AUTHOR #define ZSTD_EXTENSION ".zst" #define ZSTD_CAT "zstdcat" #define ZSTD_UNZSTD "unzstd"