Fixed unit tests build for platforms libbe_test and r5. Only randomly tested

a few whether they actually work.
New pseudo target "unittests", which builds all unit tests for the currently
set TARGET_PLATFORM. They are placed in generated/tests/<platform>/unittests.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14791 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2005-11-09 16:17:31 +00:00
parent 5e3af71d64
commit 155b583ac3
46 changed files with 253 additions and 465 deletions
+13 -23
View File
@@ -1,34 +1,28 @@
SubDir HAIKU_TOP src tools cppunit ;
UseHeaders [ FDirName $(HAIKU_TOP) headers tools elfsymbolpatcher ] ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName $(HAIKU_TOP) headers tools elfsymbolpatcher ] : true ;
UseCppUnitHeaders ;
SEARCH_SOURCE += [ FDirName $(SUBDIR) cppunit ] ;
rule CppUnitLibrary
{
# CppUnitLibrary <sources> ;
local _lib = libcppunit.so ;
DEFINES += BUILDING_CPPUNIT ;
local defines = BUILDING_CPPUNIT ;
if $(OS) = BEOS && $(OSPLAT) = PPC {
defines += NO_ELF_SYMBOL_PATCHING ;
if $(OS) != BEOS || $(OSPLAT) = PPC {
DEFINES += NO_ELF_SYMBOL_PATCHING ;
}
ObjectDefines $(1) : $(defines) ;
UseCppUnitHeaders ;
BuildPlatformMain $(_lib) : $(1) ;
MakeLocate $(_lib) : /boot/home/config/lib ;
LINKFLAGS on $(_lib) = $(LINKFLAGS) -nostart -Xlinker -soname=\"$(_lib)\" ;
}
CppUnitLibrary
SharedLibrary libcppunit.so :
BTestCase.cpp
BTestSuite.cpp
SemaphoreSyncObject.cpp
TestApp.cpp
TestCase.cpp
TestListener.cpp
TestShell.cpp
TestSuite.cpp
TestUtils.cpp
ThreadedTestCase.cpp
@@ -55,13 +49,9 @@ CppUnitLibrary
TextTestResult.cpp
TypeInfoHelper.cpp
XmlOutputter.cpp
: be $(TARGET_LIBSTDC++)
;
LinkAgainst libcppunit.so :
stdc++.r4 # is called `mslcpp_4_0' on PPC -- just create a symlink
be
;
if $(OS) != BEOS || $(OSPLAT) != PPC {
if $(OS) = BEOS && $(OSPLAT) != PPC {
LinkAgainst libcppunit.so : libelfsymbolpatcher.a ;
}