moz.build (1670B)
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2 # vim: set filetype=python: 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 8 @template 9 def STHTestFile(name): 10 if not CONFIG["COMPILE_ENVIRONMENT"]: 11 return 12 13 GeneratedFile(name, script="createSTHTestData.py", inputs=["%s.tbs" % name]) 14 15 16 STHTestFile("valid-sth.inc") 17 STHTestFile("valid-with-extension-sth.inc") 18 STHTestFile("valid-secp521r1-sha512-sth.inc") 19 STHTestFile("signature-covers-log-id-sth.inc") 20 STHTestFile("wrong-spki-sth.inc") 21 STHTestFile("wrong-signing-key-sth.inc") 22 STHTestFile("missing-log-id-sth.inc") 23 STHTestFile("missing-timestamp-sth.inc") 24 STHTestFile("missing-tree-size-sth.inc") 25 STHTestFile("missing-root-hash-sth.inc") 26 STHTestFile("missing-extensions-sth.inc") 27 STHTestFile("truncated-log-id-sth.inc") 28 STHTestFile("truncated-timestamp-sth.inc") 29 STHTestFile("truncated-tree-size-sth.inc") 30 STHTestFile("truncated-root-hash-sth.inc") 31 STHTestFile("truncated-extension-sth.inc") 32 STHTestFile("rsa-signer-rsa-spki-sth.inc") 33 STHTestFile("rsa-signer-ec-spki-sth.inc") 34 STHTestFile("ec-signer-rsa-spki-sth.inc") 35 36 UNIFIED_SOURCES += [ 37 "BTSerializationTest.cpp", 38 "BTSignedTreeHeadTest.cpp", 39 "BTVerificationTest.cpp", 40 "CTLogVerifierTest.cpp", 41 "CTObjectsExtractorTest.cpp", 42 "CTPolicyEnforcerTest.cpp", 43 "CTSerializationTest.cpp", 44 "CTTestUtils.cpp", 45 "MultiLogCTVerifierTest.cpp", 46 ] 47 48 LOCAL_INCLUDES += [ 49 "../..", 50 ] 51 52 if not CONFIG["MOZ_DEBUG"]: 53 DEFINES["NDEBUG"] = True 54 55 FINAL_LIBRARY = "xul-gtest"