freeze: add freeze_thaw test

Change-Id: I31db80b89adca9ac354a96ad21073b269d8a0e24
This commit is contained in:
TOIDA,Suguru
2019-09-18 19:00:05 +09:00
committed by Masamichi Takagi
parent 83ade5cdcd
commit ec31d72483
70 changed files with 1054 additions and 0 deletions

View File

@ -0,0 +1,42 @@
#!/bin/env bash
# 001.sh COPYRIGHT FUJITSU LIMITED 2019
script_dir="$(cd "$(dirname "${BASH_SOURCE:-${(%):-%N}}")"; pwd)"
. "$script_dir/../function"
#
# init
#
freeze
if [ $? -ne 0 ]; then
echo "error: os status change(freeze)"
exit 1
fi
is_os_freeze
if [ $? -ne 0 ]; then
echo "error: os status is not frozen"
exit 1
fi
#
# run
#
thaw
if [ $? -ne 0 ]; then
echo "error: os status change(thaw)"
exit 1
fi
#
# check
#
is_os_running
if [ $? -ne 0 ]; then
echo "error: os status is not running"
exit 1
fi
#
# fin
#
exit 0