Commit 933a3ffc authored by Thomas Abraham's avatar Thomas Abraham
Browse files

sgi/acs: allow prebuilt luv-live image to be specified



Add support for a command line option to specify a absolute path of the
luv-live image to be tested with. This is useful when executing ACS tests
with a pre-built version of the luv-live ACS image. To specify the
pre-built image, use the command line option "-v" and specify the
absolute path of the luv-live image as its parameter.

Change-Id: Ifaba3e7dc2571453e1f0647f1f657a0bfca2a33e
Signed-off-by: Thomas Abraham's avatarThomas Abraham <thomas.abraham@arm.com>
parent 50529a40
......@@ -55,15 +55,22 @@ print_usage ()
echo " -p SGI platform name (mandatory)"
echo " -n Enable network: true or false (default: false)"
echo " -j Automate acs test: true or false (default: false)"
echo " -v Absolute path of luv-live image (optional)"
echo " -a Additional model parameters, if any"
echo ""
__print_supported_sgi_platforms
echo "Example 1: ./acs.sh -p sgi575"
echo " Executes ACS tests for sgi575 platform."
echo " Executes ACS tests for sgi575 platform. The luv live image is picked"
echo " from the location \"output/sgi575/luv-live-image-gpt.img\""
echo
echo "Example 2: ./acs.sh -p sgi575 -j true"
echo " Executes ACS tests for sgi575 platform and terminates the fvp model"
echo " automatically when the test ends."
echo " automatically when the test ends. The luv live image is picked"
echo " from the location \"output/sgi575/luv-live-image-gpt.img\""
echo ""
echo "Example 3: ./acs.sh -p sgi575 -v ~/prebuilts/acs/luv-live-image-gpt.img"
echo " Executes ACS tests for sgi575 platform. The luv live image is picked"
echo " from the location \"~/prebuilts/acs/luv-live-image-gpt.img\""
echo ""
}
......@@ -114,7 +121,7 @@ print_acs_test_summary()
$PWD/$platform/$UART0_ARMTF_OUTPUT_FILE_NAME
}
while getopts "p:n:a:j:h" opt; do
while getopts "p:n:a:j:v:h" opt; do
case $opt in
p)
platform=$OPTARG
......@@ -123,6 +130,10 @@ while getopts "p:n:a:j:h" opt; do
;;
n|a)
;;
v)
prebuilt="true"
acs_image=$OPTARG
;;
*)
print_usage
exit 1
......@@ -143,7 +154,9 @@ if [ -z "${sgi_platforms[$platform]}" ] ; then
fi
#Run the SBSA/SBBR tests
acs_image="../../../../output/$platform/luv-live-image-gpt.img"
if [ "$prebuilt" != "true" ]; then
acs_image="../../../../output/$platform/luv-live-image-gpt.img"
fi
platform_dir="platforms/$platform"
......@@ -155,7 +168,11 @@ if [ ! -f $acs_image ]; then
exit 1
fi
set -- "$@" "-v" "$acs_image"
if [ "$prebuilt" != "true" ]; then
set -- "$@" "-v" "$acs_image"
else
set -- "$@"
fi
source ./run_model.sh
# if model failed to start, exit
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment