summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-10 07:30:52 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-10 07:30:52 (GMT)
commit896e2a121d58931740ea8becc0544e10e629c6c5 (patch)
treea5e0c748ff472357dfbde89292eccac08900cee9 /Swiften/QA/TLSTest/SConscript
parentafae15f7cf212c993da8264a4ae89cf8729b3f86 (diff)
downloadswift-896e2a121d58931740ea8becc0544e10e629c6c5.zip
swift-896e2a121d58931740ea8becc0544e10e629c6c5.tar.bz2
Refactored TLS tests.
Diffstat (limited to 'Swiften/QA/TLSTest/SConscript')
-rw-r--r--Swiften/QA/TLSTest/SConscript20
1 files changed, 20 insertions, 0 deletions
diff --git a/Swiften/QA/TLSTest/SConscript b/Swiften/QA/TLSTest/SConscript
new file mode 100644
index 0000000..034336e
--- /dev/null
+++ b/Swiften/QA/TLSTest/SConscript
@@ -0,0 +1,20 @@
+import os
+
+Import("env")
+
+if env["TEST"] :
+ myenv = env.Clone()
+ myenv.MergeFlags(myenv["CHECKER_FLAGS"])
+ myenv.MergeFlags(myenv["SWIFTOOLS_FLAGS"])
+ myenv.MergeFlags(myenv["SWIFTEN_FLAGS"])
+ myenv.MergeFlags(myenv["CPPUNIT_FLAGS"])
+ myenv.MergeFlags(myenv["BOOST_FLAGS"])
+ myenv.MergeFlags(myenv["LIBIDN_FLAGS"])
+ if myenv.get("HAVE_OPENSSL") :
+ myenv.MergeFlags(myenv["OPENSSL_FLAGS"])
+ myenv.Append(CPPDEFINES = ["HAVE_OPENSSL"])
+
+ tester = myenv.Program("TLSTest", [
+ "CertificateTest.cpp",
+ ])
+ myenv.Test(tester, "system")