Commit 20da6a35 authored by Thomas Abraham's avatar Thomas Abraham Committed by Arvind Chauhan
Browse files

sgi/busybox: add support for automation



Add support for automatted termination of the test case. The script
waits for the busybox boot to complete and then kills the model.

Change-Id: Iaeea280f162092cc4031c4a442bd0121efbde25a
Signed-off-by: Thomas Abraham's avatarThomas Abraham <thomas.abraham@arm.com>
parent a98c6366
......@@ -31,6 +31,8 @@
platform_dir=""
source sgi_common_util.sh
declare -A sgi_platforms
sgi_platforms[sgi575]=1
......@@ -59,11 +61,13 @@ print_usage ()
echo ""
}
while getopts "p:n:a:h" opt; do
while getopts "p:n:a:j:h" opt; do
case $opt in
p)
platform=$OPTARG
;;
j)
;;
n|a)
;;
*)
......@@ -88,5 +92,14 @@ platform_dir="platforms/$platform"
pushd $platform_dir
set -- "$@" "-f" "busybox"
source ./run_model.sh
# if not model failed to start, return
if [ "$MODEL_PID" == "0" ] ; then
exit 1
fi
# wait for boot to complete and the model to be killed
check_boot_complete "$PWD/$platform/$UART0_ARMTF_OUTPUT_FILE_NAME" "/ #"
kill_model
popd
exit 0
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