diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-02-02 18:32:33 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 18:32:33 -0800 |
commit | 6f1289b80ccf599008368b121d874b4ce4717fc6 (patch) | |
tree | baafecb74e7ed6b264b27f05bafd724a43db8646 /tests/misc/trunner_special.nim | |
parent | f4449a897ddb094fbc2e1c96eea3d8a8afdcd76a (diff) | |
download | Nim-6f1289b80ccf599008368b121d874b4ce4717fc6.tar.gz |
remove .github/workflows/ci_ssl.yml; instead run via trunner_thirdparty (#16221)
Diffstat (limited to 'tests/misc/trunner_special.nim')
-rw-r--r-- | tests/misc/trunner_special.nim | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/misc/trunner_special.nim b/tests/misc/trunner_special.nim new file mode 100644 index 000000000..47ba44a29 --- /dev/null +++ b/tests/misc/trunner_special.nim @@ -0,0 +1,31 @@ +discard """ + targets: "c cpp" + joinable: false +""" + +#[ +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 {testsDir}/untestable/thttpclient_ssl_remotenetwork.nim" + +main() |