summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiaofeng Yan <xiaofeng.yan@windriver.com>2011-03-04 19:04:16 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-04 22:26:36 +0000
commit60ce101ce30ef2c39de5f74ec3c14041f41c4602 (patch)
tree4c1e1265fa3bda126a8b3371aaaa921c31dc556a
parent8af386867081791aa5ccc6eaf56f5532d81025a8 (diff)
downloadpoky-60ce101ce30ef2c39de5f74ec3c14041f41c4602.tar.gz
LSB_Setup.sh:Install LSB Test Suite and set lsb test environment
Perfect some funtions for lsb test in yocto 1.0 (From OE-Core rev: aa60f178d9f6b4ebdf03bbfcf2b46e94bf4e78d3) Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 4bf7686c2e..78c33b3a73 100644
--- a/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh
+++ b/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh
@@ -21,7 +21,7 @@
21if [ ! -f /opt/lsb/test/manager/bin/dist-checker-start.pl ] 21if [ ! -f /opt/lsb/test/manager/bin/dist-checker-start.pl ]
22then 22then
23 if [ -d /lsb-dist-testkit ];then 23 if [ -d /lsb-dist-testkit ];then
24 cd /lsb-dist-testkit && sh install.sh 24 cd /lsb-dist-testkit && sh install.sh && cd ../lsb-Application && rpm -ivh *.rpm --nodeps --force
25 else 25 else
26 echo "Please install the realted LSB Packages" 26 echo "Please install the realted LSB Packages"
27 exit 1 27 exit 1
@@ -42,7 +42,7 @@ yes|y)
42 if [ $? -eq 0 ] || [ $? -eq 6 ] 42 if [ $? -eq 0 ] || [ $? -eq 6 ]
43 then 43 then
44 echo "Success to delete user tester" 44 echo "Success to delete user tester"
45 else 45 else
46 echo "Fail to delete user tester" 46 echo "Fail to delete user tester"
47 fi 47 fi
48 ;; 48 ;;
@@ -177,21 +177,21 @@ ping -c 5 ftp.linux-foundation.org
177check 177check
178 178
179#Step 7 179#Step 7
180if [ -f /lib/modules/*-wr-standard/kernel/drivers/block/loop.ko ];then 180insmod /lib/modules/2.6.37.2-yocto-standard\+/kernel/drivers/block/loop.ko
181 inmod /lib/modules/*-wr-standard/kernel/drivers/block/loop.ko 181if [ $? != 0 ];then
182 echo "Please insmod loop.ko manully"
182fi 183fi
183
184#Step 8 184#Step 8
185echo "" 185echo ""
186if [ -f /opt/lsb/test/manager/bin/dist-checker-start.pl ];then 186if [ -f /opt/lsb/test/manager/bin/dist-checker-start.pl ];then
187 ./opt/lsb/test/manager/bin/dist-checker-start.pl 187 /opt/lsb/test/manager/bin/dist-checker-start.pl
188fi 188fi
189 189
190
191#Step 9 get ip address for target platform 190#Step 9 get ip address for target platform
192addr=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}'|sed s/[[:space:]]Bcast//g` 191addr=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}'|sed s/[[:space:]][[:space:]]Bcast//g`
193echo -e "you should input ${addr}:8888 on your browse" 192echo -e "you should input ${addr}:8888 on your browser"
194#Step 8 193
194#Step 10
195echo "Done!!" 195echo "Done!!"
196 196
197###End 197###End