mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: Thread Sanitizer will find bugs which might be missed otherwise. Modifications: When running docker image for 1604/5.1 tests and h2spec are both compiled with --sanitize=thread Result: Tests are run with thread sanitizer turned on. Co-authored-by: Johannes Weiss <johannesweiss@apple.com>
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
# this file is not designed to be run directly
|
|
# instead, use the docker-compose.<os>.<swift> files
|
|
# eg docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.1804.42.yaml run test
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
runtime-setup:
|
|
image: swift-nio-http2:default
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
|
|
common: &common
|
|
image: swift-nio-http2:default
|
|
depends_on: [runtime-setup]
|
|
volumes:
|
|
- ~/.ssh:/root/.ssh
|
|
- ..:/code:z
|
|
working_dir: /code
|
|
cap_drop:
|
|
- CAP_NET_RAW
|
|
- CAP_NET_BIND_SERVICE
|
|
|
|
sanity:
|
|
<<: *common
|
|
command: /bin/bash -xcl "./scripts/sanity.sh"
|
|
|
|
unit-tests:
|
|
<<: *common
|
|
command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors"
|
|
|
|
integration-tests:
|
|
<<: *common
|
|
command: /bin/bash -xcl "./scripts/integration_tests.sh"
|
|
|
|
performance-test:
|
|
<<: *common
|
|
command: /bin/bash -xcl "swift build -c release && ./.build/release/NIOHTTP2PerformanceTester"
|
|
|
|
h2spec:
|
|
<<: *common
|
|
command: /bin/bash -xcl "./scripts/test_h2spec.sh"
|
|
|
|
test:
|
|
<<: *common
|
|
command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors $${SANITIZER_ARG-} && ./scripts/integration_tests.sh && ./scripts/test_h2spec.sh $${SANITIZER_ARG-}"
|
|
|
|
# util
|
|
|
|
shell:
|
|
<<: *common
|
|
entrypoint: /bin/bash
|