diff options
author | Xiaofeng Yan <xiaofeng.yan@windriver.com> | 2011-03-04 19:04:16 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-04 22:26:36 +0000 |
commit | 60ce101ce30ef2c39de5f74ec3c14041f41c4602 (patch) | |
tree | 4c1e1265fa3bda126a8b3371aaaa921c31dc556a /meta/recipes-extended/lsb | |
parent | 8af386867081791aa5ccc6eaf56f5532d81025a8 (diff) | |
download | poky-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>
Diffstat (limited to 'meta/recipes-extended/lsb')
-rw-r--r-- | meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh | 20 |
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 @@ | |||
21 | if [ ! -f /opt/lsb/test/manager/bin/dist-checker-start.pl ] | 21 | if [ ! -f /opt/lsb/test/manager/bin/dist-checker-start.pl ] |
22 | then | 22 | then |
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 | |||
177 | check | 177 | check |
178 | 178 | ||
179 | #Step 7 | 179 | #Step 7 |
180 | if [ -f /lib/modules/*-wr-standard/kernel/drivers/block/loop.ko ];then | 180 | insmod /lib/modules/2.6.37.2-yocto-standard\+/kernel/drivers/block/loop.ko |
181 | inmod /lib/modules/*-wr-standard/kernel/drivers/block/loop.ko | 181 | if [ $? != 0 ];then |
182 | echo "Please insmod loop.ko manully" | ||
182 | fi | 183 | fi |
183 | |||
184 | #Step 8 | 184 | #Step 8 |
185 | echo "" | 185 | echo "" |
186 | if [ -f /opt/lsb/test/manager/bin/dist-checker-start.pl ];then | 186 | if [ -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 |
188 | fi | 188 | fi |
189 | 189 | ||
190 | |||
191 | #Step 9 get ip address for target platform | 190 | #Step 9 get ip address for target platform |
192 | addr=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}'|sed s/[[:space:]]Bcast//g` | 191 | addr=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}'|sed s/[[:space:]][[:space:]]Bcast//g` |
193 | echo -e "you should input ${addr}:8888 on your browse" | 192 | echo -e "you should input ${addr}:8888 on your browser" |
194 | #Step 8 | 193 | |
194 | #Step 10 | ||
195 | echo "Done!!" | 195 | echo "Done!!" |
196 | 196 | ||
197 | ###End | 197 | ###End |