⛏️ index : haiku.git

SubDir HAIKU_TOP src tests kits storage ;

AddSubDirSupportedPlatforms libbe_test ;

UsePrivateHeaders storage ;

UnitTestLib libstoragetest.so
	: StorageKitTestAddon.cpp
		AppFileInfoTest.cpp
		BasicTest.cpp
		DataIOTest.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
		TestApp.cpp
		VolumeTest.cpp
	: be [ TargetLibstdc++ ]
;

# To run the tests some test files must be around.
{
	local resdir = <src!tests!kits!storage>resources ;
	MakeLocate $(resdir) : $(TARGET_UNIT_TEST_DIR) ;
	RelSymLink $(resdir) : [ FDirName $(HAIKU_TOP) src tests kits storage resources ] : false ;
	Depends libstoragetest.so : $(resdir) ;
}

SubInclude HAIKU_TOP src tests kits storage disk_device ;
SubInclude HAIKU_TOP src tests kits storage testapps ;
SubInclude HAIKU_TOP src tests kits storage virtualdrive ;