mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 15:28:58 +01:00
Adjusted the SK tests Jamfile to work in the new tree.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@31 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
97a2517bdc
commit
690f2d09ff
@ -1,71 +1,51 @@
|
||||
# This is $(TOP)/test/Jamfile
|
||||
SubDir OBOS_TOP src tests kits storage ;
|
||||
|
||||
SubDir TOP test ;
|
||||
|
||||
# Point the compiler to location of the CppUnit headers
|
||||
HDRS += "$(TOP)/cppunit/include" ;
|
||||
|
||||
SOURCE_FILES =
|
||||
BasicTest.cpp
|
||||
DirectoryTest.cpp
|
||||
EntryTest.cpp
|
||||
FileTest.cpp
|
||||
FindDirectoryTest.cpp
|
||||
MimeTypeTest.cpp
|
||||
NodeTest.cpp
|
||||
PathTest.cpp
|
||||
QueryTest.cpp
|
||||
ResourcesTest.cpp
|
||||
ResourceStringsTest.cpp
|
||||
StatableTest.cpp
|
||||
SymLinkTest.cpp
|
||||
TestApp.cpp
|
||||
TestUtils.cpp
|
||||
CommonUnitTest StorageKitTester
|
||||
: StorageKitTester.cpp
|
||||
BasicTest.cpp
|
||||
DirectoryTest.cpp
|
||||
EntryTest.cpp
|
||||
FileTest.cpp
|
||||
FindDirectoryTest.cpp
|
||||
MimeTypeTest.cpp
|
||||
NodeTest.cpp
|
||||
PathTest.cpp
|
||||
QueryTest.cpp
|
||||
ResourcesTest.cpp
|
||||
ResourceStringsTest.cpp
|
||||
StatableTest.cpp
|
||||
SymLinkTest.cpp
|
||||
TestApp.cpp
|
||||
TestUtils.cpp
|
||||
: kits storage
|
||||
: libstorage.so be stdc++.r4
|
||||
: be stdc++.r4
|
||||
: [ FDirName os storage ]
|
||||
;
|
||||
|
||||
# targets to shorted make time, when only one version should be made
|
||||
NOTFILE r5 posix ;
|
||||
# To run the tests the libraries must be around.
|
||||
{
|
||||
local libdir = [ on StorageKitTester FDirName $(LOCATE[1]) lib ] ;
|
||||
MakeLocate <$(SOURCE_GRIST)>libstorage.so : $(libdir) ;
|
||||
MakeLocate <$(SOURCE_GRIST)>libbeadapter.so : $(libdir) ;
|
||||
local splitLibdir = [ SplitPath $(libdir) ] ;
|
||||
SymLink <$(SOURCE_GRIST)>libstorage.so
|
||||
: [ FRelPath $(splitLibdir)
|
||||
: [ on libstorage.so SplitPath $(LOCATE[1]) ] libstorage.so ] ;
|
||||
SymLink <$(SOURCE_GRIST)>libbeadapter.so
|
||||
: [ FRelPath $(splitLibdir)
|
||||
: [ on libbeadapter.so SplitPath $(LOCATE[1]) ] libbeadapter.so ] ;
|
||||
DEPENDS StorageKitTester StorageKitTester_r5
|
||||
: <$(SOURCE_GRIST)>libstorage.so <$(SOURCE_GRIST)>libbeadapter.so ;
|
||||
}
|
||||
|
||||
# Version of our test suite that links with Be's R5 libraries
|
||||
# To run the tests some test files must be around.
|
||||
{
|
||||
local resdir = [ on StorageKitTester FDirName $(LOCATE[1]) resources ] ;
|
||||
resdir = $(resdir:G=<storage!kit!test!files>) ;
|
||||
SymLink $(resdir) : [ FRelPath [ SplitPath $(resdir:D) ]
|
||||
: [ SplitPath $(SUBDIR) ] resources ] ;
|
||||
NOUPDATE $(resdir) ;
|
||||
DEPENDS StorageKitTester StorageKitTester_r5 : $(resdir) ;
|
||||
}
|
||||
|
||||
LibraryFromR5Sources $(TOP)/test/libstoragetest.R5.a : $(SOURCE_FILES) ;
|
||||
Main Test.StorageKit.R5 : Test.StorageKit.cpp ;
|
||||
LinkLibraries Test.StorageKit.R5 :
|
||||
$(TOP)/test/libstoragetest.R5.a
|
||||
$(TOP)/cppunit/cppunit.a
|
||||
;
|
||||
LinkSharedOSLibs Test.StorageKit.R5 :
|
||||
/boot/develop/lib/x86/libstdc++.r4.so
|
||||
/boot/develop/lib/x86/libbe.so
|
||||
;
|
||||
DEPENDS r5 : Test.StorageKit.R5 ;
|
||||
|
||||
|
||||
# Version of our test suite that links with OpenBeOS libraries
|
||||
|
||||
HDRS += "$(TOP)/source/lib" ;
|
||||
|
||||
# Make a test/lib directory and copy libstorage.so libbeadapter.so into it.
|
||||
DEPENDS $(TOP)/test/lib/libbeadapter.so :
|
||||
$(TOP)/source/lib/libbeadapter.so $(TOP)/test/lib ;
|
||||
DEPENDS $(TOP)/test/lib/libstorage.so :
|
||||
$(TOP)/source/lib/libstorage.so $(TOP)/test/lib ;
|
||||
MkDir $(TOP)/test/lib ;
|
||||
Bulk $(TOP)/test/lib : $(TOP)/source/lib/libbeadapter.so ;
|
||||
Bulk $(TOP)/test/lib : $(TOP)/source/lib/libstorage.so ;
|
||||
|
||||
LibraryFromPOSIXSources $(TOP)/test/libstoragetest.POSIX.a : $(SOURCE_FILES) ;
|
||||
Main Test.StorageKit.OpenBeOS : Test.StorageKit.cpp ;
|
||||
LinkLibraries Test.StorageKit.OpenBeOS :
|
||||
$(TOP)/test/libstoragetest.POSIX.a
|
||||
$(TOP)/cppunit/cppunit.a
|
||||
;
|
||||
LinkSharedLibs Test.StorageKit.OpenBeOS :
|
||||
$(TOP)/test/lib/libbeadapter.so
|
||||
$(TOP)/test/lib/libstorage.so
|
||||
;
|
||||
LinkSharedOSLibs Test.StorageKit.OpenBeOS :
|
||||
/boot/develop/lib/x86/libstdc++.r4.so
|
||||
/boot/develop/lib/x86/libbe.so
|
||||
;
|
||||
DEPENDS posix : Test.StorageKit.OpenBeOS ;
|
||||
|
Loading…
Reference in New Issue
Block a user