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:
parent
852d12ef4c
commit
07d370e32a
@ -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
3
src/tests/kernel/Jamfile
Normal file
@ -0,0 +1,3 @@
|
||||
SubDir OBOS_TOP src tests kernel ;
|
||||
|
||||
SubInclude OBOS_TOP src tests kernel core ;
|
3
src/tests/kernel/core/Jamfile
Normal file
3
src/tests/kernel/core/Jamfile
Normal file
@ -0,0 +1,3 @@
|
||||
SubDir OBOS_TOP src tests kernel core ;
|
||||
|
||||
SubInclude OBOS_TOP src tests kernel core disk_device_manager ;
|
@ -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;
|
||||
}
|
||||
|
23
src/tests/kernel/core/disk_device_manager/Jamfile
Normal file
23
src/tests/kernel/core/disk_device_manager/Jamfile
Normal 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
|
||||
;
|
Loading…
Reference in New Issue
Block a user