Changeset 72397 in vbox for trunk/src/VBox
- Timestamp:
- May 31, 2018 7:30:03 AM (7 years ago)
- Location:
- trunk/src/VBox/ValidationKit/utils/TestExecServ
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-runvm.sh
r72315 r72397 42 42 CDROM_PATH=/media/cdrom 43 43 SCRATCH_PATH=/tmp/vboxtxs-scratch 44 SMOKEOUTPUT_PATH=/tmp/vboxtxs-smoketestoutput 45 DEVKMSG_PATH=/dev/kmsg 44 46 45 47 PIDFILE="/var/run/vboxtxs" … … 54 56 fi 55 57 56 begin_msg() 57 { 58 test -n "${2}" && echo "${SCRIPTNAME}: ${1}." 59 logger -t "${SCRIPTNAME}" "${1}." 58 kernlog_msg() { 59 test -n "$2" && echo "${SCRIPTNAME}: ${1}" 60 echo "${SCRIPTNAME}: ${1}" > $DEVKMSG_PATH 60 61 } 61 62 62 succ_msg() 63 { 64 logger -t "${SCRIPTNAME}" "${1}." 63 dumpfile_to_kernlog() { 64 if test -f "$1"; then 65 kernlog_msg "---------------------- DUMP BEGIN ----------------------" 66 cat "$1" | while read LINE 67 do 68 kernlog_msg "${LINE}" 69 done 70 kernlog_msg "---------------------- DUMP END ------------------------" 71 rm -f "$1" 72 else 73 kernlog_msg "${1}: file not found" console 74 fi 65 75 } 66 76 67 fail_msg()77 killproc() 68 78 { 69 echo "${SCRIPTNAME}: failed: ${1}." >&270 logger -t "${SCRIPTNAME}" "failed: ${1}."71 }72 73 killproc() {74 79 kp_binary="${1##*/}" 75 80 pkill "${kp_binary}" || return 0 … … 112 117 start() { 113 118 if ! test -f $PIDFILE; then 114 begin_msg "Starting VirtualBox Nested Hardware-VirtualizationSmoke Test" console119 kernlog_msg "Starting Nested Smoke Test" console 115 120 fixAndTestBinary 116 121 testRsrcPath 117 122 sleep 5 118 $PYTHON_BINARY $SMOKETEST_SCRIPT -v -v -d --vbox-session-type gui --quick all 123 $PYTHON_BINARY $SMOKETEST_SCRIPT -v -v -d --vbox-session-type gui --quick all 1> "${SMOKEOUTPUT_PATH}" 2>&1 119 124 RETVAL=$? 125 dumpfile_to_kernlog "${SMOKEOUTPUT_PATH}" 120 126 if test $RETVAL -eq 0; then 121 begin_msg "Starting VirtualBox Test Execution service" console127 kernlog_msg "Starting VirtualBox Test Execution service" console 122 128 mount /dev/cdrom "${CDROM_PATH}" 2> /dev/null > /dev/null 123 129 $binary --auto-upgrade --scratch="${SCRATCH_PATH}" --cdrom="${CDROM_PATH}" --no-display-output > /dev/null 124 130 RETVAL=$? 125 test $RETVAL -eq 0 && sleep 2&& echo `pidof TestExecService` > $PIDFILE131 test $RETVAL -eq 0 && sleep 3 && echo `pidof TestExecService` > $PIDFILE 126 132 if ! test -s "${PIDFILE}"; then 127 133 RETVAL=5 128 134 fi 129 fi 130 if test $RETVAL -eq 0; then 131 succ_msg "VirtualBox Test Execution service started" 135 if test $RETVAL -eq 0; then 136 kernlog_msg "Test Execution service started" console 137 else 138 kernlog_msg "Test Execution service failed to start" console 139 fi 132 140 else 133 fail_msg "VirtualBox Test Execution service failed to start" 141 kernlog_msg "Smoke Test failed! error code ${RETVAL}" console 142 RETVAL=7 134 143 fi 135 144 fi … … 139 148 stop() { 140 149 if test -f $PIDFILE; then 141 begin_msg "Stopping VirtualBox Test Execution Service" console150 kernlog_msg "Stopping VirtualBox Test Execution Service" 142 151 killproc $binary 152 rm -f $PIDFILE 143 153 fi 144 154 } … … 180 190 181 191 exit $RETVAL 192 -
trunk/src/VBox/ValidationKit/utils/TestExecServ/vboxtxs-runvm-readme.txt
r72315 r72397 25 25 Enable the vboxtxs-runvm service, usually using: 26 26 systemctl enable vboxtxs-runvm 27 8. Check the cdrom location in /opt/validationkit/linux/vboxtxs-runvm and fix28 i t so it's correct.27 8. Check the cdrom location and /dev/kmsg equivalent of your linux distro 28 in /opt/validationkit/linux/vboxtxs-runvm and fix it so it's correct. 29 29 9. reboot / done. 30 30
Note:
See TracChangeset
for help on using the changeset viewer.