From: Przemyslaw Skibinski Date: Tue, 21 Feb 2017 21:48:04 +0000 (+0100) Subject: travis.yml: added uasan-test and uasan-test32 X-Git-Tag: v1.1.4~1^2~52^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a51c692184e524d1f3bb167750c0e378f7c8f35;p=thirdparty%2Fzstd.git travis.yml: added uasan-test and uasan-test32 --- diff --git a/.travis.yml b/.travis.yml index cf3bbb5bf..dba15d7ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,48 +8,32 @@ matrix: # Ubuntu 14.04 LTS Server Edition 64 bit - - env: Ubu=14.04 Cmd='LDFLAGS=-fuse-ld=gold CFLAGS=-Og make test CC=gcc-6 MOREFLAGS="-fsanitize=address -fsanitize=undefined"' - os: linux - dist: trusty - sudo: required - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - gcc-6 - - - env: Ubu=14.04 Cmd='LDFLAGS=-fuse-ld=gold CFLAGS=-Og make -C tests test32 CC=gcc-6 MOREFLAGS="-fsanitize=address -fsanitize=undefined"' - os: linux + - env: Ubu=14.04 Cmd='make uasan-test && cd contrib/pzstd && make test-pzstd && make test-pzstd32 && make test-pzstd-tsan && make test-pzstd-asan' dist: trusty sudo: required + install: + - export CXX="g++-6" CC="gcc-6" addons: apt: sources: - ubuntu-toolchain-r-test packages: - libc6-dev-i386 - - gcc-multilib + - g++-multilib - gcc-6 - - gcc-6-multilib + - g++-6 - - env: Ubu=14.04 Cmd='cd contrib/pzstd && make test-pzstd && make test-pzstd32 && make test-pzstd-tsan && make test-pzstd-asan' - os: linux + - env: Ubu=14.04 Cmd='CC=gcc-6 make uasan-test32 && make clean zlibwrapper && make -C tests clean test-zstd-nolegacy versionsTest' dist: trusty sudo: required - install: - - export CXX="g++-6" CC="gcc-6" addons: apt: sources: - ubuntu-toolchain-r-test packages: - libc6-dev-i386 - - g++-multilib + - gcc-multilib - gcc-6 - - gcc-6-multilib - - g++-6 - - g++-6-multilib - env: Ubu=14.04 Cmd="make armtest && make clean && make aarch64test" dist: trusty @@ -76,7 +60,6 @@ matrix: # other feature branches => short tests - env: Ubu=14.04 Cmd='make lib && CFLAGS="-O1 -g" make -C zlibWrapper valgrindTest && make -C tests valgrindTest' - os: linux dist: trusty sudo: required addons: @@ -84,8 +67,7 @@ matrix: packages: - valgrind - - env: Ubu=14.04 Cmd="make zlibwrapper && make clean && make -C tests test-zstd-nolegacy && make clean && make -C tests test32 versionsTest" - os: linux + - env: Ubu=14.04 Cmd="make -C tests test32" dist: trusty sudo: required addons: diff --git a/Makefile b/Makefile index d86db7cb3..128c72bb0 100644 --- a/Makefile +++ b/Makefile @@ -143,6 +143,9 @@ asan32: clean uasan: clean $(MAKE) test CC=clang MOREFLAGS="-g -fsanitize=address -fsanitize=undefined" +uasan-%: clean + LDFLAGS=-fuse-ld=gold CFLAGS="-Og -fsanitize=address -fsanitize=undefined" $(MAKE) -C $(TESTDIR) $* + endif