xpcom/tests/gtest/moz.build
author Eric Rahm <erahm@mozilla.com>
Mon, 07 Nov 2016 14:27:20 -0800
changeset 321439 276b093c968ffc889f465161b7aa1fe80c796988
parent 321437 dbd9b56b50e73bf584c5ae8b38e08faac490d7e7
child 321454 01800003ec3b043995e4ec1daaaf827e7ee2bbee
permissions -rw-r--r--
Bug 1313489 - Part 2: Convert DeadlockDetectorScalability to a gtest. r=froydnj This converts the tests to gtests. Most of them are just runtime tests and just hava dummy assertion that everything ran. One test remains disabled, although it's still built-in. You can run the disabled test with the following command: > GTEST_ALSO_RUN_DISABLED_TESTS=1 ./mach gtest DeadlockDetectorScalability.* MozReview-Commit-ID: 57rxjiZKjQ6

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

UNIFIED_SOURCES += [
    'Helpers.cpp',
    'TestAtoms.cpp',
    'TestAutoPtr.cpp',
    'TestAutoRef.cpp',
    'TestCloneInputStream.cpp',
    'TestCOMArray.cpp',
    'TestCOMPtrEq.cpp',
    'TestCRT.cpp',
    'TestEncoding.cpp',
    'TestEscapeURL.cpp',
    'TestExpirationTracker.cpp',
    'TestFile.cpp',
    'TestID.cpp',
    'TestNSPRLogModulesParser.cpp',
    'TestObserverArray.cpp',
    'TestObserverService.cpp',
    'TestPipes.cpp',
    'TestPLDHash.cpp',
    'TestPriorityQueue.cpp',
    'TestSlicedInputStream.cpp',
    'TestSnappyStreams.cpp',
    'TestStateWatching.cpp',
    'TestStorageStream.cpp',
    'TestStrings.cpp',
    'TestStringStream.cpp',
    'TestSynchronization.cpp',
    'TestTArray.cpp',
    'TestTArray2.cpp',
    'TestTextFormatter.cpp',
    'TestThreadPool.cpp',
    'TestThreads.cpp',
    'TestThreadUtils.cpp',
    'TestTimers.cpp',
    'TestTimeStamp.cpp',
    'TestTokenizer.cpp',
    'TestUTF.cpp',
    'TestXPIDLString.cpp',
]

if CONFIG['MOZ_DEBUG'] and CONFIG['OS_ARCH'] not in ('WINNT') and CONFIG['OS_TARGET'] != 'Android':
    # FIXME bug 523392: TestDeadlockDetector doesn't like Windows
    # Bug 1054249: Doesn't work on Android
    UNIFIED_SOURCES += [
        'TestDeadlockDetector.cpp',
        'TestDeadlockDetectorScalability.cpp',
    ]

# Compile TestAllocReplacement separately so Windows headers don't pollute
# the global namespace for other files.
SOURCES += [
    'TestAllocReplacement.cpp',
    'TestCOMPtr.cpp', # Redefines IFoo and IBar
    'TestHashtables.cpp', # Redefines IFoo
    'TestNsRefPtr.cpp', # Redefines Foo
    #'TestTArray2.cpp',
]

LOCAL_INCLUDES += [
    '../../base',
]

FINAL_LIBRARY = 'xul-gtest'