public void TestCodeSignBundle() { Copy("/Applications/Calculator.app", "/tmp/"); CodeSigning task = new CodeSigning(); task.BuildEngine = new ShallowBuildEngine(); task.Identity = IDENTITY; task.Bundle = new TaskItem("/tmp/Calculator.app"); bool result = task.Execute(); Assert.IsTrue(result); }
public void TestCodeSignFramework() { Copy("/System/Library/Frameworks/TWAIN.framework", "/tmp/"); CodeSigning task = new CodeSigning(); task.BuildEngine = new ShallowBuildEngine(); task.Identity = IDENTITY; task.Target = new TaskItem("/tmp/TWAIN.framework"); task.Versioned = true; bool result = task.Execute(); Assert.IsTrue(result); }
public void TestCodeSignLibraries() { Copy("/usr/lib/libffi.dylib", "/tmp/"); Copy("/usr/lib/libobjc.dylib", "/tmp/"); CodeSigning task = new CodeSigning(); task.BuildEngine = new ShallowBuildEngine(); task.Identity = IDENTITY; task.Targets = new ITaskItem[] { new TaskItem("/tmp/libffi.dylib"), new TaskItem("/tmp/libobjc.dylib") }; bool result = task.Execute(); Assert.IsTrue(result); }