2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:20:02 +00: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-07-28 23:55:55 +00:00
|
|
|
TEST_DIRS += [
|
2013-02-25 21:20:02 +00:00
|
|
|
'external',
|
|
|
|
'component',
|
|
|
|
'bug656331_component',
|
|
|
|
'component_no_aslr',
|
2014-12-12 19:12:27 +00:00
|
|
|
'gtest',
|
2013-02-25 21:20:02 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
2014-07-28 23:55:55 +00:00
|
|
|
TEST_DIRS += ['windows']
|
2013-02-25 21:20:02 +00:00
|
|
|
|
2013-08-14 07:00:13 +00:00
|
|
|
if CONFIG['DEHYDRA_PATH']:
|
2014-07-28 23:55:55 +00:00
|
|
|
TEST_DIRS += ['static-checker']
|
2013-08-14 07:00:13 +00:00
|
|
|
|
2013-10-20 07:25:19 +00:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-07-10 09:55:34 +00:00
|
|
|
EXPORTS.testing += [
|
|
|
|
'TestHarness.h',
|
|
|
|
]
|
|
|
|
|
2014-09-03 05:10:54 +00:00
|
|
|
SimplePrograms([
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsIFileEnumerator',
|
2013-08-14 07:00:13 +00:00
|
|
|
'TestArguments',
|
|
|
|
'TestBlockingProcess',
|
|
|
|
'TestCallTemplates',
|
|
|
|
'TestINIParser',
|
|
|
|
'TestPRIntN',
|
|
|
|
'TestQuickReturn',
|
|
|
|
'TestRacingServiceManager',
|
|
|
|
'TestRegistrationOrder',
|
|
|
|
'TestThreadPoolListener',
|
|
|
|
'TestTimers',
|
|
|
|
'TestUnicodeArguments',
|
2014-09-03 05:10:54 +00:00
|
|
|
])
|
2013-08-14 07:00:13 +00:00
|
|
|
|
2013-04-23 21:54:15 +00:00
|
|
|
if CONFIG['OS_TARGET'] == 'WINNT':
|
2014-10-30 04:06:12 +00:00
|
|
|
GeckoSimplePrograms([
|
2013-08-14 07:00:13 +00:00
|
|
|
'TestBase64',
|
2014-09-03 05:10:54 +00:00
|
|
|
])
|
2013-04-23 21:54:15 +00:00
|
|
|
|
2014-07-03 15:56:16 +00:00
|
|
|
if CONFIG['WRAP_STL_INCLUDES'] and not CONFIG['CLANG_CL']:
|
2014-10-30 04:06:12 +00:00
|
|
|
GeckoSimplePrograms([
|
2013-08-14 07:00:13 +00:00
|
|
|
'TestSTLWrappers',
|
2014-09-03 05:10:54 +00:00
|
|
|
])
|
2013-04-23 21:54:15 +00:00
|
|
|
|
2013-04-29 18:49:00 +00:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['unit/xpcshell.ini']
|
2013-04-23 21:54:15 +00:00
|
|
|
|
2014-10-30 04:06:12 +00:00
|
|
|
GeckoCppUnitTests([
|
2014-07-23 04:29:44 +00:00
|
|
|
'ShowAlignments',
|
|
|
|
'TestAutoPtr',
|
|
|
|
'TestAutoRef',
|
|
|
|
'TestCOMArray',
|
|
|
|
'TestCOMPtr',
|
|
|
|
'TestCOMPtrEq',
|
|
|
|
'TestDeque',
|
|
|
|
'TestFile',
|
|
|
|
'TestHashtables',
|
|
|
|
'TestID',
|
2014-07-30 13:59:32 +00:00
|
|
|
'TestNsRefPtr',
|
2014-07-23 04:29:44 +00:00
|
|
|
'TestObserverArray',
|
|
|
|
'TestObserverService',
|
|
|
|
'TestPipe',
|
|
|
|
'TestPLDHash',
|
|
|
|
'TestStringAPI',
|
|
|
|
'TestTArray',
|
|
|
|
'TestTextFormatter',
|
|
|
|
'TestThreadUtils'
|
2014-09-03 05:10:54 +00:00
|
|
|
])
|
2013-07-24 07:23:06 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_MEMORY']:
|
2014-10-30 04:06:12 +00:00
|
|
|
GeckoCppUnitTests([
|
2014-07-23 04:29:44 +00:00
|
|
|
'TestJemalloc',
|
2014-09-03 05:10:54 +00:00
|
|
|
])
|
2013-07-24 07:23:06 +00:00
|
|
|
|
|
|
|
# XXX Make these tests work in libxul builds.
|
|
|
|
#CPP_UNIT_TESTS += [
|
2015-01-27 18:47:44 +00:00
|
|
|
# 'TestAtoms',
|
2013-07-24 07:23:06 +00:00
|
|
|
#]
|
|
|
|
|
|
|
|
# FIXME: bug 577500 TestStaticAtoms fails when run in dist/bin
|
|
|
|
#CPP_UNIT_TESTS += [
|
2014-07-23 04:29:44 +00:00
|
|
|
# 'TestStaticAtoms',
|
2013-07-24 07:23:06 +00:00
|
|
|
#]
|
|
|
|
|
2014-08-04 23:16:20 +00:00
|
|
|
if CONFIG['MOZ_DEBUG'] and CONFIG['OS_ARCH'] not in ('WINNT'):
|
2013-07-24 07:23:06 +00:00
|
|
|
# FIXME bug 523392: TestDeadlockDetector doesn't like Windows
|
|
|
|
# FIXME bug 523378: also fails on OS X
|
2014-10-30 04:06:12 +00:00
|
|
|
GeckoCppUnitTests([
|
2014-07-23 04:29:44 +00:00
|
|
|
'TestDeadlockDetector',
|
|
|
|
'TestDeadlockDetectorScalability',
|
2014-09-03 05:10:54 +00:00
|
|
|
])
|
2013-07-24 07:23:06 +00:00
|
|
|
|
2014-09-22 19:10:31 +00:00
|
|
|
XPIDL_MODULE = 'xpcomtest'
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'NotXPCOMTest.idl',
|
|
|
|
]
|
|
|
|
|
2015-02-13 13:11:57 +00:00
|
|
|
# Don't add our test-only .xpt files to the normal manifests
|
|
|
|
XPIDL_NO_MANIFEST = True
|
|
|
|
|
2013-12-31 09:06:11 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../ds',
|
|
|
|
]
|
|
|
|
|
2013-11-05 18:37:54 +00:00
|
|
|
RESOURCE_FILES += [
|
|
|
|
'test.properties',
|
|
|
|
]
|