Files
UnrealEngineUWP/Engine/Build/BatchFiles/Linux/QASmokeManual.sh
Ben Marsh 03675533ea Rename UE4Game -> UnrealGame, UE4Client -> UnrealClient, UE4Server -> UnrealServer.
Mostly a find/replace, though I have looked through the changes and attempted to update references to other things as necessary (eg. renaming IOS plist files for IOS). I'm not set up to test on any platforms other than windows, and was hoping to get your blessing to submit and give QA enough time as possible to uncover issues before the next milestone release.

Particular things that I know I'm not sure about:
- Android references /UE4Game/ paths everywhere (for paths on device, I think). I have no idea if I've got them all.
- I've renamed the iOS mobileprovisions, but I don't know if they need regenerating for the new app name.
- Likewise, not sure what needs to be updated for icon bundles on iOS.

Things that have not been changed:
- Windows still uses IDI_UE4ICON for its icon
- UE4CommandLine.txt
- There's still a UE4Game module which is used by content-only projects

#rb none

[CL 14301890 by Ben Marsh in ue5-main branch]
2020-09-11 15:54:42 -04:00

109 lines
2.1 KiB
Bash
Executable File

#!/bin/bash
STEP=0
CURRENT_DIR=$(cd "$(dirname "$BASH_SOURCE")"; pwd)
TIMESTAMP=`date +%y-%m-%d_%H.%M.%S`
LOG_FILE=$CURRENT_DIR/"QASmoke_$TIMESTAMP.log"
SUCCESS_MESSAGE="***** SMOKE SUCCESSFUL *****"
Header()
{
echo "Ran on `date` on `hostname`"
echo "Original location: $LOG_FILE"
}
OneTimeSetup()
{
echo "Performing one-time setup"
set -x
cp Engine/Build/Git/Setup.sh .
./Setup.sh
rm Setup.sh
set +x
}
GenerateProjectFiles()
{
echo "Generating project files"
set -x
bash GenerateProjectFiles.sh
set +x
}
BuildTarget()
{
echo "Cleaning $1"
set -x
make $1 ARGS="-clean"
set +x
echo "Attempting timed build of $1"
set -x
time make $1
set +x
echo "$1 was successful"
}
CompileTPS()
{
# FIXME: get rid of this step
echo "Recompiling editor dependencies locally"
set -x
pushd Engine/Build/BatchFiles/Linux
export VERBOSE=1
./BuildThirdParty.sh
popd
set +x
}
Run()
{
STEP=$((STEP+1))
echo "Step $STEP: $1 ${@:2}"
echo "------------------------------------------------------------------------" >> $LOG_FILE
echo " Step $STEP $1 ${@:2}" >> $LOG_FILE
echo "------------------------------------------------------------------------" >> $LOG_FILE
$1 ${@:2} >> $LOG_FILE 2>&1
}
# Main
set -e
if [ -z "$1" ]; then
echo "---------------"
echo "This is a script for QA to manually smoke a branch"
echo ""
echo "Successful run should end with $SUCCESS_MESSAGE"
echo "Any other messages indicate a problem - see `basename $LOG_FILE`"
echo ""
echo "---------------"
pushd ../../../.. >> /dev/null
Run Header
Run OneTimeSetup
Run GenerateProjectFiles
# rebuild dependencies locally for editor targets (extra safety still)
Run CompileTPS
# build usual targets, roughly ascending by build time
Run BuildTarget BlankProgram
Run BuildTarget UnrealPak
Run BuildTarget SlateViewer
Run BuildTarget UnrealClient
Run BuildTarget UnrealGame
Run BuildTarget UnrealServer
# build editor targets, roughly ascending by build time
Run BuildTarget ShaderCompileWorker
Run BuildTarget UnrealFrontend
Run BuildTarget UnrealEditor
popd >> /dev/null
else
time Run $1
fi
echo "$SUCCESS_MESSAGE"