summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaofeng Yan <xiaofeng.yan@windriver.com>2011-03-04 19:04:16 +0800
committerSaul Wold <sgw@linux.intel.com>2011-03-04 11:37:08 -0800
commitaa60f178d9f6b4ebdf03bbfcf2b46e94bf4e78d3 (patch)
treec828400ce911d5612e34abc752f7e295fe0bcc43
parent30343a72b89167b46ff4cc33be6ada2fd4b13a59 (diff)
downloadopenembedded-core-aa60f178d9f6b4ebdf03bbfcf2b46e94bf4e78d3.tar.gz
openembedded-core-aa60f178d9f6b4ebdf03bbfcf2b46e94bf4e78d3.tar.bz2
openembedded-core-aa60f178d9f6b4ebdf03bbfcf2b46e94bf4e78d3.tar.xz
openembedded-core-aa60f178d9f6b4ebdf03bbfcf2b46e94bf4e78d3.zip
LSB_Setup.sh:Install LSB Test Suite and set lsb test environment
Perfect some funtions for lsb test in yocto 1.0 Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
-rw-r--r--meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh b/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh
index 4bf7686c2..78c33b3a7 100644
--- a/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh
+++ b/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh
@@ -21,7 +21,7 @@
if [ ! -f /opt/lsb/test/manager/bin/dist-checker-start.pl ]
then
if [ -d /lsb-dist-testkit ];then
- cd /lsb-dist-testkit && sh install.sh
+ cd /lsb-dist-testkit && sh install.sh && cd ../lsb-Application && rpm -ivh *.rpm --nodeps --force
else
echo "Please install the realted LSB Packages"
exit 1
@@ -42,7 +42,7 @@ yes|y)
if [ $? -eq 0 ] || [ $? -eq 6 ]
then
echo "Success to delete user tester"
- else
+ else
echo "Fail to delete user tester"
fi
;;
@@ -177,21 +177,21 @@ ping -c 5 ftp.linux-foundation.org
check
#Step 7
-if [ -f /lib/modules/*-wr-standard/kernel/drivers/block/loop.ko ];then
- inmod /lib/modules/*-wr-standard/kernel/drivers/block/loop.ko
+insmod /lib/modules/2.6.37.2-yocto-standard\+/kernel/drivers/block/loop.ko
+if [ $? != 0 ];then
+ echo "Please insmod loop.ko manully"
fi
-
#Step 8
echo ""
if [ -f /opt/lsb/test/manager/bin/dist-checker-start.pl ];then
- ./opt/lsb/test/manager/bin/dist-checker-start.pl
+ /opt/lsb/test/manager/bin/dist-checker-start.pl
fi
-
#Step 9 get ip address for target platform
-addr=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}'|sed s/[[:space:]]Bcast//g`
-echo -e "you should input ${addr}:8888 on your browse"
-#Step 8
+addr=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}'|sed s/[[:space:]][[:space:]]Bcast//g`
+echo -e "you should input ${addr}:8888 on your browser"
+
+#Step 10
echo "Done!!"
###End