Skip to content

Commit cab0d0d

Browse files
committed
Test case for PBXShellScriptBuildPhase
1 parent f7a77f1 commit cab0d0d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/addBuildPhase.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,11 @@ exports.addBuildPhase = {
110110
test.equal(buildPhase.dstSubfolderSpec, 10);
111111
test.done();
112112
},
113+
'should add a script build phase to echo "hello world!"': function(test) {
114+
var options = {shellPath: '/bin/sh', shellScript: 'echo "hello world!"'};
115+
var buildPhase = proj.addBuildPhase([], 'PBXShellScriptBuildPhase', 'Run a script', proj.getFirstTarget().uuid, options).buildPhase;
116+
test.equal(buildPhase.shellPath, '/bin/sh');
117+
test.equal(buildPhase.shellScript, '"echo \\"hello world!\\""');
118+
test.done();
119+
},
113120
}

0 commit comments

Comments
 (0)