Пример #1
0
    def test_for_no_msvcrt_manifest_and_copy_action(self, src, dst):
        # This is used to test that no manifest for the msvcrt exists.
        # It is used as a temporary override during the construct method
        from test_win32_manifest import test_assembly_binding
        from test_win32_manifest import NoManifestException, NoMatchingAssemblyException
        if src and (os.path.exists(src) or os.path.islink(src)):
            # ensure that destination path exists
            self.cmakedirs(os.path.dirname(dst))
            self.created_paths.append(dst)
            if not os.path.isdir(src):
                try:
                    crtversion = self.args['vcversion'].replace(
                        '.', '')  # change 8.0 into 80 etc.
                    if (self.args['configuration'].lower() == 'debug'):
                        test_assembly_binding(
                            src, "Microsoft.VC%s.DebugCRT" % crtversion, "",
                            self.args['vcversion'])
                    else:
                        test_assembly_binding(
                            src, "Microsoft.VC%s.CRT" % crtversion, "",
                            self.args['vcversion'])
                    raise Exception("Unknown condition")
                except NoManifestException, err:
                    pass
                except NoMatchingAssemblyException, err:
                    pass

                self.ccopy(src, dst)
Пример #2
0
 def test_msvcrt_and_copy_action(self, src, dst):
     # This is used to test a dll manifest.
     # It is used as a temporary override during the construct method
     from test_win32_manifest import test_assembly_binding
     if src and (os.path.exists(src) or os.path.islink(src)):
         # ensure that destination path exists
         self.cmakedirs(os.path.dirname(dst))
         self.created_paths.append(dst)
         if not os.path.isdir(src):
             # As the offical build only supports VC80 there is no point checking for any other offical CRT versions
             # TODO when VC90 starts being used add an approprate check for the required CRT here
             if (self.args['vcversion'] == '8.0'):
                 if (self.args['configuration'].lower() == 'debug'):
                     test_assembly_binding(src, "Microsoft.VC80.DebugCRT",
                                           "8.0.50727.4053",
                                           self.args['vcversion'])
                 else:
                     test_assembly_binding(src, "Microsoft.VC80.CRT",
                                           "8.0.50727.4053",
                                           self.args['vcversion'])
                 self.ccopy(src, dst)
         else:
             raise Exception(
                 "Directories are not supported by test_CRT_and_copy_action()"
             )
     else:
         print "Doesn't exist:", src
 def test_msvcrt_and_copy_action(self, src, dst):
     # This is used to test a dll manifest.
     # It is used as a temporary override during the construct method
     from test_win32_manifest import test_assembly_binding
     if src and (os.path.exists(src) or os.path.islink(src)):
         # ensure that destination path exists
         self.cmakedirs(os.path.dirname(dst))
         self.created_paths.append(dst)
         if not os.path.isdir(src):
             if(self.args['configuration'].lower() == 'debug'):
                 test_assembly_binding(src, "Microsoft.VC80.DebugCRT", "8.0.50727.4053")
             else:
                 test_assembly_binding(src, "Microsoft.VC80.CRT", "8.0.50727.4053")
             self.ccopy(src,dst)
         else:
             raise Exception("Directories are not supported by test_CRT_and_copy_action()")
     else:
         print "Doesn't exist:", src
Пример #4
0
 def test_msvcrt_and_copy_action(self, src, dst):
     # This is used to test a dll manifest.
     # It is used as a temporary override during the construct method
     from test_win32_manifest import test_assembly_binding
     if src and (os.path.exists(src) or os.path.islink(src)):
         # ensure that destination path exists
         self.cmakedirs(os.path.dirname(dst))
         self.created_paths.append(dst)
         if not os.path.isdir(src):
             if(self.args['configuration'].lower() == 'debug'):
                 test_assembly_binding(src, "Microsoft.VC80.DebugCRT", "8.0.50727.4053")
             else:
                 test_assembly_binding(src, "Microsoft.VC80.CRT", "8.0.50727.4053")
             self.ccopy(src,dst)
         else:
             raise Exception("Directories are not supported by test_CRT_and_copy_action()")
     else:
         print "Doesn't exist:", src
Пример #5
0
 def test_msvcrt_and_copy_action(self, src, dst):
     # This is used to test a dll manifest.
     # It is used as a temporary override during the construct method
     from test_win32_manifest import test_assembly_binding
     if src and (os.path.exists(src) or os.path.islink(src)):
         # ensure that destination path exists
         self.cmakedirs(os.path.dirname(dst))
         self.created_paths.append(dst)
         if not os.path.isdir(src):
             # As the offical build only supports VC80 there is no point checking for any other offical CRT versions
             # TODO when VC90 starts being used add an approprate check for the required CRT here
             if(self.args['vcversion']=='8.0'):
                 if(self.args['configuration'].lower() == 'debug'):
                     test_assembly_binding(src, "Microsoft.VC80.DebugCRT", "8.0.50727.4053",self.args['vcversion'])
                 else:
                     test_assembly_binding(src, "Microsoft.VC80.CRT", "8.0.50727.4053",self.args['vcversion'])
                 self.ccopy(src,dst)
         else:
             raise Exception("Directories are not supported by test_CRT_and_copy_action()")
     else:
         print "Doesn't exist:", src
Пример #6
0
 def test_for_no_msvcrt_manifest_and_copy_action(self, src, dst):
     # This is used to test that no manifest for the msvcrt exists.
     # It is used as a temporary override during the construct method
     from test_win32_manifest import test_assembly_binding
     from test_win32_manifest import NoManifestException, NoMatchingAssemblyException
     if src and (os.path.exists(src) or os.path.islink(src)):
         # ensure that destination path exists
         self.cmakedirs(os.path.dirname(dst))
         self.created_paths.append(dst)
         if not os.path.isdir(src):
             try:
                 if(self.args['configuration'].lower() == 'debug'):
                     test_assembly_binding(src, "Microsoft.VC80.DebugCRT", "")
                 else:
                     test_assembly_binding(src, "Microsoft.VC80.CRT", "")
                 raise Exception("Unknown condition")
             except NoManifestException, err:
                 pass
             except NoMatchingAssemblyException, err:
                 pass
                 
             self.ccopy(src,dst)