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 indra.util.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
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 indra.util.test_win32_manifest import test_assembly_binding from indra.util.test_win32_manifest import NoManifestException, NoMatchingAssemblyException, UnexpectedVersionException 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 except UnexpectedVersionException, err: pass