Bug 930350 - Fix --enable-ipdl-tests build. r=gps. DONTBUILD because NPOTB

This commit is contained in:
Mike Hommey 2013-10-25 08:39:45 +09:00
parent ea2492b720
commit 91d475fc4c
3 changed files with 43 additions and 39 deletions

View File

@ -2,49 +2,15 @@
# 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/.
IPDLTESTS = \
TestActorPunning \
TestBridgeMain \
TestCrashCleanup \
TestDataStructures \
TestDesc \
TestFailedCtor \
TestHangs \
TestJSON \
TestLatency \
TestManyChildAllocs \
TestMultiMgrs \
TestNestedLoops \
TestOpens \
TestInterruptErrorCleanup \
TestInterruptRaces \
TestInterruptShutdownRace \
TestRPC \
TestRaceDeferral \
TestRacyReentry \
TestRacyInterruptReplies \
TestRacyUndefer \
TestSanity \
TestSelfManageRoot \
TestShmem \
TestShutdown \
TestStackHooks \
TestSyncError \
TestSyncHang \
TestSyncWakeup \
TestBadActor \
TestUrgency \
$(NULL)
IPDLTESTSRCS = $(filter Test%,$(CPPSRCS))
IPDLTESTS = $(IPDLTESTSRCS:.cpp=)
ifeq ($(OS_ARCH),Linux)
IPDLTESTS += TestSysVShmem
endif
CPPSRCS += IPDLUnitTests.cpp
EXTRA_PROTOCOLS = \
TestBridgeSub \
$(NULL)
IPDLTESTSRCS = $(addsuffix .cpp,$(IPDLTESTS))
IPDLTESTHDRS = $(addprefix $(srcdir)/,$(addsuffix .h,$(IPDLTESTS)))
TESTER_TEMPLATE := $(srcdir)/IPDLUnitTests.template.cpp

View File

@ -1,3 +1,4 @@
include protocol PTestBridgeMainSub;
include protocol PTestBridgeSub;
namespace mozilla {

View File

@ -17,9 +17,46 @@ EXPORTS.mozilla._ipdltest += [
]
SOURCES += [
'$(IPDLTESTSRCS)',
'TestActorPunning.cpp',
'TestBadActor.cpp',
'TestBridgeMain.cpp',
'TestCrashCleanup.cpp',
'TestDataStructures.cpp',
'TestDesc.cpp',
'TestFailedCtor.cpp',
'TestHangs.cpp',
'TestInterruptErrorCleanup.cpp',
'TestInterruptRaces.cpp',
'TestInterruptShutdownRace.cpp',
'TestJSON.cpp',
'TestLatency.cpp',
'TestManyChildAllocs.cpp',
'TestMultiMgrs.cpp',
'TestNestedLoops.cpp',
'TestOpens.cpp',
'TestRaceDeferral.cpp',
'TestRacyInterruptReplies.cpp',
'TestRacyReentry.cpp',
'TestRacyUndefer.cpp',
'TestRPC.cpp',
'TestSanity.cpp',
'TestSelfManageRoot.cpp',
'TestShmem.cpp',
'TestShutdown.cpp',
'TestStackHooks.cpp',
'TestSyncError.cpp',
'TestSyncHang.cpp',
'TestSyncWakeup.cpp',
'TestUrgency.cpp',
]
if CONFIG['OS_ARCH'] == 'Linux':
SOURCES += [
'TestSysVShmem.cpp',
]
SOURCES += [
'IPDLUnitTestProcessChild.cpp',
'IPDLUnitTests.cpp',
'IPDLUnitTestSubprocess.cpp',
]