VirtualBox

Ignore:
Timestamp:
May 23, 2019 12:09:12 AM (6 years ago)
Author:
vboxsync
Message:

tdAddBasic1.py,tdAddSharedFolders1.py: Enabled shared folder testing after more adjustments. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddSharedFolders1.py

    r78644 r78675  
    5454        base.SubTestDriverBase.__init__(self, 'add-shared-folders', oTstDrv);
    5555
    56         self.asTestsDef = [ 'fsperf', ];
    57         self.asTests    = self.asTestsDef;
     56        self.asTestsDef  = [ 'fsperf', ];
     57        self.asTests     = self.asTestsDef;
     58        self.asExtraArgs = [];
    5859
    5960    def parseOption(self, asArgs, iArg):
     
    7071                                                 % (s, ' '.join(self.asTestsDef)));
    7172            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;
    7278        return iArg;
    7379
     
    7682        reporter.log('  --add-shared-folders-tests <t1[:t2[:]]>');
    7783        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
    7887        return True;
    7988
     
    158167        if fSkip is False:
    159168            # 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).
    163172            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                                          'Windows2008', 'Windows2008_64']:
    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');
    168177
    169178            # Configure I/O block sizes according to guest memory size:
     
    183192                asArgs.append('--add-block-size=134217728'); # 128 MiB
    184193
     194            asArgs.extend(self.asExtraArgs);
    185195            reporter.log2('Starting guest FsPerf (%s)...' % (asArgs,));
    186196            fRc = self.oTstDrv.txsRunTest(oTxsSession, 'FsPerf', 10 * 60 * 1000,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette