enable TSan (#1130)

Motivation:

TSan is now supported in Swift 5.1 for Linux.

Modifications:

Enable TSan on 5.1.

Result:

More validation in the tests.
This commit is contained in:
Johannes Weiss 2019-09-09 09:27:56 +01:00 committed by Cory Benfield
parent dc92174424
commit b6067bd531
2 changed files with 8 additions and 7 deletions

View File

@ -28,6 +28,7 @@ services:
- MAX_ALLOCS_ALLOWED_creating_10000_headers=10100
- MAX_ALLOCS_ALLOWED_scheduling_10000_executions=20150
- MAX_ALLOCS_ALLOWED_modifying_1000_circular_buffer_elements=50
- SANITIZER_ARG=--sanitize=thread
performance-test:
image: swift-nio:16.04-5.1

View File

@ -21,23 +21,23 @@ services:
sanity:
<<: *common
command: /bin/bash -cl "./scripts/sanity.sh"
command: /bin/bash -xcl "./scripts/sanity.sh"
unit-tests:
<<: *common
command: /bin/bash -cl "swift test -Xswiftc -warnings-as-errors"
command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors"
integration-tests:
<<: *common
command: /bin/bash -cl "./scripts/integration_tests.sh"
command: /bin/bash -xcl "./scripts/integration_tests.sh"
test:
<<: *common
command: /bin/bash -cl "swift test -Xswiftc -warnings-as-errors && ./scripts/integration_tests.sh"
command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors $${SANITIZER_ARG-} && ./scripts/integration_tests.sh"
performance-test:
<<: *common
command: /bin/bash -cl "swift build -c release && ./.build/release/NIOPerformanceTester"
command: /bin/bash -xcl "swift build -c release && ./.build/release/NIOPerformanceTester"
# util
@ -52,11 +52,11 @@ services:
tty: true
ports:
- "9999:9999"
command: /bin/bash -cl "swift run NIOEchoServer 0.0.0.0 9999"
command: /bin/bash -xcl "swift run NIOEchoServer 0.0.0.0 9999"
http:
<<: *common
tty: true
ports:
- "8888:8888"
command: /bin/bash -cl "swift run NIOHTTP1Server 0.0.0.0 8888"
command: /bin/bash -xcl "swift run NIOHTTP1Server 0.0.0.0 8888"