summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-02-08 16:08:16 (GMT)
committerTobias Markmann <tm@ayena.de>2016-02-08 16:08:16 (GMT)
commit915c0875428e73e9e41a5da05f9d80671da9533c (patch)
tree0df94c4bf3bc9cd0789121433385fa125e79879f /Swiften/QA/TLSTest/SConscript
parent27211ac2ca11c6ac259bc09bb81a7ed297a9d07d (diff)
downloadswift-915c0875428e73e9e41a5da05f9d80671da9533c.zip
swift-915c0875428e73e9e41a5da05f9d80671da9533c.tar.bz2
Fix and adjust TLSTest to Windows SChannel backend
Test-Information: ./scons test=system Swiften/QA/TLSTest passes on Windows 8. Change-Id: I688ec5d0022c02879ff56029d724e6dd30b89a99
Diffstat (limited to 'Swiften/QA/TLSTest/SConscript')
-rw-r--r--Swiften/QA/TLSTest/SConscript9
1 files changed, 8 insertions, 1 deletions
diff --git a/Swiften/QA/TLSTest/SConscript b/Swiften/QA/TLSTest/SConscript
index c597ab1..0ac50e6 100644
--- a/Swiften/QA/TLSTest/SConscript
+++ b/Swiften/QA/TLSTest/SConscript
@@ -10,8 +10,15 @@ if env["TEST"] :
myenv.MergeFlags(myenv["SWIFTEN_DEP_FLAGS"])
myenv.MergeFlags(myenv["CPPUNIT_FLAGS"])
+ if myenv.get("HAVE_OPENSSL", 0) :
+ myenv.Append(CPPDEFINES = "HAVE_OPENSSL")
+ elif myenv.get("HAVE_SCHANNEL", 0) :
+ myenv.Append(CPPDEFINES = "HAVE_SCHANNEL")
+ elif myenv.get("HAVE_SECURETRANSPORT", 0) :
+ myenv.Append(CPPDEFINES = "HAVE_SECURETRANSPORT")
+
tester = myenv.Program("TLSTest", [
"CertificateTest.cpp",
"CertificateErrorTest.cpp"
])
- myenv.Test(tester, "system")
+ myenv.Test(tester, "system") \ No newline at end of file