mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
f76a2bfa6675bb6de3143194099ae8e8a3d73c32
motivation: generated linux tests dont have consitent sorting in different OSs changes: * change test generator to sort tests and imports in memory before writing to file * update LinuxMain to the sorted version
@linux
creating a docker image for linux
# create the docker image for linux (one time or when dockerfile changes)
$ docker build . --build-arg version=4.0 -t=nio
using the linux docker image
# use the docker image, bind mount the current dir with code
$ docker run -it -v `pwd`:/code -w /code swift-nio bash
# do your thing
$ ./swiftw build
$ ./swiftw test
testing on linux
to know which tests to run on linux, swift requires a special mapping file called LinuxMain.swift and explicit mapping of each test case into a static list of tests. this is a real pita, but we are here to help!
# generate linux tests
$ ruby generate_linux_tests.rb
Description
Mirror of github.com/apple/swift-nio
80 MiB
0 Stars
1 Watchers
0 Forks
Languages
Swift
91.9%
C
5%
Shell
2%
CMake
0.5%
C++
0.4%