All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fuego] [PATCH 1/5] Functional.curl: change server URL
@ 2018-08-27  6:12 Qiu Tingting
  2018-08-27  6:12 ` [Fuego] [PATCH 2/5] Functional.glibc: modify realpath and absolute path Qiu Tingting
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Qiu Tingting @ 2018-08-27  6:12 UTC (permalink / raw)
  To: fuego

When internet is unable to access, use jenkins URL to test.The IP of jenkins can be specified in board.

Signed-off-by: Qiu Tingting <qiutt@cn.fujitsu.com>
---
 engine/tests/Functional.curl/fuego_test.sh | 56 ++++++++++++++++++++++++++----
 1 file changed, 50 insertions(+), 6 deletions(-)

diff --git a/engine/tests/Functional.curl/fuego_test.sh b/engine/tests/Functional.curl/fuego_test.sh
index 582544e..69bd68c 100755
--- a/engine/tests/Functional.curl/fuego_test.sh
+++ b/engine/tests/Functional.curl/fuego_test.sh
@@ -4,12 +4,56 @@ function test_pre_check {
 }
 
 function test_run {
-    report "if curl -o test.html www.baidu.com > /dev/null; then echo 'TEST-1 OK'; else echo 'TEST-1 FAILED'; fi;\
-    if curl -i -r 0-1024 http://www.sina.com.cn -o sina_part1.html > /dev/null; then echo 'TEST-2 OK'; else echo 'TEST-2 FAILED'; fi;\
-    if curl -v www.baidu.com > /dev/null; then echo 'TEST-3 OK'; else echo 'TEST-3 FAILED'; fi;\
-    if curl -V > /dev/null; then echo 'TEST-4 OK'; else echo 'TEST-4 FAILED'; fi;\
-    if curl -y 30 www.baidu.com > /dev/null; then echo 'TEST-5 OK'; else echo 'TEST-5 FAILED'; fi;\
-    if curl -q www.baidu.com > /dev/null;then echo Enter && echo 'TEST-6 OK'; else echo 'TEST-6 FAILED'; fi"
+    report "if curl -o test.html www.baidu.com > /dev/null; then\
+        echo 'TEST-1 OK';\
+    else\
+        if curl -o test.html $SRV_IP/fuego > /dev/null; then\
+            echo 'TEST-1 OK';\
+        else\
+            echo 'TEST-1 FAILED';\
+        fi;\
+    fi;\
+    if curl -i -r 0-1024 http://www.sina.com.cn -o sina_part1.html > /dev/null; then\
+        echo 'TEST-2 OK';\
+    else\
+        if curl -i -r 0-1024 $SRV_IP/fuego -o fuego.html > /dev/null; then\
+            echo 'TEST-2 OK';\
+        else\
+            echo 'TEST-2 FAILED';\
+        fi;\
+    fi;\
+    if curl -v www.baidu.com > /dev/null; then\
+        echo 'TEST-3 OK';\
+    else\
+        if curl -v $SRV_IP/fuego > /dev/null; then\
+            echo 'TEST-3 OK';\
+        else\
+            echo 'TEST-3 FAILED';\
+        fi;\
+    fi;\
+    if curl -V > /dev/null; then\
+        echo 'TEST-4 OK';\
+    else\
+        echo 'TEST-4 FAILED';\
+    fi;\
+    if curl -y 30 www.baidu.com > /dev/null; then\
+        echo 'TEST-5 OK';\
+    else\
+        if curl -y 30 $SRV_IP/fuego > /dev/null; then\
+            echo 'TEST-5 OK';\
+        else\
+            echo 'TEST-5 FAILED';\
+        fi;\
+    fi;\
+    if curl -q www.baidu.com > /dev/null;then\
+        echo Enter && echo 'TEST-6 OK';\
+    else\
+        if curl -q $SRV_IP/fuego > /dev/null;then\
+            echo Enter && echo 'TEST-6 OK';\
+        else\
+           echo 'TEST-6 FAILED';\
+        fi;\
+    fi"
 }
 
 function test_processing {
-- 
2.7.4




^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-11-09  7:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-27  6:12 [Fuego] [PATCH 1/5] Functional.curl: change server URL Qiu Tingting
2018-08-27  6:12 ` [Fuego] [PATCH 2/5] Functional.glibc: modify realpath and absolute path Qiu Tingting
2018-11-09  4:13   ` Tim.Bird
2018-11-09  7:05     ` Qiu, Tingting
2018-08-27  6:12 ` [Fuego] [PATCH 3/5] Functional.giflib: add config.guess and config.sub Qiu Tingting
2018-08-27  6:12 ` [Fuego] [PATCH 4/5] Functional.net-tools: add absolute path Qiu Tingting
2018-11-09  4:34   ` Tim.Bird
2018-11-09  6:10     ` Qiu, Tingting
2018-11-09  6:16       ` Daniel Sangorrin
2018-11-09  7:13         ` Qiu, Tingting
2018-08-27  6:12 ` [Fuego] [PATCH 5/5] Functional.neon: change pre-check and build Qiu Tingting
2018-11-09  4:27   ` Tim.Bird
2018-11-09  6:33     ` Qiu, Tingting

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.