summaryrefslogtreecommitdiffstats
blob: 0ac50e638ea386d5670ebb64e1b7b4c6fb24db06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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["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")