Changeset 71532 in vbox for trunk/src/VBox/ValidationKit/tests/additions
- Timestamp:
- Mar 28, 2018 9:34:05 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r71520 r71532 9 9 __copyright__ = \ 10 10 """ 11 Copyright (C) 2010-201 7Oracle Corporation11 Copyright (C) 2010-2018 Oracle Corporation 12 12 13 13 This file is part of VirtualBox Open Source Edition (OSE), as … … 3170 3170 # Copying single files. 3171 3171 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3172 sDst = 'C:\\non-exist\\'),3172 sDst = os.path.join(sScratch, 'C:\\non-exist\\')), 3173 3173 tdTestResult(fRc = False) ], 3174 3174 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3175 sDst = 'C:\\non\\exist\\'),3175 sDst = os.path.join(sScratch, 'C:\\non\\exist\\')), 3176 3176 tdTestResult(fRc = False) ], 3177 3177 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3178 sDst = 'C:\\non\\exist\\renamedfile.dll'),3178 sDst = os.path.join(sScratch, 'C:\\non\\exist\\renamedfile.dll')), 3179 3179 tdTestResult(fRc = False) ], 3180 3180 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, … … 3184 3184 sDst = os.path.join(sScratch, 'HostGuestAdditions.iso')), 3185 3185 tdTestResult(fRc = True) ], 3186 # Destination is a directory , should fail.3186 # Destination is a directory. 3187 3187 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3188 3188 sDst = sScratch), 3189 tdTestResult(fRc = False) ] 3189 tdTestResult(fRc = True) ], 3190 # Copy over file again into same directory (overwrite). 3191 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO, 3192 sDst = sScratch), 3193 tdTestResult(fRc = True) ], 3190 3194 ## @todo Add testing the CopyTo flags here! 3191 ]); 3192 3193 if self.oTstDrv.sHost == 'win': 3194 ## @todo Check for Windows (7) host. 3195 ]); 3196 3197 if self.oTstDrv.fpApiVer > 5.2: # Copying directories via Main is supported only in versions > 5.2. 3195 3198 aaTests.extend([ 3196 3199 # Copying directories with contain files we don't have read access to. 3197 3200 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\security', 3198 sDst = sScratch),3199 tdTestResult(fRc = False) ],3201 sDst = sScratch), 3202 tdTestResult(fRc = False) ], 3200 3203 # Copying directories with regular files. 3201 3204 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Help', 3202 sDst = sScratch),3203 tdTestResult(fRc = True) ]3204 ]);3205 sDst = sScratch), 3206 tdTestResult(fRc = True) ] 3207 ]); 3205 3208 else: 3206 3209 reporter.log('No OS-specific tests for non-Windows yet!'); … … 3292 3295 tdTestResult(fRc = False) ], 3293 3296 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = '\\\\uncrulez\\foo'), 3294 3295 3297 tdTestResult(fRc = False) ], 3296 3298 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'non-exist', 3297 3299 sDst = os.path.join(sScratch, 'non-exist.dll')), 3298 tdTestResult(fRc = False) ] 3300 tdTestResult(fRc = False) ], 3301 # Copying single files. 3302 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3303 sDst = 'C:\\non-exist\\'), 3304 tdTestResult(fRc = False) ], 3305 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3306 sDst = 'C:\\non\\exist\\'), 3307 tdTestResult(fRc = False) ], 3308 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3309 sDst = 'C:\\non\\exist\\renamedfile.dll'), 3310 tdTestResult(fRc = False) ], 3311 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3312 sDst = os.path.join(sScratch, 'renamedfile.dll')), 3313 tdTestResult(fRc = True) ], 3314 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3315 sDst = os.path.join(sScratch, 'renamedfile.dll')), 3316 tdTestResult(fRc = True) ], 3317 # Destination is a directory, should fail. 3318 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3319 sDst = sScratch), 3320 tdTestResult(fRc = False) ], 3321 # Copying directories. 3322 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Web', 3323 sDst = sScratch), 3324 tdTestResult(fRc = True) ] 3299 3325 ## @todo Add testing the CopyFrom aFlags here! 3300 3326 ]); 3301 3302 if self.oTstDrv.sHost == 'win':3303 aaTests.extend([3304 # FIXME: Failing test.3305 # Copying single files.3306 # [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll',3307 # sDst = 'C:\\non-exist\\'), tdTestResult(fRc = False) ],3308 # [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll',3309 # sDst = 'C:\\non\\exist\\'), tdTestResult(fRc = False) ],3310 # [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll',3311 # sDst = 'C:\\non\\exist\\renamedfile.dll'), tdTestResult(fRc = False) ],3312 # [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll',3313 # sDst = os.path.join(sScratch, 'renamedfile.dll')), tdTestResult(fRc = True) ],3314 # [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll',3315 # sDst = os.path.join(sScratch, 'renamedfile.dll')), tdTestResult(fRc = True) ],3316 # Destination is a directory, should fail.3317 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll',3318 sDst = sScratch),3319 tdTestResult(fRc = False) ],3320 # Copying directories.3321 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Web',3322 sDst = sScratch),3323 tdTestResult(fRc = True) ]3324 ## @todo Add testing the CopyFrom aFlags here!3325 ]);3326 3327 else: 3327 3328 reporter.log('No OS-specific tests for non-Windows yet!');
Note:
See TracChangeset
for help on using the changeset viewer.