Changeset 78675 in vbox for trunk/src/VBox/ValidationKit/tests/additions/tdAddSharedFolders1.py
- Timestamp:
- May 23, 2019 12:09:12 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddSharedFolders1.py
r78644 r78675 54 54 base.SubTestDriverBase.__init__(self, 'add-shared-folders', oTstDrv); 55 55 56 self.asTestsDef = [ 'fsperf', ]; 57 self.asTests = self.asTestsDef; 56 self.asTestsDef = [ 'fsperf', ]; 57 self.asTests = self.asTestsDef; 58 self.asExtraArgs = []; 58 59 59 60 def parseOption(self, asArgs, iArg): … … 70 71 % (s, ' '.join(self.asTestsDef))); 71 72 return iNext; 73 elif asArgs[iArg] == '--add-shared-folders-extra-arg': 74 iArg += 1; 75 iNext = self.oTstDrv.requireMoreArgs(1, asArgs, iArg); 76 self.asExtraArgs.append(asArgs[iArg]); 77 return iNext; 72 78 return iArg; 73 79 … … 76 82 reporter.log(' --add-shared-folders-tests <t1[:t2[:]]>'); 77 83 reporter.log(' Default: all (%s)' % (':'.join(self.asTestsDef))); 84 reporter.log(' --add-shared-folders-extra-args <fsperf-arg>'); 85 reporter.log(' Adds an extra FsPerf argument. Can be repeated.'); 86 78 87 return True; 79 88 … … 158 167 if fSkip is False: 159 168 # Common arguments: 160 asArgs = ['FsPerf', '-d', sMountPoint1 + sGuestSlash + 'fstestdir-1', '- m200'];161 162 # Skip mmap on older windows systems without CcCoherencyFlushAndPurgeCache (>= w7).169 asArgs = ['FsPerf', '-d', sMountPoint1 + sGuestSlash + 'fstestdir-1', '-s8']; 170 171 # Skip part of mmap on older windows systems without CcCoherencyFlushAndPurgeCache (>= w7). 163 172 reporter.log2('oTestVm.sGuestOsType=%s' % (oTestVm.sGuestOsType,)); 164 if oTestVm.sGuestOsType in [ 'WindowsNT3x', 'WindowsNT4', 'Windows2000', 'WindowsXP', 'WindowsXP_64',165 'Windows2003', 'Windows2003_64', 'WindowsVista', 'WindowsVista_64',166 167 asArgs.append('--no-mmap ');173 if oTestVm.getNonCanonicalGuestOsType() \ 174 in [ 'WindowsNT3x', 'WindowsNT4', 'Windows2000', 'WindowsXP', 'WindowsXP_64', 'Windows2003', 175 'Windows2003_64', 'WindowsVista', 'WindowsVista_64', 'Windows2008', 'Windows2008_64']: 176 asArgs.append('--no-mmap-coherency'); 168 177 169 178 # Configure I/O block sizes according to guest memory size: … … 183 192 asArgs.append('--add-block-size=134217728'); # 128 MiB 184 193 194 asArgs.extend(self.asExtraArgs); 185 195 reporter.log2('Starting guest FsPerf (%s)...' % (asArgs,)); 186 196 fRc = self.oTstDrv.txsRunTest(oTxsSession, 'FsPerf', 10 * 60 * 1000,
Note:
See TracChangeset
for help on using the changeset viewer.