Changeset 71681 in vbox for trunk/src/VBox/ValidationKit/tests
- Timestamp:
- Apr 5, 2018 12:41:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r71672 r71681 3179 3179 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'non-exist', 3180 3180 sDst = os.path.join(sScratch, 'non-exist.dll')), 3181 tdTestResult(fRc = False) ], 3182 3183 # 3184 # Single file handling. 3185 # 3186 3187 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3188 sDst = os.path.join(sScratch, 'C:\\non-exist\\')), 3189 tdTestResult(fRc = False) ], 3190 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3191 sDst = os.path.join(sScratch, 'C:\\non\\exist\\')), 3192 tdTestResult(fRc = False) ], 3193 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3194 sDst = os.path.join(sScratch, 'C:\\non\\exist\\renamedfile.dll')), 3195 tdTestResult(fRc = False) ], 3196 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3197 sDst = os.path.join(sScratch, 'HostGuestAdditions.iso')), 3198 tdTestResult(fRc = True) ], 3199 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3200 sDst = os.path.join(sScratch, 'HostGuestAdditions.iso')), 3201 tdTestResult(fRc = True) ] 3181 tdTestResult(fRc = False) ] 3202 3182 ]); 3203 3183 3204 if self.oTstDrv.fpApiVer > 5.2: # Copying files into directories via Main is supported only in versions > 5.2. 3184 # 3185 # Single file handling. 3186 # 3187 if self.oTstDrv.fpApiVer > 5.2: 3205 3188 aaTests.extend([ 3189 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3190 sDst = os.path.join(sScratch, 'C:\\non-exist\\')), 3191 tdTestResult(fRc = False) ], 3192 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3193 sDst = os.path.join(sScratch, 'C:\\non\\exist\\')), 3194 tdTestResult(fRc = False) ], 3195 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3196 sDst = os.path.join(sScratch, 'C:\\non\\exist\\renamedfile.dll')), 3197 tdTestResult(fRc = False) ], 3198 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3199 sDst = os.path.join(sScratch, 'HostGuestAdditions.iso')), 3200 tdTestResult(fRc = True) ], 3201 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3202 sDst = os.path.join(sScratch, 'HostGuestAdditions.iso')), 3203 tdTestResult(fRc = True) ], 3204 # Note: Copying files into directories via Main is supported only in versions > 5.2. 3206 3205 # Destination is a directory. 3207 3206 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, … … 3331 3330 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'non-exist', 3332 3331 sDst = os.path.join(sScratch, 'non-exist.dll')), 3333 tdTestResult(fRc = False) ], 3334 3335 # 3336 # Single file handling. 3337 # 3338 3339 # Copying single files. 3340 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3341 sDst = sScratchNotExist), 3342 tdTestResult(fRc = False) ], 3343 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3344 sDst = os.path.join(sScratchNotExist, 'renamedfile.dll')), 3345 tdTestResult(fRc = False) ], 3346 # Copy over file using a different destination name. 3347 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3348 sDst = os.path.join(sScratch, 'renamedfile.dll')), 3349 tdTestResult(fRc = True) ], 3350 # Copy over same file (and overwrite existing one). 3351 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3352 sDst = os.path.join(sScratch, 'renamedfile.dll')), 3353 tdTestResult(fRc = True) ] 3332 tdTestResult(fRc = False) ] 3354 3333 ]); 3355 3334 3356 if self.oTstDrv.fpApiVer > 5.2: # Copying files into directories via Main is supported only in versions > 5.2. 3335 # 3336 # Single file handling. 3337 # 3338 if self.oTstDrv.fpApiVer > 5.2: 3357 3339 aaTests.extend([ 3340 # Copying single files. 3341 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3342 sDst = sScratchNotExist), 3343 tdTestResult(fRc = False) ], 3344 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3345 sDst = os.path.join(sScratchNotExist, 'renamedfile.dll')), 3346 tdTestResult(fRc = False) ], 3347 # Copy over file using a different destination name. 3348 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3349 sDst = os.path.join(sScratch, 'renamedfile.dll')), 3350 tdTestResult(fRc = True) ], 3351 # Copy over same file (and overwrite existing one). 3352 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3353 sDst = os.path.join(sScratch, 'renamedfile.dll')), 3354 tdTestResult(fRc = True) ], 3355 # Note: Copying files into directories via Main is supported only in versions > 5.2. 3358 3356 # Destination is a directory with a trailing slash (should work). 3359 3357 # See "cp" syntax.
Note:
See TracChangeset
for help on using the changeset viewer.