2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:17 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2017-10-05 08:50:01 +03:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT']:
|
2017-02-16 12:43:50 +03:00
|
|
|
TEST_DIRS += [
|
|
|
|
'gtest',
|
|
|
|
]
|
|
|
|
|
2014-09-03 09:10:54 +04:00
|
|
|
CppUnitTests([
|
2016-10-19 13:12:11 +03:00
|
|
|
'TestArray',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestArrayUtils',
|
|
|
|
'TestAtomics',
|
|
|
|
'TestBinarySearch',
|
|
|
|
'TestBloomFilter',
|
2016-05-12 04:02:06 +03:00
|
|
|
'TestBufferList',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestCasting',
|
|
|
|
'TestCeilingFloor',
|
|
|
|
'TestCheckedInt',
|
|
|
|
'TestCountPopulation',
|
|
|
|
'TestCountZeroes',
|
2017-07-01 02:58:11 +03:00
|
|
|
'TestDefineEnum',
|
2016-06-02 19:18:40 +03:00
|
|
|
'TestDoublyLinkedList',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestEndian',
|
2016-10-19 13:12:11 +03:00
|
|
|
'TestEnumeratedArray',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestEnumSet',
|
2016-09-07 05:20:16 +03:00
|
|
|
'TestEnumTypeTraits',
|
2015-10-08 23:05:31 +03:00
|
|
|
'TestFastBernoulliTrial',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestFloatingPoint',
|
|
|
|
'TestIntegerPrintfMacros',
|
2015-07-02 06:31:07 +03:00
|
|
|
'TestIntegerRange',
|
2014-09-15 10:36:18 +04:00
|
|
|
'TestJSONWriter',
|
2015-10-07 22:36:00 +03:00
|
|
|
'TestLinkedList',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestMacroArgs',
|
|
|
|
'TestMacroForEach',
|
2015-09-04 23:33:10 +03:00
|
|
|
'TestMathAlgorithms',
|
2014-08-22 11:43:02 +04:00
|
|
|
'TestMaybe',
|
2016-05-12 07:21:16 +03:00
|
|
|
'TestNotNull',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestPair',
|
2016-11-08 02:30:34 +03:00
|
|
|
'TestRange',
|
2014-07-30 17:59:52 +04:00
|
|
|
'TestRefPtr',
|
2016-11-21 14:52:03 +03:00
|
|
|
'TestResult',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestRollingMean',
|
2016-02-04 14:35:12 +03:00
|
|
|
'TestSaturate',
|
2015-07-04 00:20:55 +03:00
|
|
|
'TestScopeExit',
|
2014-12-09 01:45:13 +03:00
|
|
|
'TestSegmentedVector',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestSHA1',
|
2017-05-10 06:07:38 +03:00
|
|
|
'TestSmallPointerArray',
|
2014-07-31 02:53:40 +04:00
|
|
|
'TestSplayTree',
|
2015-05-22 05:33:39 +03:00
|
|
|
'TestTemplateLib',
|
2017-10-18 21:21:27 +03:00
|
|
|
'TestThreadSafeWeakPtr',
|
2015-05-22 04:14:25 +03:00
|
|
|
'TestTuple',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestTypedEnum',
|
|
|
|
'TestTypeTraits',
|
|
|
|
'TestUniquePtr',
|
2015-06-30 20:01:00 +03:00
|
|
|
'TestVariant',
|
2014-11-27 00:01:19 +03:00
|
|
|
'TestVector',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestWeakPtr',
|
2015-09-23 23:59:28 +03:00
|
|
|
'TestXorShift128PlusRNG',
|
2014-09-03 09:10:54 +04:00
|
|
|
])
|
2013-07-24 11:23:06 +04:00
|
|
|
|
|
|
|
if not CONFIG['MOZ_ASAN']:
|
2014-09-03 09:10:54 +04:00
|
|
|
CppUnitTests([
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestPoisonArea',
|
2014-09-03 09:10:54 +04:00
|
|
|
])
|
2013-11-27 17:55:07 +04:00
|
|
|
|
|
|
|
# Since we link directly with MFBT object files, define IMPL_MFBT
|
|
|
|
DEFINES['IMPL_MFBT'] = True
|
2014-03-05 04:39:06 +04:00
|
|
|
|
2017-09-11 21:33:26 +03:00
|
|
|
DisableStlWrapping()
|
2014-06-14 23:47:01 +04:00
|
|
|
|
2017-12-08 15:46:13 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
2014-06-14 23:47:01 +04:00
|
|
|
CXXFLAGS += [
|
|
|
|
'-wd4275', # non dll-interface class used as base for dll-interface class
|
|
|
|
'-wd4530', # C++ exception handler used, but unwind semantics are not enabled
|
|
|
|
]
|
|
|
|
|
2014-07-23 08:30:52 +04:00
|
|
|
USE_LIBS += [
|
|
|
|
'mfbt',
|
|
|
|
]
|
2016-05-11 10:00:01 +03:00
|
|
|
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|