Added tiny disk device manager test.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3505 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2003-06-13 22:05:48 +00:00
parent 852d12ef4c
commit 07d370e32a
5 changed files with 52 additions and 0 deletions

View File

@ -34,5 +34,6 @@ R5UnitTest UnitTesterHelper
;
SubInclude OBOS_TOP src tests add-ons ;
SubInclude OBOS_TOP src tests kernel ;
SubInclude OBOS_TOP src tests kits ;
SubInclude OBOS_TOP src tests servers ;

3
src/tests/kernel/Jamfile Normal file
View File

@ -0,0 +1,3 @@
SubDir OBOS_TOP src tests kernel ;
SubInclude OBOS_TOP src tests kernel core ;

View File

@ -0,0 +1,3 @@
SubDir OBOS_TOP src tests kernel core ;
SubInclude OBOS_TOP src tests kernel core disk_device_manager ;

View File

@ -0,0 +1,22 @@
//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//---------------------------------------------------------------------
#include <stdio.h>
#include <string.h>
#include <OS.h>
#include <KDiskDeviceManager.h>
// main
int
main()
{
KDiskDeviceManager::CreateDefault();
KDiskDeviceManager *manager = KDiskDeviceManager::Default();
manager->InitialDeviceScan();
return 0;
}

View File

@ -0,0 +1,23 @@
SubDir OBOS_TOP src tests kernel core disk_device_manager ;
#UsePrivateHeaders $(DOT) ;
UsePrivateHeaders shared ;
UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
UseHeaders [ FDirName $(OBOS_TOP) src kernel core disk_device_manager ] ;
SimpleTest DiskDeviceManagerTest
: DiskDeviceManagerTest.cpp
: <boot!home!config!lib>libdisk_device_manager.so be
;
AbsSymLink <boot!home!config!lib>libdisk_device_manager.so
: libdisk_device_manager.so : /boot/home/config/lib ;
Depends DiskDeviceManagerTest : <boot!home!config!lib>libkernelland_emu.so ;
# Also build all modules:
Depends DiskDeviceManagerTest :
<boot!home!config!lib>libkernelland_emu.so
<partitioning_system>intel
;