Changeset 83336 in vbox for trunk/src/VBox/ValidationKit/tests/additions
- Timestamp:
- Mar 19, 2020 4:44:56 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r83310 r83336 1354 1354 'update_additions' 1355 1355 ]; 1356 self.asTests = self.asTestsDef;1356 self.asTests = 'copy_to'; # self.asTestsDef; 1357 1357 self.fSkipKnownBugs = False; 1358 1358 self.oTestFiles = None # type: vboxtestfileset.TestFileSet … … 1530 1530 # 1531 1531 cchGst = len(self.getGuestTempDir(oTestVm)) + 1 + len('addgst-1') + 1; 1532 cchHst = len(self.oTstDrv.sScratchPath) + 1 + len('c p2/addgst-1') + 1;1532 cchHst = len(self.oTstDrv.sScratchPath) + 1 + len('copyto/addgst-1') + 1; 1533 1533 cchMaxPath = 230; 1534 1534 if cchHst > cchGst: … … 4318 4318 # Paths and test files. 4319 4319 # 4320 sScratchHst = os.path.join(self.oTstDrv.sScratchPath, 'c p2');4320 sScratchHst = os.path.join(self.oTstDrv.sScratchPath, 'copyto'); 4321 4321 sScratchTestFilesHst = os.path.join(sScratchHst, self.oTestFiles.sSubDir); 4322 4322 sScratchEmptyDirHst = os.path.join(sScratchTestFilesHst, self.oTestFiles.oEmptyDir.sName); … … 4324 4324 sScratchTreeDirHst = os.path.join(sScratchTestFilesHst, self.oTestFiles.oTreeDir.sName); 4325 4325 4326 sScratchGst = oTestVm.pathJoin(self.getGuestTempDir(oTestVm), 'c p2');4326 sScratchGst = oTestVm.pathJoin(self.getGuestTempDir(oTestVm), 'copyto'); 4327 4327 sScratchDstDir1Gst = oTestVm.pathJoin(sScratchGst, 'dstdir1'); 4328 4328 sScratchDstDir2Gst = oTestVm.pathJoin(sScratchGst, 'dstdir2'); … … 4461 4461 if self.oTstDrv.fpApiVer > 5.2: # Copying directories via Main is supported only in versions > 5.2. 4462 4462 atTests.extend([ 4463 [ tdTestCopyToDir(sSrc = sScratchEmptyDirHst, sDst = sScratchDstDir1Gst), tdTestResultSuccess() ], 4463 [ tdTestCopyToDir(sSrc = sScratchEmptyDirHst, sDst = sScratchDstDir1Gst, 4464 afFlags = [vboxcon.DirectoryCopyFlag_CopyIntoExisting]), tdTestResultSuccess() ], 4465 # Try again. 4466 [ tdTestCopyToDir(sSrc = sScratchEmptyDirHst, sDst = sScratchDstDir1Gst, 4467 afFlags = [vboxcon.DirectoryCopyFlag_CopyIntoExisting]), tdTestResultSuccess() ], 4468 # Should fail, as destination directory already exists. 4464 4469 [ tdTestCopyToDir(sSrc = sScratchEmptyDirHst, sDst = sScratchDstDir1Gst), tdTestResultFailure() ], 4465 [ tdTestCopyToDir(sSrc = sScratchEmptyDirHst, sDst = sScratchDstDir1Gst,4466 afFlags = [vboxcon.DirectoryCopyFlag_CopyIntoExisting]), tdTestResultSuccess() ],4467 4470 # Try again with trailing slash, should yield the same result: 4468 [ tdTestCopyToDir(sSrc = sScratchEmptyDirHst, sDst = sScratchDstDir2Gst + oTestVm.pathSep()), 4469 tdTestResultSuccess() ], 4471 [ tdTestCopyToDir(sSrc = sScratchEmptyDirHst, sDst = sScratchDstDir2Gst + oTestVm.pathSep(), 4472 afFlags = [vboxcon.DirectoryCopyFlag_CopyIntoExisting]), tdTestResultSuccess() ], 4473 # Try again. 4474 [ tdTestCopyToDir(sSrc = sScratchEmptyDirHst, sDst = sScratchDstDir2Gst + oTestVm.pathSep(), 4475 afFlags = [vboxcon.DirectoryCopyFlag_CopyIntoExisting]), tdTestResultSuccess() ], 4476 # Should fail, as destination directory already exists. 4470 4477 [ tdTestCopyToDir(sSrc = sScratchEmptyDirHst, sDst = sScratchDstDir2Gst + oTestVm.pathSep()), 4471 4478 tdTestResultFailure() ], 4472 [ tdTestCopyToDir(sSrc = sScratchEmptyDirHst, sDst = sScratchDstDir2Gst + oTestVm.pathSep(),4473 afFlags = [vboxcon.DirectoryCopyFlag_CopyIntoExisting]),4479 # Copy with a different destination name just for the heck of it: 4480 [ tdTestCopyToDir(sSrc = sScratchEmptyDirHst, sDst = oTestVm.pathJoin(sScratchDstDir1Gst, 'empty2')), 4474 4481 tdTestResultSuccess() ], 4475 4482 ]); 4476 if not self.fSkipKnownBugs:4477 atTests.extend([4478 # Copy with a different destination name just for the heck of it:4479 [ tdTestCopyToDir(sSrc = sScratchEmptyDirHst, sDst = oTestVm.pathJoin(sScratchDstDir1Gst, 'empty2')),4480 tdTestResultSuccess() ],4481 ]);4482 4483 atTests.extend([ 4483 4484 # Now the same using a directory with files in it: 4484 [ tdTestCopyToDir(sSrc = sScratchNonEmptyDirHst, sDst = sScratchDstDir3Gst), tdTestResultSuccess() ], 4485 [ tdTestCopyToDir(sSrc = sScratchNonEmptyDirHst, sDst = sScratchDstDir3Gst), tdTestResultFailure() ], 4485 [ tdTestCopyToDir(sSrc = sScratchNonEmptyDirHst, sDst = sScratchDstDir3Gst, 4486 afFlags = [vboxcon.DirectoryCopyFlag_CopyIntoExisting]), tdTestResultSuccess() ], 4487 # Again. 4488 [ tdTestCopyToDir(sSrc = sScratchNonEmptyDirHst, sDst = sScratchDstDir3Gst, 4489 afFlags = [vboxcon.DirectoryCopyFlag_CopyIntoExisting]), tdTestResultSuccess() ], 4490 # Should fail, as directory is existing already. 4491 [ tdTestCopyToDir(sSrc = sScratchNonEmptyDirHst, sDst = sScratchDstDir3Gst), tdTestResultFailure() ], 4486 4492 ]); 4487 if not self.fSkipKnownBugs:4488 atTests.extend([4489 [ tdTestCopyToDir(sSrc = sScratchNonEmptyDirHst, sDst = sScratchDstDir3Gst,4490 afFlags = [vboxcon.DirectoryCopyFlag_CopyIntoExisting]), tdTestResultSuccess() ],4491 ]);4492 4493 atTests.extend([ 4493 #[ tdTestRemoveGuestDir(sScratchDstDir2Gst, tdTestResult() ],4494 4494 # Copy the entire test tree: 4495 [ tdTestCopyToDir(sSrc = sScratchTreeDirHst, sDst = sScratchDstDir4Gst ), tdTestResultSuccess() ],4496 #[ tdTestRemoveGuestDir(sScratchDstDir3Gst, tdTestResult() ],4495 [ tdTestCopyToDir(sSrc = sScratchTreeDirHst, sDst = sScratchDstDir4Gst, 4496 afFlags = [vboxcon.DirectoryCopyFlag_CopyIntoExisting]), tdTestResultSuccess() ], 4497 4497 ]); 4498 4498
Note:
See TracChangeset
for help on using the changeset viewer.