blob: e1381072261c7c2bab62b4c0ef6ccef872290a2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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()
|