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:
Ingo Weinhold
2002-07-10 02:05:10 +00:00
parent 97a2517bdc
commit 690f2d09ff
+46 -66
View File
@@ -1,71 +1,51 @@
# This is $(TOP)/test/Jamfile SubDir OBOS_TOP src tests kits storage ;
SubDir TOP test ; CommonUnitTest StorageKitTester
: StorageKitTester.cpp
# Point the compiler to location of the CppUnit headers BasicTest.cpp
HDRS += "$(TOP)/cppunit/include" ; DirectoryTest.cpp
EntryTest.cpp
SOURCE_FILES = FileTest.cpp
BasicTest.cpp FindDirectoryTest.cpp
DirectoryTest.cpp MimeTypeTest.cpp
EntryTest.cpp NodeTest.cpp
FileTest.cpp PathTest.cpp
FindDirectoryTest.cpp QueryTest.cpp
MimeTypeTest.cpp ResourcesTest.cpp
NodeTest.cpp ResourceStringsTest.cpp
PathTest.cpp StatableTest.cpp
QueryTest.cpp SymLinkTest.cpp
ResourcesTest.cpp TestApp.cpp
ResourceStringsTest.cpp TestUtils.cpp
StatableTest.cpp : kits storage
SymLinkTest.cpp : libstorage.so be stdc++.r4
TestApp.cpp : be stdc++.r4
TestUtils.cpp : [ FDirName os storage ]
; ;
# targets to shorted make time, when only one version should be made # To run the tests the libraries must be around.
NOTFILE r5 posix ; {
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 ;