Add support for run script input files.
This commit is contained in:
parent
82e97abce4
commit
ea3fdefb4a
|
@ -343,13 +343,14 @@
|
|||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
"$(SRCROOT)/Tests/TestedProtocol.swift",
|
||||
);
|
||||
name = "Generate mocks";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "./run generate --output \"$PROJECT_DIR/Tests/GeneratedMocks.swift\" \"$PROJECT_DIR/Tests/TestedProtocol.swift\" \"$PROJECT_DIR/Tests/TestedClass.swift\"";
|
||||
shellScript = "./run generate --output \"$PROJECT_DIR/Tests/GeneratedMocks.swift\" \"$PROJECT_DIR/Tests/TestedClass.swift\"";
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
|
|
8
run
8
run
|
@ -20,4 +20,10 @@ if [ ! -e $FILE_PATH ]; then
|
|||
rm -rf Build
|
||||
cd ../..
|
||||
fi
|
||||
$FILE_PATH/Contents/MacOS/cuckoo "$@"
|
||||
INPUT_FILES=""
|
||||
for (( i=0; i<SCRIPT_INPUT_FILE_COUNT; i++ ))
|
||||
do
|
||||
VARIABLE=SCRIPT_INPUT_FILE_${i}
|
||||
INPUT_FILES+=" "${!VARIABLE}
|
||||
done
|
||||
$FILE_PATH/Contents/MacOS/cuckoo "$@" ${INPUT_FILES}
|
Loading…
Reference in New Issue