xpcom/tests/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/tests/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,123 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +TEST_TOOL_DIRS += [
    1.11 +    'external',
    1.12 +    'component',
    1.13 +    'bug656331_component',
    1.14 +    'component_no_aslr',
    1.15 +]
    1.16 +
    1.17 +if CONFIG['OS_ARCH'] == 'WINNT':
    1.18 +    TEST_TOOL_DIRS += ['windows']
    1.19 +
    1.20 +if CONFIG['DEHYDRA_PATH']:
    1.21 +    TEST_TOOL_DIRS += ['static-checker']
    1.22 +
    1.23 +FAIL_ON_WARNINGS = True
    1.24 +
    1.25 +EXPORTS.testing += [
    1.26 +    'TestHarness.h',
    1.27 +]
    1.28 +
    1.29 +SIMPLE_PROGRAMS = [
    1.30 +    'nsIFileEnumerator',
    1.31 +    'TestArguments',
    1.32 +    'TestBlockingProcess',
    1.33 +    'TestCallTemplates',
    1.34 +    'TestINIParser',
    1.35 +    'TestPRIntN',
    1.36 +    'TestQuickReturn',
    1.37 +    'TestRacingServiceManager',
    1.38 +    'TestRegistrationOrder',
    1.39 +    'TestThreadPoolListener',
    1.40 +    'TestTimers',
    1.41 +    'TestUnicodeArguments',
    1.42 +]
    1.43 +
    1.44 +if CONFIG['OS_TARGET'] == 'WINNT':
    1.45 +    SIMPLE_PROGRAMS += [
    1.46 +        'TestBase64',
    1.47 +    ]
    1.48 +
    1.49 +if CONFIG['WRAP_STL_INCLUDES']:
    1.50 +    SIMPLE_PROGRAMS += [
    1.51 +        'TestSTLWrappers',
    1.52 +    ]
    1.53 +
    1.54 +SOURCES += [
    1.55 +    '%s.cpp' % s for s in sorted(SIMPLE_PROGRAMS)
    1.56 +]
    1.57 +
    1.58 +XPCSHELL_TESTS_MANIFESTS += ['unit/xpcshell.ini']
    1.59 +
    1.60 +CPP_UNIT_TESTS += [
    1.61 +    'ShowAlignments.cpp',
    1.62 +    'TestAutoPtr.cpp',
    1.63 +    'TestAutoRef.cpp',
    1.64 +    'TestCOMArray.cpp',
    1.65 +    'TestCOMPtr.cpp',
    1.66 +    'TestCOMPtrEq.cpp',
    1.67 +    'TestDeque.cpp',
    1.68 +    'TestFile.cpp',
    1.69 +    'TestHashtables.cpp',
    1.70 +    'TestID.cpp',
    1.71 +    'TestObserverArray.cpp',
    1.72 +    'TestObserverService.cpp',
    1.73 +    'TestPipe.cpp',
    1.74 +    'TestPLDHash.cpp',
    1.75 +    'TestRefPtr.cpp',
    1.76 +    'TestStringAPI.cpp',
    1.77 +    'TestTArray.cpp',
    1.78 +    'TestTextFormatter.cpp',
    1.79 +    'TestThreadUtils.cpp'
    1.80 +]
    1.81 +
    1.82 +if CONFIG['MOZ_MEMORY']:
    1.83 +    CPP_UNIT_TESTS += [
    1.84 +        'TestJemalloc.cpp',
    1.85 +    ]
    1.86 +
    1.87 +# XXX Make these tests work in libxul builds.
    1.88 +#CPP_UNIT_TESTS += [
    1.89 +#    'TestArray.cpp',
    1.90 +#    'TestCRT.cpp',
    1.91 +#    'TestEncoding.cpp',
    1.92 +#    'TestExpirationTracker.cpp',
    1.93 +#    'TestPipes.cpp',
    1.94 +#    'TestPriorityQueue.cpp',
    1.95 +#    'TestStorageStream.cpp',
    1.96 +#    'TestStrings.cpp',
    1.97 +#    'TestSynchronization.cpp',
    1.98 +#    'TestTArray.cpp',
    1.99 +#    'TestThreadPool.cpp',
   1.100 +#    'TestThreads.cpp',
   1.101 +#    'TestTimeStamp.cpp',
   1.102 +#    'TestXPIDLString.cpp',
   1.103 +#    'TestUTF.cpp',
   1.104 +#    'TestAtoms.cpp',
   1.105 +#]
   1.106 +
   1.107 +# FIXME: bug 577500 TestStaticAtoms fails when run in dist/bin
   1.108 +#CPP_UNIT_TESTS += [
   1.109 +#    'TestStaticAtoms.cpp',
   1.110 +#]
   1.111 +
   1.112 +if CONFIG['MOZ_DEBUG'] and CONFIG['OS_ARCH'] not in ('WINNT', 'Darwin'):
   1.113 +    # FIXME bug 523392: TestDeadlockDetector doesn't like Windows
   1.114 +    # FIXME bug 523378: also fails on OS X
   1.115 +    CPP_UNIT_TESTS += [
   1.116 +        'TestDeadlockDetector.cpp',
   1.117 +        'TestDeadlockDetectorScalability.cpp',
   1.118 +    ]
   1.119 +
   1.120 +LOCAL_INCLUDES += [
   1.121 +    '../ds',
   1.122 +]
   1.123 +
   1.124 +RESOURCE_FILES += [
   1.125 +    'test.properties',
   1.126 +]

mercurial