2018-11-18 09:16:24 +00:00
|
|
|
#!/sbin/sh
|
|
|
|
|
|
|
|
umask 022
|
|
|
|
OUTFD=${2}
|
|
|
|
ZIP=${3}
|
|
|
|
|
2018-12-28 21:21:09 +00:00
|
|
|
mkdir -p /dev/tmp
|
2019-04-25 18:49:26 +00:00
|
|
|
unzip -oq "${ZIP}" -d "/dev/tmp"
|
2018-11-18 09:16:24 +00:00
|
|
|
if [ ! -f /dev/tmp/SysTest ]; then
|
|
|
|
echo " !! failed to load SysTest"
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
source "/dev/tmp/SysTest"
|
|
|
|
fi
|
|
|
|
|
|
|
|
detect_bootmode
|
|
|
|
detect_outfd
|
|
|
|
|
2019-06-09 20:12:18 +00:00
|
|
|
show_banner
|
2018-11-18 09:16:24 +00:00
|
|
|
|
|
|
|
ui_print " || performing tests"
|
|
|
|
|
|
|
|
ui_print " "
|
2019-05-09 16:47:32 +00:00
|
|
|
ui_print " || storing results in $(dirname ${LOGFILE}):"
|
|
|
|
ui_print " || as $(basename ${LOGFILE})"
|
2018-11-18 09:16:24 +00:00
|
|
|
ui_print " "
|
|
|
|
|
|
|
|
mount_partitions
|
|
|
|
system_test
|
2018-11-19 17:49:25 +00:00
|
|
|
store_results
|
2018-11-18 09:16:24 +00:00
|
|
|
|
|
|
|
if ! ${BOOTMODE} ; then
|
|
|
|
umount -l /system_root 2>/dev/null
|
|
|
|
umount -l /system 2>/dev/null
|
|
|
|
umount -l /vendor 2>/dev/null
|
|
|
|
umount -l /dev/random 2>/dev/null
|
|
|
|
fi
|
|
|
|
|
|
|
|
ui_print " > Done!"
|
|
|
|
ui_print " "
|
|
|
|
|
|
|
|
exit 0
|