SubDir OBOS_TOP src tests kits storage ;

UsePrivateHeaders storage ;

CommonTestLib libstoragetest.so
	: StorageKitTestAddon.cpp
		AppFileInfoTest.cpp
		BasicTest.cpp
		DirectoryTest.cpp
		EntryTest.cpp
		FindDirectoryTest.cpp
		FileTest.cpp
		MimeSnifferTest.cpp
		MimeTypeTest.cpp
		NodeInfoTest.cpp
		NodeTest.cpp
		PathTest.cpp
		QueryTest.cpp
		ResourcesTest.cpp
		ResourceStringsTest.cpp
		StatableTest.cpp
		SymLinkTest.cpp
	: <boot!home!config!lib>libopenbeos.so be stdc++.r4
	: be stdc++.r4
	:
	: storage
;

# To run the tests some test files must be around.
{
	local resdir = <storage!kit!test!files>resources ;
	MakeLocate $(resdir) : [ on UnitTesterHelper return $(LOCATE[1]) ] ;
	RelSymLink $(resdir) : [ FDirName $(SUBDIR) resources ] ;
	DEPENDS libstoragetest.so : $(resdir) ;
}
