Changeset 57289 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Aug 12, 2015 12:15:31 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 102048
- Location:
- trunk/src/VBox/ValidationKit/tests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r56755 r57289 1511 1511 # Check basic operations. 1512 1512 tdTestSessionEx([ # Initial environment is empty. 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1513 tdStepSessionCheckEnv(), 1514 # Check clearing empty env. 1515 tdStepSessionClearEnv(), 1516 tdStepSessionCheckEnv(), 1517 # Check set. 1518 tdStepSessionSetEnv('FOO', 'BAR'), 1519 tdStepSessionCheckEnv(['FOO=BAR',]), 1520 tdStepRequireMinimumApiVer(5.0), # 4.3 can't cope with the remainder. 1521 tdStepSessionClearEnv(), 1522 tdStepSessionCheckEnv(), 1523 # Check unset. 1524 tdStepSessionUnsetEnv('BAR'), 1525 tdStepSessionCheckEnv(['BAR']), 1526 tdStepSessionClearEnv(), 1527 tdStepSessionCheckEnv(), 1528 # Set + unset. 1529 tdStepSessionSetEnv('FOO', 'BAR'), 1530 tdStepSessionCheckEnv(['FOO=BAR',]), 1531 tdStepSessionUnsetEnv('FOO'), 1532 tdStepSessionCheckEnv(['FOO']), 1533 # Bulk environment changes (via attrib) (shall replace existing 'FOO'). 1534 tdStepSessionBulkEnv( ['PATH=/bin:/usr/bin', 'TMPDIR=/var/tmp', 'USER=root']), 1535 tdStepSessionCheckEnv(['PATH=/bin:/usr/bin', 'TMPDIR=/var/tmp', 'USER=root']), 1536 ]), 1537 1537 tdTestSessionEx([ # Check that setting the same value several times works. 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1538 tdStepSessionSetEnv('FOO','BAR'), 1539 tdStepSessionCheckEnv([ 'FOO=BAR',]), 1540 tdStepSessionSetEnv('FOO','BAR2'), 1541 tdStepSessionCheckEnv([ 'FOO=BAR2',]), 1542 tdStepSessionSetEnv('FOO','BAR3'), 1543 tdStepSessionCheckEnv([ 'FOO=BAR3',]), 1544 tdStepRequireMinimumApiVer(5.0), # 4.3 can't cope with the remainder. 1545 # Add a little unsetting to the mix. 1546 tdStepSessionSetEnv('BAR', 'BEAR'), 1547 tdStepSessionCheckEnv([ 'FOO=BAR3', 'BAR=BEAR',]), 1548 tdStepSessionUnsetEnv('FOO'), 1549 tdStepSessionCheckEnv([ 'FOO', 'BAR=BEAR',]), 1550 tdStepSessionSetEnv('FOO','BAR4'), 1551 tdStepSessionCheckEnv([ 'FOO=BAR4', 'BAR=BEAR',]), 1552 # The environment is case sensitive. 1553 tdStepSessionSetEnv('foo','BAR5'), 1554 tdStepSessionCheckEnv([ 'FOO=BAR4', 'BAR=BEAR', 'foo=BAR5']), 1555 tdStepSessionUnsetEnv('foo'), 1556 tdStepSessionCheckEnv([ 'FOO=BAR4', 'BAR=BEAR', 'foo']), 1557 ]), 1558 1558 tdTestSessionEx([ # Bulk settings merges stuff, last entry standing. 1559 1560 1561 1562 1563 1564 1559 tdStepSessionBulkEnv(['FOO=bar', 'foo=bar', 'FOO=doofus', 'TMPDIR=/tmp', 'foo=bar2']), 1560 tdStepSessionCheckEnv(['FOO=doofus', 'TMPDIR=/tmp', 'foo=bar2']), 1561 tdStepRequireMinimumApiVer(5.0), # 4.3 is buggy! 1562 tdStepSessionBulkEnv(['2=1+1', 'FOO=doofus2', ]), 1563 tdStepSessionCheckEnv(['2=1+1', 'FOO=doofus2' ]), 1564 ]), 1565 1565 # Invalid variable names. 1566 tdTestSessionEx([ tdStepSessionSetEnv('', 'FOO', vbox.ComError.E_INVALIDARG), 1567 tdStepSessionCheckEnv(), 1568 tdStepRequireMinimumApiVer(5.0), # 4.3 is too relaxed checking input! 1569 tdStepSessionSetEnv('=', '===', vbox.ComError.E_INVALIDARG), 1570 tdStepSessionCheckEnv(), 1571 tdStepSessionSetEnv('FOO=', 'BAR', vbox.ComError.E_INVALIDARG), 1572 tdStepSessionCheckEnv(), 1573 tdStepSessionSetEnv('=FOO', 'BAR', vbox.ComError.E_INVALIDARG), 1574 tdStepSessionCheckEnv(), 1575 tdStepRequireMinimumApiVer(5.0), # 4.3 is buggy and too relaxed! 1576 tdStepSessionBulkEnv(['', 'foo=bar'], vbox.ComError.E_INVALIDARG), 1577 tdStepSessionCheckEnv(), 1578 tdStepSessionBulkEnv(['=', 'foo=bar'], vbox.ComError.E_INVALIDARG), 1579 tdStepSessionCheckEnv(), 1580 tdStepSessionBulkEnv(['=FOO', 'foo=bar'], vbox.ComError.E_INVALIDARG), 1581 tdStepSessionCheckEnv(), 1582 ]), 1566 tdTestSessionEx([ 1567 tdStepSessionSetEnv('', 'FOO', vbox.ComError.E_INVALIDARG), 1568 tdStepSessionCheckEnv(), 1569 tdStepRequireMinimumApiVer(5.0), # 4.3 is too relaxed checking input! 1570 tdStepSessionSetEnv('=', '===', vbox.ComError.E_INVALIDARG), 1571 tdStepSessionCheckEnv(), 1572 tdStepSessionSetEnv('FOO=', 'BAR', vbox.ComError.E_INVALIDARG), 1573 tdStepSessionCheckEnv(), 1574 tdStepSessionSetEnv('=FOO', 'BAR', vbox.ComError.E_INVALIDARG), 1575 tdStepSessionCheckEnv(), 1576 tdStepRequireMinimumApiVer(5.0), # 4.3 is buggy and too relaxed! 1577 tdStepSessionBulkEnv(['', 'foo=bar'], vbox.ComError.E_INVALIDARG), 1578 tdStepSessionCheckEnv(), 1579 tdStepSessionBulkEnv(['=', 'foo=bar'], vbox.ComError.E_INVALIDARG), 1580 tdStepSessionCheckEnv(), 1581 tdStepSessionBulkEnv(['=FOO', 'foo=bar'], vbox.ComError.E_INVALIDARG), 1582 tdStepSessionCheckEnv(), 1583 ]), 1583 1584 # A bit more weird keys/values. 1584 1585 tdTestSessionEx([ tdStepSessionSetEnv('$$$', ''), … … 1586 1587 tdTestSessionEx([ tdStepSessionSetEnv('$$$', '%%%'), 1587 1588 tdStepSessionCheckEnv([ '$$$=%%%',]), 1588 1589 ]), 1589 1590 tdTestSessionEx([ tdStepRequireMinimumApiVer(5.0), # 4.3 is buggy! 1590 1591 tdStepSessionSetEnv(u'ß$%ß&', ''), 1591 1592 tdStepSessionCheckEnv([ u'ß$%ß&=',]), 1592 1593 ]), 1593 1594 # Misc stuff. 1594 1595 tdTestSessionEx([ tdStepSessionSetEnv('FOO', ''), 1595 1596 tdStepSessionCheckEnv(['FOO=',]), 1596 1597 ]), 1597 1598 tdTestSessionEx([ tdStepSessionSetEnv('FOO', 'BAR'), 1598 1599 tdStepSessionCheckEnv(['FOO=BAR',]) 1599 1600 ],), 1600 1601 tdTestSessionEx([ tdStepSessionSetEnv('FOO', 'BAR'), 1601 1602 tdStepSessionSetEnv('BAR', 'BAZ'), 1602 1603 tdStepSessionCheckEnv([ 'FOO=BAR', 'BAR=BAZ',]), 1603 1604 ]), 1604 1605 ]; 1605 1606 return tdTestSessionEx.executeListTestSessions(aoTests, self.oTstDrv, oSession, oTxsSession, oTestVm, 'SessionEnv'); … … 2522 2523 [ tdTestDirCreate(sUser = sUser, sPassword = sPassword, 2523 2524 sDirectory = os.path.join(sScratch, 2524 "".join(random.choice(string.ascii_lowercase) for i in range(32))) ),2525 "".join(random.choice(string.ascii_lowercase) for i in range(32))) ), 2525 2526 tdTestResult(fRc = True) ], 2526 2527 [ tdTestDirCreate(sUser = sUser, sPassword = sPassword, 2527 2528 sDirectory = os.path.join(sScratch, 2528 "".join(random.choice(string.ascii_lowercase) for i in range(128))) ),2529 "".join(random.choice(string.ascii_lowercase) for i in range(128))) ), 2529 2530 tdTestResult(fRc = True) ], 2530 2531 # Following two should fail on Windows (paths too long). Both should timeout. 2531 2532 [ tdTestDirCreate(sUser = sUser, sPassword = sPassword, 2532 2533 sDirectory = os.path.join(sScratch, 2533 "".join(random.choice(string.ascii_lowercase) for i in range(255))) ),2534 "".join(random.choice(string.ascii_lowercase) for i in range(255))) ), 2534 2535 tdTestResult(fRc = False) ], 2535 2536 [ tdTestDirCreate(sUser = sUser, sPassword = sPassword, 2536 2537 sDirectory = os.path.join(sScratch, 2537 "".join(random.choice(string.ascii_lowercase) for i in range(1024))) ), 2538 "".join(random.choice(string.ascii_lowercase) for i in range(1024))) 2539 ), 2538 2540 tdTestResult(fRc = False) ] 2539 2541 ]); … … 2813 2815 aaTests.extend([ 2814 2816 # Invalid stuff. 2815 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = ''), tdTestResult(fRc = False) ], 2816 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'C:\\Windows'), tdTestResult(fRc = False) ], 2817 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'C:\\Windows'), tdTestResult(fRc = False) ], 2817 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = ''), 2818 tdTestResult(fRc = False) ], 2819 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'C:\\Windows'), 2820 tdTestResult(fRc = False) ], 2821 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'C:\\Windows'), 2822 tdTestResult(fRc = False) ], 2818 2823 # More unusual stuff. 2819 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'z:\\'), tdTestResult(fRc = False) ], 2824 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'z:\\'), 2825 tdTestResult(fRc = False) ], 2820 2826 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = '\\\\uncrulez\\foo'), 2821 2827 tdTestResult(fRc = False) ], 2822 2828 # Non-existing stuff. 2823 2829 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'c:\\Apps\\nonexisting'), 2824 2830 tdTestResult(fRc = False) ], 2825 2831 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'c:\\Apps\\testFileRemove'), 2826 2832 tdTestResult(fRc = False) ], 2827 2833 # Try to delete system files. 2828 2834 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'c:\\pagefile.sys'), 2829 2835 tdTestResult(fRc = False) ], 2830 2836 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'c:\\Windows\\kernel32.sys'), 2831 2837 tdTestResult(fRc = False) ] 2832 2838 ]); 2833 2839 … … 2836 2842 # Try delete some unimportant media stuff. 2837 2843 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'c:\\Windows\\Media\\chimes.wav'), 2838 2844 tdTestResult(fRc = True) ], 2839 2845 # Second attempt should fail. 2840 2846 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'c:\\Windows\\Media\\chimes.wav'), 2841 2847 tdTestResult(fRc = False) ], 2842 2848 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'c:\\Windows\\Media\\chord.wav'), 2843 2849 tdTestResult(fRc = True) ], 2844 2850 [ tdTestFileRemove(sUser = sUser, sPassword = sPassword, sFile = 'c:\\Windows\\Media\\chord.wav'), 2845 2851 tdTestResult(fRc = False) ] 2846 2852 ]); 2847 2853 else: … … 2882 2888 tdTestSessionEx([ tdStepStatDir('.'), 2883 2889 tdStepStatDir('..'), 2884 2890 ]), 2885 2891 ]; 2886 2892 if oTestVm.isWindows(): … … 2905 2911 tdStepStatFile('C:\\Windows\\System32\\kernel32.dll'), 2906 2912 tdStepStatFile('C:/Windows/System32/kernel32.dll') 2907 2913 ]) ]; 2908 2914 elif oTestVm.isOS2(): 2909 2915 aoTests += [ tdTestSessionEx([ tdStepStatDir('C:\\OS2'), … … 2915 2921 tdStepStatFile('C:\\CONFIG.SYS'), 2916 2922 tdStepStatFile('C:\\OS2\\DLL\\DOSCALL1.DLL'), 2917 2923 ]) ]; 2918 2924 else: # generic unix. 2919 2925 aoTests += [ tdTestSessionEx([ tdStepStatDir('/'), … … 2926 2932 tdStepStatFile('/bin/cp'), 2927 2933 tdStepStatFile('/bin/date'), 2928 2934 ]) ]; 2929 2935 # None existing stuff. 2930 2936 if oTestVm.isWindows() or oTestVm.isOS2(): … … 2939 2945 tdStepStatPathNotFound('N:\\'), # ASSUMES nothing mounted on N:! 2940 2946 tdStepStatPathNotFound('\\\\NoSuchUncServerName\\NoSuchShare'), 2941 2947 ]) ]; 2942 2948 else: # generic unix. 2943 2949 aoTests += [ tdTestSessionEx([ tdStepStatFileNotFound('/NoSuchFileOrDirectory', ), … … 2945 2951 tdStepStatPathNotFound('/NoSuchDirectory/'), 2946 2952 tdStepStatPathNotFound('/NoSuchDirectory/.'), 2947 2953 ]) ]; 2948 2954 # Invalid parameter check. 2949 2955 aoTests += [ tdTestSessionEx([ tdStepStat('', vbox.ComError.E_INVALIDARG), ]), ]; … … 3293 3299 aaTests.extend([ 3294 3300 # Destination missing. 3295 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = ''), tdTestResult(fRc = False) ], 3301 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = ''), 3302 tdTestResult(fRc = False) ], 3296 3303 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows', 3297 aFlags = [ 1234 ] ), tdTestResult(fRc = False) ], 3304 aFlags = [ 1234 ] ), 3305 tdTestResult(fRc = False) ], 3298 3306 # Source missing. 3299 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sDst = ''), tdTestResult(fRc = False) ], 3307 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sDst = ''), 3308 tdTestResult(fRc = False) ], 3300 3309 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sDst = 'C:\\Windows', 3301 aFlags = [ 1234 ] ), tdTestResult(fRc = False) ], 3310 aFlags = [ 1234 ] ), 3311 tdTestResult(fRc = False) ], 3302 3312 # Nothing to copy (source and/or destination is empty). 3303 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'z:\\'), tdTestResult(fRc = False) ], 3313 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'z:\\'), 3314 tdTestResult(fRc = False) ], 3304 3315 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = '\\\\uncrulez\\foo'), 3305 tdTestResult(fRc = False) ], 3316 3317 tdTestResult(fRc = False) ], 3306 3318 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'non-exist', 3307 sDst = os.path.join(sScratch, 'non-exist.dll')), tdTestResult(fRc = False) ], 3319 sDst = os.path.join(sScratch, 'non-exist.dll')), 3320 tdTestResult(fRc = False) ], 3308 3321 # Copying single files. 3309 3322 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3310 sDst = 'C:\\non-exist\\'), tdTestResult(fRc = False) ], 3323 sDst = 'C:\\non-exist\\'), 3324 tdTestResult(fRc = False) ], 3311 3325 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3312 sDst = 'C:\\non\\exist\\'), tdTestResult(fRc = False) ], 3326 sDst = 'C:\\non\\exist\\'), 3327 tdTestResult(fRc = False) ], 3313 3328 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3314 sDst = 'C:\\non\\exist\\renamedfile.dll'), tdTestResult(fRc = False) ], 3329 sDst = 'C:\\non\\exist\\renamedfile.dll'), 3330 tdTestResult(fRc = False) ], 3315 3331 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3316 sDst = os.path.join(sScratch, 'HostGuestAdditions.iso')), tdTestResult(fRc = True) ], 3332 sDst = os.path.join(sScratch, 'HostGuestAdditions.iso')), 3333 tdTestResult(fRc = True) ], 3317 3334 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3318 sDst = os.path.join(sScratch, 'HostGuestAdditions.iso')), tdTestResult(fRc = True) ], 3335 sDst = os.path.join(sScratch, 'HostGuestAdditions.iso')), 3336 tdTestResult(fRc = True) ], 3319 3337 # Destination is a directory, should fail. 3320 3338 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3321 sDst = sScratch), tdTestResult(fRc = False) ] 3339 sDst = sScratch), 3340 tdTestResult(fRc = False) ] 3322 3341 ## @todo Add testing the CopyTo flags here! 3323 3342 ]); … … 3328 3347 # Copying directories with contain files we don't have read access to. 3329 3348 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\security', 3330 sDst = sScratch), tdTestResult(fRc = False) ], 3349 sDst = sScratch), 3350 tdTestResult(fRc = False) ], 3331 3351 # Copying directories with regular files. 3332 3352 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Help', 3333 sDst = sScratch), tdTestResult(fRc = True) ] 3353 sDst = sScratch), 3354 tdTestResult(fRc = True) ] 3334 3355 ]); 3335 3356 else: … … 3392 3413 tdTestResult(fRc = False) ], 3393 3414 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sDst = 'C:\\Windows', 3394 aFlags = [ 1234 ] ),3415 aFlags = [ 1234 ] ), 3395 3416 tdTestResult(fRc = False) ], 3396 3417 # Nothing to copy (sDst is empty / unreachable). … … 3401 3422 tdTestResult(fRc = False) ], 3402 3423 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'non-exist', 3403 sDst = os.path.join(sScratch, 'non-exist.dll')),3424 sDst = os.path.join(sScratch, 'non-exist.dll')), 3404 3425 tdTestResult(fRc = False) ] 3405 3426 ## @todo Add testing the CopyFrom aFlags here! … … 3422 3443 # Destination is a directory, should fail. 3423 3444 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3424 sDst = sScratch), tdTestResult(fRc = False) ], 3445 sDst = sScratch), 3446 tdTestResult(fRc = False) ], 3425 3447 # Copying directories. 3426 3448 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Web', 3427 sDst = sScratch), tdTestResult(fRc = True) ] 3449 sDst = sScratch), 3450 tdTestResult(fRc = True) ] 3428 3451 ## @todo Add testing the CopyFrom aFlags here! 3429 3452 ]); -
trunk/src/VBox/ValidationKit/tests/network/tdNetBenchmark1.py
r56295 r57289 424 424 if fRc and 'tcp-latency' in self.asTests and sAddr is not None: 425 425 for cbPkt in self.acbLatencyPkts: 426 fRc = self.txsRunTest(oTxsSession, '%u bytes' % (cbPkt), self.cSecsRun * 1000 * 4, \ 427 '${CDROM}/${OS/ARCH}/NetPerf${EXESUFF}', 428 ('NetPerf', '--client', sAddr, '--interval', self.cSecsRun, '--len', cbPkt, '--mode', 'latency')); 426 fRc = self.txsRunTest(oTxsSession, '%u bytes' % (cbPkt), self.cSecsRun * 1000 * 4, 427 '${CDROM}/${OS/ARCH}/NetPerf${EXESUFF}', 428 ('NetPerf', '--client', sAddr, '--interval', self.cSecsRun, '--len', cbPkt, 429 '--mode', 'latency')); 429 430 if not fRc: 430 431 break; … … 436 437 if fRc and 'tcp-throughput' in self.asTests and sAddr is not None: 437 438 for cbPkt in self.acbThroughputPkts: 438 fRc = self.txsRunTest(oTxsSession, '%u bytes' % (cbPkt), self.cSecsRun * 2 * 1000 * 4, \ 439 '${CDROM}/${OS/ARCH}/NetPerf${EXESUFF}', 440 ('NetPerf', '--client', sAddr, '--interval', self.cSecsRun, '--len', cbPkt, '--mode', 'throughput')); 439 fRc = self.txsRunTest(oTxsSession, '%u bytes' % (cbPkt), self.cSecsRun * 2 * 1000 * 4, 440 '${CDROM}/${OS/ARCH}/NetPerf${EXESUFF}', 441 ('NetPerf', '--client', sAddr, '--interval', self.cSecsRun, '--len', cbPkt, 442 '--mode', 'throughput')); 441 443 if not fRc: 442 444 break; … … 587 589 # Start the test servers on it. 588 590 fRc = self.oGuestToGuestTxs.syncExec('${CDROM}/${OS/ARCH}/NetPerf${EXESUFF}', 589 ('NetPerf', '--server', '--daemonize'), fWithTestPipe=False);591 ('NetPerf', '--server', '--daemonize'), fWithTestPipe=False); 590 592 591 593 # Loop thru the test VMs. -
trunk/src/VBox/ValidationKit/tests/storage/tdStorageBenchmark1.py
r55084 r57289 409 409 # Prepare test disk, just create filesystem without partition 410 410 reporter.testStart('mkfs.ext4'); 411 fRc = self.txsRunTest(oTxsSession, 'Create FS', 60000, \412 '/sbin/mkfs.ext4',413 ('mkfs.ext4', '-F', '/dev/vboxtest'));411 fRc = self.txsRunTest(oTxsSession, 'Create FS', 60000, 412 '/sbin/mkfs.ext4', 413 ('mkfs.ext4', '-F', '/dev/vboxtest')); 414 414 reporter.testDone(); 415 415 416 416 reporter.testStart('mount'); 417 fRc = self.txsRunTest(oTxsSession, 'Mount FS', 30000, \418 '/bin/mount',419 ('mount', '/dev/vboxtest', '/mnt'));417 fRc = self.txsRunTest(oTxsSession, 'Mount FS', 30000, 418 '/bin/mount', 419 ('mount', '/dev/vboxtest', '/mnt')); 420 420 reporter.testDone(); 421 421 … … 423 423 if fRc and 'iozone' in self.asTests: 424 424 oStdOut = IozoneStdOutWrapper(); 425 fRc = self.txsRunTestRedirectStd(oTxsSession, '2G', 3600000, \ 426 '/usr/bin/iozone', 427 ('iozone', '-r', '64k', '-s', '2g', '-t', '1', '-T', '-I', '-H', '32','-F', '/mnt/iozone'), \ 428 (), '', '/dev/null', oStdOut, '/dev/null', '/dev/null'); 425 fRc = self.txsRunTestRedirectStd(oTxsSession, '2G', 3600000, 426 '/usr/bin/iozone', 427 ('iozone', '-r', '64k', '-s', '2g', '-t', '1', '-T', '-I', 428 '-H', '32','-F', '/mnt/iozone'), 429 (), '', '/dev/null', oStdOut, '/dev/null', '/dev/null'); 429 430 if fRc is True: 430 431 reporter.log("Initial writer: " + str(oStdOut.getInitWriter())); … … 447 448 oFioWrapper = FioWrapper('64k', '2g', '32', '/mnt'); 448 449 fRc = self.txsUploadString(oSession, oTxsSession, oFioWrapper.getConfig(), '${SCRATCH}/aio-test'); 449 fRc = fRc and self.txsRunTestRedirectStd(oTxsSession, '2G', 3600000, \450 '/usr/bin/fio', ('fio', '${SCRATCH}/aio-test'), \451 (), '', '/dev/null', oFioWrapper, '/dev/null', '/dev/null');450 fRc = fRc and self.txsRunTestRedirectStd(oTxsSession, '2G', 3600000, 451 '/usr/bin/fio', ('fio', '${SCRATCH}/aio-test'), 452 (), '', '/dev/null', oFioWrapper, '/dev/null', '/dev/null'); 452 453 else: 453 454 reporter.testDone(fSkipped = True); -
trunk/src/VBox/ValidationKit/tests/storage/tdStorageStress1.py
r55084 r57289 209 209 # Some stupid trickery to guess the location of the iso. ## fixme - testsuite unzip ++ 210 210 sVBoxValidationKit_iso = os.path.abspath(os.path.join(os.path.dirname(__file__), 211 '../../VBoxValidationKitStorIo.iso'));211 '../../VBoxValidationKitStorIo.iso')); 212 212 if not os.path.isfile(sVBoxValidationKit_iso): 213 213 sVBoxValidationKit_iso = os.path.abspath(os.path.join(os.path.dirname(__file__), 214 '../../VBoxValidationKitStorIo.iso'));214 '../../VBoxValidationKitStorIo.iso')); 215 215 if not os.path.isfile(sVBoxValidationKit_iso): 216 216 sVBoxValidationKit_iso = '/mnt/ramdisk/vbox/svn/trunk/validationkit/VBoxValidationKitStorIo.iso'; … … 314 314 reporter.testStart('xfstests'); 315 315 if fRc and 'xfstests' in self.asTests: 316 fRc = self.txsRunTest(oTxsSession, 'xfstests', 3600000, \317 '/bin/sh',318 ('sh', '-c', '(cd /tmp/xfstests && ./check -g auto)'), \319 ('TEST_DIR=/mnt/test', 'TEST_DEV=/dev/sdb', 'SCRATCH_MNT=/mnt/scratch', 'SCRATCH_DEV=/dev/sdc', \320 'FSTYP=' + sGuestFs));316 fRc = self.txsRunTest(oTxsSession, 'xfstests', 3600000, 317 '/bin/sh', 318 ('sh', '-c', '(cd /tmp/xfstests && ./check -g auto)'), 319 ('TEST_DIR=/mnt/test', 'TEST_DEV=/dev/sdb', 'SCRATCH_MNT=/mnt/scratch', 'SCRATCH_DEV=/dev/sdc', 320 'FSTYP=' + sGuestFs)); 321 321 reporter.testDone(); 322 322 else: -
trunk/src/VBox/ValidationKit/tests/unittests/tdUnitTest1.py
r56771 r57289 171 171 'testcase/tstCryptoPkcs7Sign': '',# failed: 29330:error:02001002:lib(2):func(1):reason(2):NA:0:fopen('server.pem': '','r') 172 172 'testcase/tstCompressionBenchmark': '', # failed: error: RTZipBlockCompress failed 173 # for 'RTZipBlock/LZJB' (#4): VERR_NOT_SUPPORTED173 # for 'RTZipBlock/LZJB' (#4): VERR_NOT_SUPPORTED 174 174 'testcase/tstLdr-4': '', # failed: Failed to get bits for '/home/vbox/test/tmp/bin/testcase/tstLdrObjR0.r0'/0, 175 # rc=VERR_SYMBOL_VALUE_TOO_BIG. aborting test175 # rc=VERR_SYMBOL_VALUE_TOO_BIG. aborting test 176 176 'tstPDMAsyncCompletionStress': '', # VERR_INVALID_PARAMETER (cbSize = 0) 177 177 'tstMicro': '', # doesn't work on solaris, fix later if we care. … … 622 622 except: 623 623 if sName in [ 'tstAsmStructsRC', # 32-bit, may fail to start on 64-bit linux. Just ignore. 624 624 ]: 625 625 reporter.logXcpt(); 626 626 fSkipped = True;
Note:
See TracChangeset
for help on using the changeset viewer.