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:
parent
dc92174424
commit
b6067bd531
|
@ -28,6 +28,7 @@ services:
|
||||||
- MAX_ALLOCS_ALLOWED_creating_10000_headers=10100
|
- MAX_ALLOCS_ALLOWED_creating_10000_headers=10100
|
||||||
- MAX_ALLOCS_ALLOWED_scheduling_10000_executions=20150
|
- MAX_ALLOCS_ALLOWED_scheduling_10000_executions=20150
|
||||||
- MAX_ALLOCS_ALLOWED_modifying_1000_circular_buffer_elements=50
|
- MAX_ALLOCS_ALLOWED_modifying_1000_circular_buffer_elements=50
|
||||||
|
- SANITIZER_ARG=--sanitize=thread
|
||||||
|
|
||||||
performance-test:
|
performance-test:
|
||||||
image: swift-nio:16.04-5.1
|
image: swift-nio:16.04-5.1
|
||||||
|
|
|
@ -21,23 +21,23 @@ services:
|
||||||
|
|
||||||
sanity:
|
sanity:
|
||||||
<<: *common
|
<<: *common
|
||||||
command: /bin/bash -cl "./scripts/sanity.sh"
|
command: /bin/bash -xcl "./scripts/sanity.sh"
|
||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
<<: *common
|
<<: *common
|
||||||
command: /bin/bash -cl "swift test -Xswiftc -warnings-as-errors"
|
command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors"
|
||||||
|
|
||||||
integration-tests:
|
integration-tests:
|
||||||
<<: *common
|
<<: *common
|
||||||
command: /bin/bash -cl "./scripts/integration_tests.sh"
|
command: /bin/bash -xcl "./scripts/integration_tests.sh"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
<<: *common
|
<<: *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:
|
performance-test:
|
||||||
<<: *common
|
<<: *common
|
||||||
command: /bin/bash -cl "swift build -c release && ./.build/release/NIOPerformanceTester"
|
command: /bin/bash -xcl "swift build -c release && ./.build/release/NIOPerformanceTester"
|
||||||
|
|
||||||
# util
|
# util
|
||||||
|
|
||||||
|
@ -52,11 +52,11 @@ services:
|
||||||
tty: true
|
tty: true
|
||||||
ports:
|
ports:
|
||||||
- "9999:9999"
|
- "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:
|
http:
|
||||||
<<: *common
|
<<: *common
|
||||||
tty: true
|
tty: true
|
||||||
ports:
|
ports:
|
||||||
- "8888:8888"
|
- "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"
|
||||||
|
|
Loading…
Reference in New Issue