Changeset 14991 in vbox for trunk/src/VBox/Main/testcase
- Timestamp:
- Dec 4, 2008 3:17:33 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 40362
- Location:
- trunk/src/VBox/Main/testcase
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/Makefile.kmk
r14730 r14991 33 33 $(if $(VBOX_WITH_RESOURCE_USAGE_API),tstCollector,) 34 34 PROGRAMS.linux += \ 35 $(if $(VBOX_OSE),, $(if $(VBOX_USB_WITH_SYSFS),tstUSBLinux,))35 $(if $(VBOX_OSE),,tstHostHardwareLinux) 36 36 endif # !VBOX_WITH_TESTCASES 37 37 endif # !VBOX_ONLY_SDK … … 120 120 121 121 # 122 # tst USBLinux122 # tstHostHardwareLinux 123 123 # 124 tstUSBLinux_TEMPLATE = VBOXR3TSTEXE 125 tstUSBLinux_SOURCES = \ 126 tstUSBLinux.cpp \ 127 ../linux/USBProxyServiceLinux.cpp 128 tstUSBLinux_INCS = . ../include 129 tstUSBLinux_DEFS = \ 124 tstHostHardwareLinux_TEMPLATE = VBOXR3TSTEXE 125 tstHostHardwareLinux_SOURCES = \ 126 tstHostHardwareLinux.cpp \ 127 ../linux/USBProxyServiceLinux.cpp \ 128 ../linux/HostHardwareLinux.cpp 129 tstHostHardwareLinux_INCS = . ../include 130 tstHostHardwareLinux_DEFS = \ 130 131 VBOX_TEST_USB_LINUX \ 131 132 $(if $(VBOX_WITHOUT_LINUX_COMPILER_H),VBOX_WITHOUT_LINUX_COMPILER_H,) \ 133 $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \ 132 134 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) 133 tst USBLinux_LIBS += $(PATH_OUT)/lib/USBLib.a134 tst USBLinux_CFLAGS += $(if $(VBOX_WITH_LIBHAL),$(VBOX_LIBHAL_CFLAGS),)135 tst USBLinux_CXXFLAGS += $(if $(VBOX_WITH_LIBHAL),$(VBOX_LIBHAL_CXXFLAGS),)136 tst USBLinux_LDFLAGS += $(if $(VBOX_WITH_LIBHAL),$(VBOX_LIBHAL_LDFLAGS),)135 tstHostHardwareLinux_LIBS += $(PATH_OUT)/lib/USBLib.a 136 tstHostHardwareLinux_CFLAGS += $(if $(VBOX_WITH_DBUS),$(VBOX_DBUS_CFLAGS),) 137 tstHostHardwareLinux_CXXFLAGS += $(if $(VBOX_WITH_DBUS),$(VBOX_DBUS_CXXFLAGS),) 138 tstHostHardwareLinux_LDFLAGS += $(if $(VBOX_WITH_DBUS),$(VBOX_DBUS_LDFLAGS),) 137 139 138 140 -
trunk/src/VBox/Main/testcase/tstHostHardwareLinux.cpp
r14933 r14991 14 14 */ 15 15 16 #include "tstUSBLinux.h" 16 #ifdef VBOX_USB_WITH_SYSFS 17 # include "tstUSBLinux.h" 18 #endif 19 20 #include <HostHardwareLinux.h> 17 21 18 22 #include <VBox/err.h> … … 27 31 { 28 32 RTR3Init(); 33 #ifdef VBOX_USB_WITH_SYSFS 29 34 USBProxyServiceLinux service; 30 35 service.initSysfs(); … … 74 79 } 75 80 } 81 #endif /* VBOX_USB_WITH_SYSFS */ 82 VBoxMainDriveInfo driveInfo; 83 g_testHostHardwareLinux = true; 84 int rc = driveInfo.updateFloppies(); 85 if (RT_SUCCESS (rc)) 86 rc = driveInfo.updateDVDs(); 87 if (RT_FAILURE (rc)) 88 { 89 RTPrintf("Failed to update the host drive information, error %Rrc\n", 90 rc); 91 return 1; 92 } 93 RTPrintf ("Listing floppy drives detected:\n"); 94 for (VBoxMainDriveInfo::DriveInfoList::const_iterator it = driveInfo.FloppyBegin(); 95 it != driveInfo.FloppyEnd(); ++it) 96 { 97 RTPrintf (" device: %s", it->mDevice.c_str()); 98 if (!it->mUdi.empty()) 99 RTPrintf (", udi: %s", it->mUdi.c_str()); 100 if (!it->mDescription.empty()) 101 RTPrintf (", description: %s", it->mDescription.c_str()); 102 RTPrintf ("\n"); 103 } 104 RTPrintf ("Listing DVD drives detected:\n"); 105 for (VBoxMainDriveInfo::DriveInfoList::const_iterator it = driveInfo.DVDBegin(); 106 it != driveInfo.DVDEnd(); ++it) 107 { 108 RTPrintf (" device: %s", it->mDevice.c_str()); 109 if (!it->mUdi.empty()) 110 RTPrintf (", udi: %s", it->mUdi.c_str()); 111 if (!it->mDescription.empty()) 112 RTPrintf (", description: %s", it->mDescription.c_str()); 113 RTPrintf ("\n"); 114 } 76 115 return 0; 77 116 } -
trunk/src/VBox/Main/testcase/tstUSBLinux.h
r14711 r14991 24 24 25 25 #ifdef VBOX_USB_WITH_SYSFS 26 # include "libhal.h"26 # include <libhal.h> 27 27 #endif 28 28
Note:
See TracChangeset
for help on using the changeset viewer.