diff options
Diffstat (limited to 'scripts/qemuimage-tests/systemusage')
-rwxr-xr-x | scripts/qemuimage-tests/systemusage/bash | 53 | ||||
-rwxr-xr-x | scripts/qemuimage-tests/systemusage/df | 54 | ||||
-rwxr-xr-x | scripts/qemuimage-tests/systemusage/syslog | 54 |
3 files changed, 0 insertions, 161 deletions
diff --git a/scripts/qemuimage-tests/systemusage/bash b/scripts/qemuimage-tests/systemusage/bash deleted file mode 100755 index fb9bb5cba2..0000000000 --- a/scripts/qemuimage-tests/systemusage/bash +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# on the target, check bash prompt is available or not -# boot up the qemu target with `runqemu qemuxxx`, -# then check bash. -# -# Author: veera <veerabrahmamvr@huawei.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# - -. $COREBASE/scripts/qemuimage-testlib - -TIMEOUT=400 -RET=1 -# Start qemu and check its network -Test_Create_Qemu ${TIMEOUT} - - - -# If qemu network is up, check ssh service in qemu -if [ $? -eq 0 ];then - Test_Info "Begin to Test SSH Service in Qemu" - Test_SSH_UP ${TARGET_IPADDR} ${TIMEOUT} - RET=$? -else - RET=1 -fi - -# Check bash is working fine or not -if [ $RET -eq 0 -a -f $TOOLS/bash.sh ]; then - # Copy bash.sh into target - Test_Target_Pre ${TARGET_IPADDR} $TOOLS/bash.sh - if [ $? -eq 0 ]; then - # Run bash.sh to check if bash command available or not on the qemuxxx target - Test_SSH ${TARGET_IPADDR} "sh $TARGET_TEST_DIR/bash.sh" - RET=$? - else - RET=1 - fi -fi - -if [ ${RET} -eq 0 ]; then - Test_Info "bash Test PASS" - Test_Kill_Qemu - Test_Print_Result "bash" 0 - exit 0 -else - Test_Info "bash Test FAIL, Pls. check above bash" - Test_Kill_Qemu - Test_Print_Result "bash" 1 - exit 1 -fi diff --git a/scripts/qemuimage-tests/systemusage/df b/scripts/qemuimage-tests/systemusage/df deleted file mode 100755 index 9657b73b34..0000000000 --- a/scripts/qemuimage-tests/systemusage/df +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash -# df -h check test case for function test -# boot up the qemu target with `runqemu qemuxxx`, -# then check if df space is fine or not target. -# -# Author: veera <veerabrahmamvr@huawei.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# - -. $COREBASE/scripts/qemuimage-testlib - -TIMEOUT=400 -RET=1 - -# Start qemu and check its network -Test_Create_Qemu ${TIMEOUT} - - - -#If qemu network is up, check ssh service in qemu -if [ $? -eq 0 ];then - Test_Info "Begin to Test SSH Service in Qemu" - Test_SSH_UP ${TARGET_IPADDR} ${TIMEOUT} - RET=$? -else - RET=1 -fi - -# Check if disk spcae space is enough or not(using df command) -if [ $RET -eq 0 -a -f $TOOLS/df.sh ]; then - # Copy df.sh into target - Test_Target_Pre ${TARGET_IPADDR} $TOOLS/df.sh - if [ $? -eq 0 ]; then - # Run df.sh to check if df space is fine or not on the qemuxxx target - Test_SSH ${TARGET_IPADDR} "sh $TARGET_TEST_DIR/df.sh" - RET=$? - else - RET=1 - fi -fi - -if [ ${RET} -eq 0 ]; then - Test_Info "df Test PASS" - Test_Kill_Qemu - Test_Print_Result "df" 0 - exit 0 -else - Test_Info "df Test FAIL, Pls. check above df" - Test_Kill_Qemu - Test_Print_Result "df" 1 - exit 1 -fi diff --git a/scripts/qemuimage-tests/systemusage/syslog b/scripts/qemuimage-tests/systemusage/syslog deleted file mode 100755 index 559f7c1573..0000000000 --- a/scripts/qemuimage-tests/systemusage/syslog +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash -# syslog Check test Case for function test -# boot up the Qemu target with `runqemu qemuxxx`. -# then check if syslog service is working fine or not target. -# -# Author: veera <veerabrahmamvr@huawei.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# - -. $COREBASE/scripts/qemuimage-testlib - -TIMEOUT=400 -RET=1 - -# Start qemu and check its network -Test_Create_Qemu ${TIMEOUT} - - - -# If qemu network is up, check ssh service in qemu -if [ $? -eq 0 ];then - Test_Info "Begin to Test SSH Service in Qemu" - Test_SSH_UP ${TARGET_IPADDR} ${TIMEOUT} - RET=$? -else - RET=1 -fi - -# Check if syslog is working fine or not -if [ $RET -eq 0 -a -f $TOOLS/syslog.sh ]; then - # Copy syslog.sh into target - Test_Target_Pre ${TARGET_IPADDR} $TOOLS/syslog.sh - if [ $? -eq 0 ]; then - # Run syslog.sh to check if syslog service is working fine or not on the qemuxxx target - Test_SSH ${TARGET_IPADDR} "sh $TARGET_TEST_DIR/syslog.sh" - RET=$? - else - RET=1 - fi -fi - -if [ ${RET} -eq 0 ]; then - Test_Info "syslog Test PASS" - Test_Kill_Qemu - Test_Print_Result "syslog" 0 - exit 0 -else - Test_Info "syslog Test FAIL, Pls. check above syslog" - Test_Kill_Qemu - Test_Print_Result "syslog" 1 - exit 1 -fi |