Files
Nim/tests/misc/trunner_special.nim
ringabout 993fcf5bda fixes CI; disable SSL tests on osx for now (#22304)
* test CI

* disable osx
2023-07-22 11:31:01 +08:00

33 lines
971 B
Nim

discard """
targets: "c cpp"
joinable: false
disabled: osx
"""
#[
Runs tests that require special treatment, e.g. because they rely on 3rd party code
or require external networking.
xxx test all tests/untestable/* here, possibly with adjustments to make running times reasonable
]#
import std/[strformat,os,unittest,compilesettings]
import stdtest/specialpaths
const
nim = getCurrentCompilerExe()
mode = querySetting(backend)
proc runCmd(cmd: string) =
let ret = execShellCmd(cmd)
check ret == 0 # allows more than 1 failure
proc main =
let options = fmt"-b:{mode} --hints:off"
block: # SSL nimDisableCertificateValidation integration tests
runCmd fmt"{nim} r {options} -d:nimDisableCertificateValidation -d:ssl {testsDir}/untestable/thttpclient_ssl_disabled.nim"
block: # SSL certificate check integration tests
runCmd fmt"{nim} r {options} -d:ssl --threads:on --mm:refc {testsDir}/untestable/thttpclient_ssl_remotenetwork.nim"
main()