]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[pzstd] Add asan and tsan tests to travis
authorNick Terrell <terrelln@fb.com>
Fri, 7 Oct 2016 04:32:06 +0000 (21:32 -0700)
committerNick Terrell <terrelln@fb.com>
Fri, 14 Oct 2016 22:26:55 +0000 (15:26 -0700)
gcc-6 tsan is buggy.
It fails to use the correct linker.
It is also broken with `-pie` with linux kernels newer than 4.1, but previous versions require `-pie`...

.travis.yml

index f328f480d6408af14cd0bffc5d21f9ff6d32e786..0c89607250f1a087dda5eb79ff364f993d211e4b 100644 (file)
@@ -55,6 +55,20 @@ matrix:
           packages:
             - libc6-dev-i386
             - gcc-multilib
+    - os: linux
+      sudo: required
+      install:
+        - export CXX="g++-6" CC="gcc-6"
+        - export LDFLAGS="-fuse-ld=gold"
+        - export TESTFLAGS='--gtest_filter=-*ExtremelyLarge*'
+      env: PLATFORM="Ubuntu 12.04" CMD='cd contrib/pzstd && make googletest && make tsan && make check && make clean && make asan && make check && make clean && cd ../..'
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+          packages:
+            - gcc-6
+            - g++-6
     # Ubuntu 14.04 LTS Server Edition 64 bit
     - os: linux
       dist: trusty