diff options
Diffstat (limited to 'scripts/qemuimage-tests')
49 files changed, 0 insertions, 1341 deletions
diff --git a/scripts/qemuimage-tests/sanity/boot b/scripts/qemuimage-tests/sanity/boot deleted file mode 100755 index 5a8c01c9ac..0000000000 --- a/scripts/qemuimage-tests/sanity/boot +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -# -# Boot Test Case for Sanity Test -# The case boot up the Qemu target with `runqemu qemuxxx`. -# Then check if qemu and qemu network is up. -# -# Author: Jiajun Xu <jiajun.xu@intel.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# -. $COREBASE/scripts/qemuimage-testlib - -TIMEOUT=400 - -# Start qemu and check its network -Test_Create_Qemu ${TIMEOUT} - -if [ $? -eq 0 ]; then - Test_Info "Boot Test PASS" - Test_Kill_Qemu - Test_Print_Result "Boot" 0 - exit 0 -else - Test_Info "Boot Test FAIL" - Test_Kill_Qemu - Test_Print_Result "Boot" 1 - exit 1 -fi diff --git a/scripts/qemuimage-tests/sanity/compiler b/scripts/qemuimage-tests/sanity/compiler deleted file mode 100755 index ef0700732d..0000000000 --- a/scripts/qemuimage-tests/sanity/compiler +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash -# Compiler Test Case for Sanity Test -# The case boot up the Qemu target with `runqemu qemuxxx`. -# Then check if gcc/g++/make command can work in target. -# -# Author: Jiajun Xu <jiajun.xu@intel.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 gcc/g++/make can work in target -if [ $RET -eq 0 -a -f $TOOLS/compiler_test.sh ]; then - # Copy compiler_test.sh into target - Test_Target_Pre ${TARGET_IPADDR} $TOOLS/compiler_test.sh - if [ $? -eq 0 ]; then - # Run compiler_test.sh to check if gcc/g++/make can work in target - Test_SSH ${TARGET_IPADDR} "sh $TARGET_TEST_DIR/compiler_test.sh" - RET=$? - else - RET=1 - fi -fi - -if [ ${RET} -eq 0 ]; then - Test_Info "Compiler Test PASS" - Test_Kill_Qemu - Test_Print_Result "compiler" 0 - exit 0 -else - Test_Info "Compiler FAIL, Pls. check above error log" - Test_Kill_Qemu - Test_Print_Result "compiler" 1 - exit 1 -fi diff --git a/scripts/qemuimage-tests/sanity/connman b/scripts/qemuimage-tests/sanity/connman deleted file mode 100755 index b3332012fa..0000000000 --- a/scripts/qemuimage-tests/sanity/connman +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# Conmman Check Test Case for Sanity Test -# The case boot up the Qemu target with `runqemu qemuxxx`. -# Then check if connman can work in target. -# -# Author: Jiajun Xu <jiajun.xu@intel.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 connman can work in target -if [ $RET -eq 0 -a -f $TOOLS/connman_test.sh ]; then - # Copy connman_test.sh into target - Test_Target_Pre ${TARGET_IPADDR} $TOOLS/connman_test.sh - if [ $? -eq 0 ]; then - # Run connman_test.sh to check if connman can work in target - Test_SSH ${TARGET_IPADDR} "sh $TARGET_TEST_DIR/connman_test.sh" - RET=$? - else - RET=1 - fi -fi - -if [ ${RET} -eq 0 ]; then - Test_Info "Connman Test PASS" - Test_Kill_Qemu - Test_Print_Result "connman" 0 - exit 0 -else - Test_Info "Connman Test FAIL, Pls. check above error log" - Test_Display_Syslog - Test_Kill_Qemu - Test_Print_Result "connman" 1 - exit 1 -fi diff --git a/scripts/qemuimage-tests/sanity/dmesg b/scripts/qemuimage-tests/sanity/dmesg deleted file mode 100755 index aed29e05eb..0000000000 --- a/scripts/qemuimage-tests/sanity/dmesg +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash -# Dmesg Check Test Case for Sanity Test -# The case boot up the Qemu target with `runqemu qemuxxx`. -# Then check if there is any error log in dmesg. -# -# Author: Jiajun Xu <jiajun.xu@intel.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 there is any error log in dmesg -if [ $RET -eq 0 -a -f $TOOLS/dmesg.sh ]; then - # Copy dmesg.sh into target - Test_Target_Pre ${TARGET_IPADDR} $TOOLS/dmesg.sh - if [ $? -eq 0 ]; then - # Run dmesg.sh to check if there is any error message with command dmesg - Test_SSH ${TARGET_IPADDR} "sh $TARGET_TEST_DIR/dmesg.sh" - RET=$? - else - RET=1 - fi -fi - -if [ ${RET} -eq 0 ]; then - Test_Info "Dmesg Test PASS" - Test_Kill_Qemu - Test_Print_Result "dmesg" 0 - exit 0 -else - Test_Info "Dmesg Test FAIL, Pls. check above error log" - Test_Kill_Qemu - Test_Print_Result "dmesg" 1 - exit 1 -fi diff --git a/scripts/qemuimage-tests/sanity/rpm_query b/scripts/qemuimage-tests/sanity/rpm_query deleted file mode 100755 index dd652bd998..0000000000 --- a/scripts/qemuimage-tests/sanity/rpm_query +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash -# RPM Check Test Case for Sanity Test -# The case boot up the Qemu target with `runqemu qemuxxx`. -# Then check if rpm command can work in target. -# -# Author: Jiajun Xu <jiajun.xu@intel.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 rpm query can work in target -if [ $RET -eq 0 -a -f $TOOLS/rpm_test.sh ]; then - # Copy rpm_test.sh into target - Test_Target_Pre ${TARGET_IPADDR} $TOOLS/rpm_test.sh - if [ $? -eq 0 ]; then - # Run rpm_test.sh to check if rpm query can work in target - Test_SSH ${TARGET_IPADDR} "sh $TARGET_TEST_DIR/rpm_test.sh -qa" - RET=$? - else - RET=1 - fi -fi - -if [ ${RET} -eq 0 ]; then - Test_Info "rpm query Test PASS" - Test_Kill_Qemu - Test_Print_Result "rpm_query" 0 - exit 0 -else - Test_Info "rpm query FAIL, Pls. check above error log" - Test_Kill_Qemu - Test_Print_Result "rpm_query" 1 - exit 1 -fi diff --git a/scripts/qemuimage-tests/sanity/scp b/scripts/qemuimage-tests/sanity/scp deleted file mode 100755 index b0b693d0c8..0000000000 --- a/scripts/qemuimage-tests/sanity/scp +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/bash -# SCP Test Case for Sanity Test -# The case boot up the Qemu target with `runqemu qemuxxx`. -# Then check if file can be copied into target with scp command. -# -# Author: Jiajun Xu <jiajun.xu@intel.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# - -. $COREBASE/scripts/qemuimage-testlib - -TIMEOUT=400 -RET=1 -SPID=0 -i=0 - -# 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 file can be copied from host into target -# For qemu target, the file is 5M -if [ $RET -eq 0 ]; then - echo $QEMUARCH | grep -q "qemu" - - if [ $? -eq 0 ]; then - dd if=/dev/zero of=${TEST_TMP}/scp_test_file bs=512k count=10 - Test_SCP ${TARGET_IPADDR} ${TEST_TMP}/scp_test_file /home/root & - SPID=$! - fi - - # Check if scp finished or not - while [ $i -lt $TIMEOUT ] - do - ps -fp $SPID > /dev/null - if [ $? -ne 0 ]; then - RET=0 - break - fi - i=$((i+5)) - sleep 5 - done - - # Kill scp process if scp is not finished in time - if [ $i -ge $TIMEOUT ]; then - RET=1 - kill $SPID - fi -fi - -if [ ${RET} -eq 0 ]; then - Test_Info "SCP Test PASS" - Test_Kill_Qemu - Test_Print_Result "SCP" 0 - exit 0 -else - Test_Info "SCP Test FAIL" - Test_Kill_Qemu - Test_Print_Result "SCP" 1 - exit 1 -fi diff --git a/scripts/qemuimage-tests/sanity/shutdown b/scripts/qemuimage-tests/sanity/shutdown deleted file mode 100755 index c9e931c4c2..0000000000 --- a/scripts/qemuimage-tests/sanity/shutdown +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/bash -# Shutdown Test Case for Sanity Test -# The case boot up the Qemu target with `runqemu qemuxxx`. -# Then check if target can shutdown -# For qemux86/x86-64, we use command "poweroff" for target shutdown -# For non-x86 targets, we use command "reboot" for target shutdown -# -# Author: Jiajun Xu <jiajun.xu@intel.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# - -. $COREBASE/scripts/qemuimage-testlib - -TIMEOUT=400 - -RET=1 -i=0 - -# 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 target can shutdown -if [ $RET -eq 0 ]; then - echo $QEMUARCH | grep -q "qemux86" - - # For qemux86/x86-64, command "poweroff" is used - # For non x86 qemu targets, command "reboot" is used because of BUG #100 - if [ $? -eq 0 ]; then - Test_SSH ${TARGET_IPADDR} "/sbin/poweroff" - else - Test_SSH ${TARGET_IPADDR} "/sbin/reboot" - fi - - # If qemu start up process ends up, it means shutdown completes - while [ $i -lt $TIMEOUT ] - do - ps -fp $QEMUPID > /dev/null 2> /dev/null - if [ $? -ne 0 ]; then - RET=0 - break - fi - i=$((i+5)) - sleep 5 - done - - if [ $i -ge $TIMEOUT ]; then - RET=1 - fi -fi - -if [ ${RET} -eq 0 ]; then - Test_Info "Shutdown Test PASS" - Test_Print_Result "shutdown" 0 - - # Remove TARGET_IPSAVE since no existing qemu running now - if [ -e ${TARGET_IPSAVE} ]; then - rm -rf ${TARGET_IPSAVE} - fi - exit 0 -else - Test_Info "Shutdown Test FAIL" - Test_Kill_Qemu - Test_Print_Result "shutdown" 1 - exit 1 -fi diff --git a/scripts/qemuimage-tests/sanity/smart_help b/scripts/qemuimage-tests/sanity/smart_help deleted file mode 100755 index 0eeac26493..0000000000 --- a/scripts/qemuimage-tests/sanity/smart_help +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash -# Smart Check Test Case for Sanity Test -# The case boot up the Qemu target with `runqemu qemuxxx`. -# Then check if smart command can work in target. -# -# Author: Jiajun Xu <jiajun.xu@intel.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 smart --help can work in target -if [ $RET -eq 0 -a -f $TOOLS/smart_test.sh ]; then - # Copy smart_test.sh into target - Test_Target_Pre ${TARGET_IPADDR} $TOOLS/smart_test.sh - if [ $? -eq 0 ]; then - # Run smart_test.sh to check if smart --help can work in target - Test_SSH ${TARGET_IPADDR} "sh $TARGET_TEST_DIR/smart_test.sh --help" - RET=$? - else - RET=1 - fi -fi - -if [ ${RET} -eq 0 ]; then - Test_Info "smart --help Test PASS" - Test_Kill_Qemu - Test_Print_Result "smart_help" 0 - exit 0 -else - Test_Info "smart --help FAIL, Pls. check above error log" - Test_Kill_Qemu - Test_Print_Result "smart_help" 1 - exit 1 -fi diff --git a/scripts/qemuimage-tests/sanity/smart_query b/scripts/qemuimage-tests/sanity/smart_query deleted file mode 100755 index 779ee630b3..0000000000 --- a/scripts/qemuimage-tests/sanity/smart_query +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash -# Smart Check Test Case for Sanity Test -# The case boot up the Qemu target with `runqemu qemuxxx`. -# Then check if smart command can work in target. -# -# Author: Jiajun Xu <jiajun.xu@intel.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 smart query can work in target -if [ $RET -eq 0 -a -f $TOOLS/smart_test.sh ]; then - # Copy smart_test.sh into target - Test_Target_Pre ${TARGET_IPADDR} $TOOLS/smart_test.sh - if [ $? -eq 0 ]; then - # Run smart_test.sh to check if smart query can work in target - Test_SSH ${TARGET_IPADDR} "sh $TARGET_TEST_DIR/smart_test.sh query avahi*" - RET=$? - else - RET=1 - fi -fi - -if [ ${RET} -eq 0 ]; then - Test_Info "smart query package avahi Test PASS" - Test_Kill_Qemu - Test_Print_Result "smart_query" 0 - exit 0 -else - Test_Info "smart query package avahi FAIL, Pls. check above error log" - Test_Kill_Qemu - Test_Print_Result "smart_query" 1 - exit 1 -fi diff --git a/scripts/qemuimage-tests/sanity/ssh b/scripts/qemuimage-tests/sanity/ssh deleted file mode 100755 index 181296b0b5..0000000000 --- a/scripts/qemuimage-tests/sanity/ssh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -# SSH Test Case for Sanity Test -# The case boot up the Qemu target with `runqemu qemuxxx`. -# Then check if ssh service in qemu is up. -# -# Author: Jiajun Xu <jiajun.xu@intel.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 - -if [ ${RET} -eq 0 ]; then - Test_Info "SSH Test PASS" - Test_Kill_Qemu - Test_Print_Result "SSH" 0 - exit 0 -else - Test_Info "SSH Test FAIL" - Test_Kill_Qemu - Test_Print_Result "SSH" 1 - exit 1 -fi diff --git a/scripts/qemuimage-tests/scenario/qemuarm/core-image-lsb b/scripts/qemuimage-tests/scenario/qemuarm/core-image-lsb deleted file mode 100644 index b2977f1653..0000000000 --- a/scripts/qemuimage-tests/scenario/qemuarm/core-image-lsb +++ /dev/null @@ -1,7 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity dmesg -sanity shutdown diff --git a/scripts/qemuimage-tests/scenario/qemuarm/core-image-minimal b/scripts/qemuimage-tests/scenario/qemuarm/core-image-minimal deleted file mode 100644 index 0fcc7bba84..0000000000 --- a/scripts/qemuimage-tests/scenario/qemuarm/core-image-minimal +++ /dev/null @@ -1 +0,0 @@ -sanity boot diff --git a/scripts/qemuimage-tests/scenario/qemuarm/core-image-sato b/scripts/qemuimage-tests/scenario/qemuarm/core-image-sato deleted file mode 100644 index bef33e82d2..0000000000 --- a/scripts/qemuimage-tests/scenario/qemuarm/core-image-sato +++ /dev/null @@ -1,11 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity connman -sanity dmesg -sanity shutdown -systemusage bash -systemusage df -systemusage syslog diff --git a/scripts/qemuimage-tests/scenario/qemuarm/core-image-sato-sdk b/scripts/qemuimage-tests/scenario/qemuarm/core-image-sato-sdk deleted file mode 100644 index 505b0a2f97..0000000000 --- a/scripts/qemuimage-tests/scenario/qemuarm/core-image-sato-sdk +++ /dev/null @@ -1,12 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity compiler -sanity connman -sanity dmesg -sanity shutdown -systemusage bash -systemusage df -systemusage syslog diff --git a/scripts/qemuimage-tests/scenario/qemuarm/meta-toolchain-gmae b/scripts/qemuimage-tests/scenario/qemuarm/meta-toolchain-gmae deleted file mode 100644 index 199176efc8..0000000000 --- a/scripts/qemuimage-tests/scenario/qemuarm/meta-toolchain-gmae +++ /dev/null @@ -1,3 +0,0 @@ -toolchain cvs -toolchain iptables -toolchain sudoku-savant diff --git a/scripts/qemuimage-tests/scenario/qemumips/core-image-lsb b/scripts/qemuimage-tests/scenario/qemumips/core-image-lsb deleted file mode 100644 index b2977f1653..0000000000 --- a/scripts/qemuimage-tests/scenario/qemumips/core-image-lsb +++ /dev/null @@ -1,7 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity dmesg -sanity shutdown diff --git a/scripts/qemuimage-tests/scenario/qemumips/core-image-minimal b/scripts/qemuimage-tests/scenario/qemumips/core-image-minimal deleted file mode 100644 index 0fcc7bba84..0000000000 --- a/scripts/qemuimage-tests/scenario/qemumips/core-image-minimal +++ /dev/null @@ -1 +0,0 @@ -sanity boot diff --git a/scripts/qemuimage-tests/scenario/qemumips/core-image-sato b/scripts/qemuimage-tests/scenario/qemumips/core-image-sato deleted file mode 100644 index bef33e82d2..0000000000 --- a/scripts/qemuimage-tests/scenario/qemumips/core-image-sato +++ /dev/null @@ -1,11 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity connman -sanity dmesg -sanity shutdown -systemusage bash -systemusage df -systemusage syslog diff --git a/scripts/qemuimage-tests/scenario/qemumips/core-image-sato-sdk b/scripts/qemuimage-tests/scenario/qemumips/core-image-sato-sdk deleted file mode 100644 index 505b0a2f97..0000000000 --- a/scripts/qemuimage-tests/scenario/qemumips/core-image-sato-sdk +++ /dev/null @@ -1,12 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity compiler -sanity connman -sanity dmesg -sanity shutdown -systemusage bash -systemusage df -systemusage syslog diff --git a/scripts/qemuimage-tests/scenario/qemumips/meta-toolchain-gmae b/scripts/qemuimage-tests/scenario/qemumips/meta-toolchain-gmae deleted file mode 100644 index 199176efc8..0000000000 --- a/scripts/qemuimage-tests/scenario/qemumips/meta-toolchain-gmae +++ /dev/null @@ -1,3 +0,0 @@ -toolchain cvs -toolchain iptables -toolchain sudoku-savant diff --git a/scripts/qemuimage-tests/scenario/qemuppc/core-image-lsb b/scripts/qemuimage-tests/scenario/qemuppc/core-image-lsb deleted file mode 100644 index b2977f1653..0000000000 --- a/scripts/qemuimage-tests/scenario/qemuppc/core-image-lsb +++ /dev/null @@ -1,7 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity dmesg -sanity shutdown diff --git a/scripts/qemuimage-tests/scenario/qemuppc/core-image-minimal b/scripts/qemuimage-tests/scenario/qemuppc/core-image-minimal deleted file mode 100644 index 0fcc7bba84..0000000000 --- a/scripts/qemuimage-tests/scenario/qemuppc/core-image-minimal +++ /dev/null @@ -1 +0,0 @@ -sanity boot diff --git a/scripts/qemuimage-tests/scenario/qemuppc/core-image-sato b/scripts/qemuimage-tests/scenario/qemuppc/core-image-sato deleted file mode 100644 index bef33e82d2..0000000000 --- a/scripts/qemuimage-tests/scenario/qemuppc/core-image-sato +++ /dev/null @@ -1,11 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity connman -sanity dmesg -sanity shutdown -systemusage bash -systemusage df -systemusage syslog diff --git a/scripts/qemuimage-tests/scenario/qemuppc/core-image-sato-sdk b/scripts/qemuimage-tests/scenario/qemuppc/core-image-sato-sdk deleted file mode 100644 index 505b0a2f97..0000000000 --- a/scripts/qemuimage-tests/scenario/qemuppc/core-image-sato-sdk +++ /dev/null @@ -1,12 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity compiler -sanity connman -sanity dmesg -sanity shutdown -systemusage bash -systemusage df -systemusage syslog diff --git a/scripts/qemuimage-tests/scenario/qemuppc/meta-toolchain-gmae b/scripts/qemuimage-tests/scenario/qemuppc/meta-toolchain-gmae deleted file mode 100644 index 199176efc8..0000000000 --- a/scripts/qemuimage-tests/scenario/qemuppc/meta-toolchain-gmae +++ /dev/null @@ -1,3 +0,0 @@ -toolchain cvs -toolchain iptables -toolchain sudoku-savant diff --git a/scripts/qemuimage-tests/scenario/qemux86-64/core-image-lsb b/scripts/qemuimage-tests/scenario/qemux86-64/core-image-lsb deleted file mode 100644 index b2977f1653..0000000000 --- a/scripts/qemuimage-tests/scenario/qemux86-64/core-image-lsb +++ /dev/null @@ -1,7 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity dmesg -sanity shutdown diff --git a/scripts/qemuimage-tests/scenario/qemux86-64/core-image-minimal b/scripts/qemuimage-tests/scenario/qemux86-64/core-image-minimal deleted file mode 100644 index 0fcc7bba84..0000000000 --- a/scripts/qemuimage-tests/scenario/qemux86-64/core-image-minimal +++ /dev/null @@ -1 +0,0 @@ -sanity boot diff --git a/scripts/qemuimage-tests/scenario/qemux86-64/core-image-sato b/scripts/qemuimage-tests/scenario/qemux86-64/core-image-sato deleted file mode 100644 index bef33e82d2..0000000000 --- a/scripts/qemuimage-tests/scenario/qemux86-64/core-image-sato +++ /dev/null @@ -1,11 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity connman -sanity dmesg -sanity shutdown -systemusage bash -systemusage df -systemusage syslog diff --git a/scripts/qemuimage-tests/scenario/qemux86-64/core-image-sato-sdk b/scripts/qemuimage-tests/scenario/qemux86-64/core-image-sato-sdk deleted file mode 100644 index 505b0a2f97..0000000000 --- a/scripts/qemuimage-tests/scenario/qemux86-64/core-image-sato-sdk +++ /dev/null @@ -1,12 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity compiler -sanity connman -sanity dmesg -sanity shutdown -systemusage bash -systemusage df -systemusage syslog diff --git a/scripts/qemuimage-tests/scenario/qemux86-64/meta-toolchain-gmae b/scripts/qemuimage-tests/scenario/qemux86-64/meta-toolchain-gmae deleted file mode 100644 index 199176efc8..0000000000 --- a/scripts/qemuimage-tests/scenario/qemux86-64/meta-toolchain-gmae +++ /dev/null @@ -1,3 +0,0 @@ -toolchain cvs -toolchain iptables -toolchain sudoku-savant diff --git a/scripts/qemuimage-tests/scenario/qemux86/core-image-lsb b/scripts/qemuimage-tests/scenario/qemux86/core-image-lsb deleted file mode 100644 index b2977f1653..0000000000 --- a/scripts/qemuimage-tests/scenario/qemux86/core-image-lsb +++ /dev/null @@ -1,7 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity dmesg -sanity shutdown diff --git a/scripts/qemuimage-tests/scenario/qemux86/core-image-minimal b/scripts/qemuimage-tests/scenario/qemux86/core-image-minimal deleted file mode 100644 index 0fcc7bba84..0000000000 --- a/scripts/qemuimage-tests/scenario/qemux86/core-image-minimal +++ /dev/null @@ -1 +0,0 @@ -sanity boot diff --git a/scripts/qemuimage-tests/scenario/qemux86/core-image-sato b/scripts/qemuimage-tests/scenario/qemux86/core-image-sato deleted file mode 100644 index bef33e82d2..0000000000 --- a/scripts/qemuimage-tests/scenario/qemux86/core-image-sato +++ /dev/null @@ -1,11 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity connman -sanity dmesg -sanity shutdown -systemusage bash -systemusage df -systemusage syslog diff --git a/scripts/qemuimage-tests/scenario/qemux86/core-image-sato-sdk b/scripts/qemuimage-tests/scenario/qemux86/core-image-sato-sdk deleted file mode 100644 index 505b0a2f97..0000000000 --- a/scripts/qemuimage-tests/scenario/qemux86/core-image-sato-sdk +++ /dev/null @@ -1,12 +0,0 @@ -sanity ssh -sanity scp -sanity smart_help -sanity smart_query -sanity rpm_query -sanity compiler -sanity connman -sanity dmesg -sanity shutdown -systemusage bash -systemusage df -systemusage syslog diff --git a/scripts/qemuimage-tests/scenario/qemux86/meta-toolchain-gmae b/scripts/qemuimage-tests/scenario/qemux86/meta-toolchain-gmae deleted file mode 100644 index 199176efc8..0000000000 --- a/scripts/qemuimage-tests/scenario/qemux86/meta-toolchain-gmae +++ /dev/null @@ -1,3 +0,0 @@ -toolchain cvs -toolchain iptables -toolchain sudoku-savant 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 diff --git a/scripts/qemuimage-tests/toolchain/cvs b/scripts/qemuimage-tests/toolchain/cvs deleted file mode 100755 index 871d99110f..0000000000 --- a/scripts/qemuimage-tests/toolchain/cvs +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -# -# CVS compile Test for toolchain test -# The case extract toolchain tarball into temp folder -# Then compile CVS with the toolchain environment -# -# Author: Jiajun Xu <jiajun.xu@intel.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# -. $COREBASE/scripts/qemuimage-testlib - -TIMEOUT=120 - -# Extract and test toolchain tarball -Test_Toolchain cvs ${TIMEOUT} - -if [ $? -eq 0 ]; then - Test_Info "CVS Test PASS" - Test_Print_Result "CVS" 0 - exit 0 -elif [ $? -eq 1 ]; then - Test_Info "CVS Test FAIL" - Test_Print_Result "CVS" 1 - exit 1 -else - Test_Info "Skip CVS Test due to some configuration problem" - Test_Print_Result "CVS" 2 - exit 2 -fi diff --git a/scripts/qemuimage-tests/toolchain/iptables b/scripts/qemuimage-tests/toolchain/iptables deleted file mode 100755 index af89bbe7b3..0000000000 --- a/scripts/qemuimage-tests/toolchain/iptables +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -# -# iptables compile Test for toolchain test -# The case extract toolchain tarball into temp folder -# Then compile iptables with the toolchain environment -# -# Author: Jiajun Xu <jiajun.xu@intel.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# -. $COREBASE/scripts/qemuimage-testlib - -TIMEOUT=120 - -# Extract and test toolchain tarball -Test_Toolchain iptables ${TIMEOUT} - -if [ $? -eq 0 ]; then - Test_Info "iptables Test PASS" - Test_Print_Result "iptables" 0 - exit 0 -elif [ $? -eq 1 ]; then - Test_Info "iptables Test FAIL" - Test_Print_Result "iptables" 1 - exit 1 -else - Test_Info "Skip iptables Test due to some configuration problem" - Test_Print_Result "iptables" 2 - exit 2 -fi diff --git a/scripts/qemuimage-tests/toolchain/sudoku-savant b/scripts/qemuimage-tests/toolchain/sudoku-savant deleted file mode 100755 index 3d149dea27..0000000000 --- a/scripts/qemuimage-tests/toolchain/sudoku-savant +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -# -# sudoku-savant compile Test for toolchain test -# The case extract toolchain tarball into temp folder -# Then compile sudoku-savant with the toolchain environment -# -# Author: Jiajun Xu <jiajun.xu@intel.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# -. $COREBASE/scripts/qemuimage-testlib - -TIMEOUT=240 - -# Extract and test toolchain tarball -Test_Toolchain sudoku-savant ${TIMEOUT} - -if [ $? -eq 0 ]; then - Test_Info "sudoku-savant Test PASS" - Test_Print_Result "sudoku-savant" 0 - exit 0 -elif [ $? -eq 1 ]; then - Test_Info "sudoku-savant Test FAIL" - Test_Print_Result "sudoku-savant" 1 - exit 1 -else - Test_Info "Skip sudoku-savant Test due to some configuration problem" - Test_Print_Result "sudoku-savant" 2 - exit 2 -fi diff --git a/scripts/qemuimage-tests/tools/bash.sh b/scripts/qemuimage-tests/tools/bash.sh deleted file mode 100644 index f6958f0e7e..0000000000 --- a/scripts/qemuimage-tests/tools/bash.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -# bash test script running in qemu -# -# Author: veera <veerabrahmamvr@huawei.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# - -which bash -if [ $? -eq 0 ]; then - echo "QEMU: bash is exist in the target by default" - exit 0 -else - echo "QEMU: No bash command in the qemu target" - exit 1 -fi diff --git a/scripts/qemuimage-tests/tools/compiler_test.sh b/scripts/qemuimage-tests/tools/compiler_test.sh deleted file mode 100644 index 9c30d6d78b..0000000000 --- a/scripts/qemuimage-tests/tools/compiler_test.sh +++ /dev/null @@ -1,137 +0,0 @@ -#!/bin/bash -# compiler test script running in target -# -# Author: Jiajun Xu <jiajun.xu@intel.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# - -# Prepare test folder for compiler test -COMPILE_FOLDER="/opt/test/compile_test" -TEST_FILE="$COMPILE_FOLDER/compile_test.c" -EXECUTE_FILE="$COMPILE_FOLDER/compile_test" -TEST_MAKEFILE="$COMPILE_FOLDER/makefile" -TEST_LIST="gcc g++ make" - -if [ ! -d $COMPILE_FOLDER ]; then - mkdir -p $COMPILE_FOLDER -fi - -Target_Info() -{ - echo -e "\tTARGET: $*" -} - -Target_Err() -{ - echo -e "\tTARGET: ##### Error Log #####" - $@ - echo -e "\tTARGET: ##### End #####" -} - -# Function to generate a c test file for compiler testing -Gen_File() -{ - temp=`mktemp` - - # Generate c/c++ test file for compiler testing - echo "#include <stdio.h>" >> $temp - echo "#include <math.h>" >> $temp - echo "" >> $temp - echo "double" >> $temp - echo "convert(long long l)" >> $temp - echo "{" >> $temp - echo " return (double)l; // or double(l)" >> $temp - echo "}" >> $temp - echo "" >> $temp - echo "int" >> $temp - echo "main(int argc, char * argv[])" >> $temp - echo "{" >> $temp - echo " long long l = 10;" >> $temp - echo " double f;" >> $temp - echo "" >> $temp - echo " f = convert(l);" >> $temp - echo " printf(\"convert: %lld => %f\n\", l, f);" >> $temp - echo "" >> $temp - echo " f = 1234.67;" >> $temp - echo " printf(\"floorf(%f) = %f\n\", f, floorf(f));" >> $temp - echo " return 0;" >> $temp - echo "}" >> $temp - echo $temp -} - -# Function to generate a makefile for compiler testing -Gen_Makefile() -{ - temp=`mktemp` - basename=`basename $EXECUTE_FILE` - - echo -e "$basename: $basename.o" >> $temp - echo -e "\tgcc -o $basename $basename.o -lm" >> $temp - echo -e "$basename.o: $basename.c" >> $temp - echo -e "\tgcc -c $basename.c" >> $temp - - echo $temp -} - -# Generate a c test file for compiler testing -test_file=`Gen_File` - -MOVE=`which mv` -$MOVE $test_file $TEST_FILE - -# Begin compiler test in target -for cmd in $TEST_LIST -do - which $cmd - if [ $? -ne 0 ]; then - Target_Info "No $cmd command found" - exit 1 - fi - - if [ "$cmd" == "make" ]; then - rm -rf $EXECUTE_FILE - - # For makefile test, we need to generate a makefile and run with a c file - makefile=`Gen_Makefile` - $MOVE $makefile $TEST_MAKEFILE - - cd `dirname $TEST_MAKEFILE` - make - - if [ $? -ne 0 ]; then - Target_Info "$cmd running with error, Pls. check error in following" - Target_Err make - exit 1 - fi - else - rm -rf $EXECUTE_FILE - - # For gcc/g++, we compile a c test file and check the output - $cmd $TEST_FILE -o $EXECUTE_FILE -lm - - if [ $? -ne 0 ]; then - Target_Info "$cmd running with error, Pls. check error in following" - Target_Err $cmd $TEST_FILE -o $EXECUTE_FILE -lm - exit 1 - fi - fi - - # Check if the binary file generated by $cmd can work without error - if [ -f $EXECUTE_FILE ]; then - $EXECUTE_FILE - if [ $? -ne 0 ]; then - Target_Info "$EXECUTE_FILE running with error, Pls. check error in following" - Target_Err $EXECUTE_FILE - exit 1 - else - Target_Info "$cmd can work without problem in target" - fi - else - Target_Info "No executalbe file $EXECUTE_FILE found, Pls. check the error log" - exit 1 - fi -done - -exit 0 diff --git a/scripts/qemuimage-tests/tools/connman_test.sh b/scripts/qemuimage-tests/tools/connman_test.sh deleted file mode 100644 index 4c1e2f558e..0000000000 --- a/scripts/qemuimage-tests/tools/connman_test.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/bash -# connman test script running in target -# -# Author: Jiajun Xu <jiajun.xu@intel.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# - -Target_Info() -{ - echo -e "\tTARGET: $*" -} - -Target_Err() -{ - echo -e "\tTARGET: connman has issue when running, Pls. check the error log" - echo -e "\tTARGET: ##### Error Log #####" - $1 - echo -e "\tTARGET: ##### End #####" -} - -# Check if ps comes from Procps or busybox first -ls -l `which ps` | grep -q "busybox" -RET=$? - -if [ $RET -eq 0 ]; then - PS="ps" -else - PS="ps -ef" -fi - -# Check if connmand is in target -if [ ! -f /usr/sbin/connmand ]; then - Target_Info "No connmand command found" - exit 1 -fi - -# Check if connmand is running in background -if [ $RET -eq 0 ]; then - count=`ps | awk '{print $5}' | grep -c connmand` -else - count=`ps -eo comm | cut -d " " -f 1 | grep -c connmand` -fi - -if [ $count -ne 1 ]; then - Target_Info "connmand has issue when running in background, Pls, check the output of ps" - ${PS} - exit 1 -fi - -# Check if there is always only one connmand running in background -if [ connmand > /dev/null 2>&1 ]; then - Target_Info "connmand command run without problem" - - if [ $RET -eq 0 ]; then - count=`ps | awk '{print $5}' | grep -c connmand` - else - count=`ps -eo comm | cut -d " " -f 1 | grep -c connmand` - fi - - if [ $count -ne 1 ]; then - Target_Info "There are more than one connmand running in background, Pls, check the output of ps" - ${PS} | grep connmand - exit 1 - else - Target_Info "There is always one connmand running in background, test pass" - exit 0 - fi -else - Target_Err connmand - exit 1 -fi - -exit 0 diff --git a/scripts/qemuimage-tests/tools/df.sh b/scripts/qemuimage-tests/tools/df.sh deleted file mode 100644 index 280c08e031..0000000000 --- a/scripts/qemuimage-tests/tools/df.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -# df test script to check enough disk space for qemu target -# -# Author: veera <veerabrahmamvr@huawei.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -#taking the size of the each partition -array_list=(`df -P | tr -s " " | cut -d " " -f4`) -#Total size of the array -array_size=`echo ${#array_list[@]}` -loop_val=1 -#while loop to check the size of partitions are less than 5MB -while [ $loop_val -lt $array_size ] -do - #taking each value from the array to check the size - value=`echo ${array_list[$loop_val]}` - if [[ $value -gt 5120 ]];then - loop_val=`expr $loop_val + 1` - else - echo "QEMU: df : disk space is not enough" - exit 1 - fi -done -exit 0 diff --git a/scripts/qemuimage-tests/tools/dmesg.sh b/scripts/qemuimage-tests/tools/dmesg.sh deleted file mode 100644 index f0c93181bd..0000000000 --- a/scripts/qemuimage-tests/tools/dmesg.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -# Dmesg test script running in QEMU -# -# Author: Jiajun Xu <jiajun.xu@intel.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# - -which dmesg -if [ $? -ne 0 ]; then - echo "QEMU: No dmesg command found" - exit 1 -fi - -# For now, ignore mmci-pl18x errors on qemuarm which appeared -# from the 3.8 kernel and are harmless -dmesg | grep -v mmci-pl18x | grep -iq "error" -if [ $? -eq 0 ]; then - echo "QEMU: There is some error log in dmesg:" - echo "QEMU: ##### Error Log ######" - dmesg | grep -i "error" - echo "QEMU: ##### End ######" - exit 1 -else - echo "QEMU: No error log in dmesg" - exit 0 -fi diff --git a/scripts/qemuimage-tests/tools/rpm_test.sh b/scripts/qemuimage-tests/tools/rpm_test.sh deleted file mode 100644 index 6e6f9112ca..0000000000 --- a/scripts/qemuimage-tests/tools/rpm_test.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# rpm test script running in target -# -# Author: Jiajun Xu <jiajun.xu@intel.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# - -Target_Info() -{ - echo -e "\tTARGET: $*" -} - -Target_Err() -{ - echo -e "\tTARGET: rpm command has issue when running, Pls. check the error log" - echo -e "\tTARGET: ##### Error Log #####" - $1 - echo -e "\tTARGET: ##### End #####" -} - -which rpm -if [ $? -ne 0 ]; then - Target_Info "No rpm command found" - exit 1 -fi - -if [ rpm > /dev/null 2>&1 ]; then - Target_Info "rpm command run without problem" -else - Target_Err rpm - exit 1 -fi - -# run rpm with specific command parsed to rpm_test.sh -rpm $* > /dev/null 2>&1 - -if [ $? -eq 0 ]; then - Target_Info "rpm $* work without problem" - exit 0 -else - Target_Err rpm $* - exit 1 -fi diff --git a/scripts/qemuimage-tests/tools/smart_test.sh b/scripts/qemuimage-tests/tools/smart_test.sh deleted file mode 100644 index f278a25e2b..0000000000 --- a/scripts/qemuimage-tests/tools/smart_test.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# smart test script running in target -# -# Author: Jiajun Xu <jiajun.xu@intel.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# - -Target_Info() -{ - echo -e "\tTARGET: $*" -} - -Target_Err() -{ - echo -e "\tTARGET: smart command has issue when running, Pls. check the error log" - echo -e "\tTARGET: ##### Error Log #####" - $1 - echo -e "\tTARGET: ##### End #####" -} - -which smart -if [ $? -ne 0 ]; then - Target_Info "No smart command found" - exit 1 -fi - -if [ smart > /dev/null 2>&1 ]; then - Target_Info "smart command run without problem" -else - Target_Err smart - exit 1 -fi - -# run smart with specific command parsed to smart_test.sh -smart $* > /dev/null 2>&1 - -if [ $? -eq 0 ]; then - Target_Info "smart $* work without problem" - exit 0 -else - Target_Err "smart $*" - exit 1 -fi diff --git a/scripts/qemuimage-tests/tools/syslog.sh b/scripts/qemuimage-tests/tools/syslog.sh deleted file mode 100644 index 9154da3b85..0000000000 --- a/scripts/qemuimage-tests/tools/syslog.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# syslog test script running in qemu -# -# Author: veera <veerabrahmamvr@huawei.com> -# -# This file is licensed under the GNU General Public License, -# Version 2. -# - -ps aux | grep -w syslogd | grep -v grep -if [ $? -eq 0 ]; then - echo "QEMU: syslogd is running by default" - exit 0 -else - echo "QEMU: syslogd is not running" - exit 1 -fi |