use of org.eclipse.tracecompass.internal.analysis.os.linux.core.inputoutput.InputOutputAnalysisModule in project tracecompass by tracecompass.
the class InputOutputDataProviderTest method setUp.
@Override
@NonNull
protected InputOutputAnalysisModule setUp(String fileName) {
InputOutputAnalysisModule module = super.setUp(fileName);
TmfTestHelper.executeAnalysis(module);
return module;
}
use of org.eclipse.tracecompass.internal.analysis.os.linux.core.inputoutput.InputOutputAnalysisModule in project tracecompass by tracecompass.
the class InputOutputDiskTest method testDeviceStrings.
/**
* Test the {@link Disk#getDeviceIdString()} and
* {@link Disk#getDiskName()} methods
*/
@Test
public void testDeviceStrings() {
InputOutputAnalysisModule module = setUp(fTestCase.getTraceFileName());
for (Entry<Integer, DiskInfo> deviceInfo : fTestCase.getDiskInfo().entrySet()) {
Integer deviceId = deviceInfo.getKey();
DiskInfo diskInfo = deviceInfo.getValue();
Disk disk = getDisk(module, deviceId);
assertNotNull(disk);
assertEquals("Device ID string for " + deviceId, diskInfo.getDeviceString(), disk.getDeviceIdString());
assertEquals("Disk name string for " + deviceId, diskInfo.getDeviceName(), disk.getDiskName());
assertEquals("Disk activity for " + deviceId, diskInfo.hasActivity(), disk.hasActivity());
}
}
use of org.eclipse.tracecompass.internal.analysis.os.linux.core.inputoutput.InputOutputAnalysisModule in project tracecompass by tracecompass.
the class InputOutputDiskTest method setUp.
@Override
@NonNull
protected InputOutputAnalysisModule setUp(String fileName) {
InputOutputAnalysisModule module = super.setUp(fileName);
TmfTestHelper.executeAnalysis(module);
return module;
}
use of org.eclipse.tracecompass.internal.analysis.os.linux.core.inputoutput.InputOutputAnalysisModule in project tracecompass by tracecompass.
the class InputOutputInformationProviderTest method setUp.
@Override
@NonNull
protected InputOutputAnalysisModule setUp(String fileName) {
InputOutputAnalysisModule module = super.setUp(fileName);
TmfTestHelper.executeAnalysis(module);
return module;
}
use of org.eclipse.tracecompass.internal.analysis.os.linux.core.inputoutput.InputOutputAnalysisModule in project tracecompass by tracecompass.
the class InputOutputInformationProviderTest method testGetDisks.
/**
* Test the
* {@link InputOutputInformationProvider#getDisks(InputOutputAnalysisModule)}
* method
*/
@Test
public void testGetDisks() {
InputOutputAnalysisModule module = setUp(fTestCase.getTraceFileName());
Collection<Disk> disks = InputOutputInformationProvider.getDisks(module);
assertEquals(fDiskCount, disks.size());
}
Aggregations