michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: TEST_TOOL_DIRS += [ michael@0: 'external', michael@0: 'component', michael@0: 'bug656331_component', michael@0: 'component_no_aslr', michael@0: ] michael@0: michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: TEST_TOOL_DIRS += ['windows'] michael@0: michael@0: if CONFIG['DEHYDRA_PATH']: michael@0: TEST_TOOL_DIRS += ['static-checker'] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: EXPORTS.testing += [ michael@0: 'TestHarness.h', michael@0: ] michael@0: michael@0: SIMPLE_PROGRAMS = [ michael@0: 'nsIFileEnumerator', michael@0: 'TestArguments', michael@0: 'TestBlockingProcess', michael@0: 'TestCallTemplates', michael@0: 'TestINIParser', michael@0: 'TestPRIntN', michael@0: 'TestQuickReturn', michael@0: 'TestRacingServiceManager', michael@0: 'TestRegistrationOrder', michael@0: 'TestThreadPoolListener', michael@0: 'TestTimers', michael@0: 'TestUnicodeArguments', michael@0: ] michael@0: michael@0: if CONFIG['OS_TARGET'] == 'WINNT': michael@0: SIMPLE_PROGRAMS += [ michael@0: 'TestBase64', michael@0: ] michael@0: michael@0: if CONFIG['WRAP_STL_INCLUDES']: michael@0: SIMPLE_PROGRAMS += [ michael@0: 'TestSTLWrappers', michael@0: ] michael@0: michael@0: SOURCES += [ michael@0: '%s.cpp' % s for s in sorted(SIMPLE_PROGRAMS) michael@0: ] michael@0: michael@0: XPCSHELL_TESTS_MANIFESTS += ['unit/xpcshell.ini'] michael@0: michael@0: CPP_UNIT_TESTS += [ michael@0: 'ShowAlignments.cpp', michael@0: 'TestAutoPtr.cpp', michael@0: 'TestAutoRef.cpp', michael@0: 'TestCOMArray.cpp', michael@0: 'TestCOMPtr.cpp', michael@0: 'TestCOMPtrEq.cpp', michael@0: 'TestDeque.cpp', michael@0: 'TestFile.cpp', michael@0: 'TestHashtables.cpp', michael@0: 'TestID.cpp', michael@0: 'TestObserverArray.cpp', michael@0: 'TestObserverService.cpp', michael@0: 'TestPipe.cpp', michael@0: 'TestPLDHash.cpp', michael@0: 'TestRefPtr.cpp', michael@0: 'TestStringAPI.cpp', michael@0: 'TestTArray.cpp', michael@0: 'TestTextFormatter.cpp', michael@0: 'TestThreadUtils.cpp' michael@0: ] michael@0: michael@0: if CONFIG['MOZ_MEMORY']: michael@0: CPP_UNIT_TESTS += [ michael@0: 'TestJemalloc.cpp', michael@0: ] michael@0: michael@0: # XXX Make these tests work in libxul builds. michael@0: #CPP_UNIT_TESTS += [ michael@0: # 'TestArray.cpp', michael@0: # 'TestCRT.cpp', michael@0: # 'TestEncoding.cpp', michael@0: # 'TestExpirationTracker.cpp', michael@0: # 'TestPipes.cpp', michael@0: # 'TestPriorityQueue.cpp', michael@0: # 'TestStorageStream.cpp', michael@0: # 'TestStrings.cpp', michael@0: # 'TestSynchronization.cpp', michael@0: # 'TestTArray.cpp', michael@0: # 'TestThreadPool.cpp', michael@0: # 'TestThreads.cpp', michael@0: # 'TestTimeStamp.cpp', michael@0: # 'TestXPIDLString.cpp', michael@0: # 'TestUTF.cpp', michael@0: # 'TestAtoms.cpp', michael@0: #] michael@0: michael@0: # FIXME: bug 577500 TestStaticAtoms fails when run in dist/bin michael@0: #CPP_UNIT_TESTS += [ michael@0: # 'TestStaticAtoms.cpp', michael@0: #] michael@0: michael@0: if CONFIG['MOZ_DEBUG'] and CONFIG['OS_ARCH'] not in ('WINNT', 'Darwin'): michael@0: # FIXME bug 523392: TestDeadlockDetector doesn't like Windows michael@0: # FIXME bug 523378: also fails on OS X michael@0: CPP_UNIT_TESTS += [ michael@0: 'TestDeadlockDetector.cpp', michael@0: 'TestDeadlockDetectorScalability.cpp', michael@0: ] michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../ds', michael@0: ] michael@0: michael@0: RESOURCE_FILES += [ michael@0: 'test.properties', michael@0: ]