2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; 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/.
|
|
|
|
|
2014-09-03 09:10:54 +04:00
|
|
|
CppUnitTests([
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestArrayUtils',
|
|
|
|
'TestAtomics',
|
|
|
|
'TestBinarySearch',
|
|
|
|
'TestBloomFilter',
|
|
|
|
'TestCasting',
|
|
|
|
'TestCeilingFloor',
|
|
|
|
'TestCheckedInt',
|
|
|
|
'TestCountPopulation',
|
|
|
|
'TestCountZeroes',
|
|
|
|
'TestEndian',
|
|
|
|
'TestEnumSet',
|
|
|
|
'TestFloatingPoint',
|
|
|
|
'TestIntegerPrintfMacros',
|
2014-09-15 10:36:18 +04:00
|
|
|
'TestJSONWriter',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestMacroArgs',
|
|
|
|
'TestMacroForEach',
|
2014-08-22 11:43:02 +04:00
|
|
|
'TestMaybe',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestPair',
|
2014-07-30 17:59:52 +04:00
|
|
|
'TestRefPtr',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestRollingMean',
|
2014-12-09 01:45:13 +03:00
|
|
|
'TestSegmentedVector',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestSHA1',
|
2014-07-31 02:53:40 +04:00
|
|
|
'TestSplayTree',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestTypedEnum',
|
|
|
|
'TestTypeTraits',
|
|
|
|
'TestUniquePtr',
|
2014-11-27 00:01:19 +03:00
|
|
|
'TestVector',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestWeakPtr',
|
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
|
|
|
|
|
|
|
DISABLE_STL_WRAPPING = True
|
2014-06-14 23:47:01 +04:00
|
|
|
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-wd4275', # non dll-interface class used as base for dll-interface class
|
|
|
|
'-wd4530', # C++ exception handler used, but unwind semantics are not enabled
|
|
|
|
]
|
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
2014-07-23 08:30:52 +04:00
|
|
|
|
|
|
|
USE_LIBS += [
|
|
|
|
'mfbt',
|
|
|
|
]
|