You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by kf...@apache.org on 2017/06/06 03:24:11 UTC

[2/3] incubator-weex git commit: + [ios] update macaca case

+ [ios] update macaca  case


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/f7988525
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/f7988525
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/f7988525

Branch: refs/heads/0.14-dev
Commit: f79885258fc7a1d80e0251d146fc4e1c09021073
Parents: ed617c5
Author: 齐山 <su...@163.com>
Authored: Tue Jun 6 11:14:57 2017 +0800
Committer: 齐山 <su...@163.com>
Committed: Tue Jun 6 11:14:57 2017 +0800

----------------------------------------------------------------------
 test/run.sh | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/f7988525/test/run.sh
----------------------------------------------------------------------
diff --git a/test/run.sh b/test/run.sh
index e7e5094..7589af8 100755
--- a/test/run.sh
+++ b/test/run.sh
@@ -6,6 +6,10 @@ function startMacacaServer {
     while ! nc -z 127.0.0.1 3456; do sleep 5; done
 }
 
+function startWeexServer {
+    while ! nc -z 127.0.0.1 12581; do sleep 5; done
+}
+
 function buildAndroid {
     dir=$(pwd)
     builddir=$dir'/android'
@@ -18,6 +22,7 @@ function buildAndroid {
 function runAndroid {
     buildAndroid
     startMacacaServer
+    startWeexServer
     platform=android ./node_modules/mocha/bin/mocha  $1 -f '@ignore-android' -i --recursive --bail
 }
 
@@ -47,12 +52,14 @@ function runiOS {
     killAll Simulator || echo 'killall failed'
     # ps -ef
     startMacacaServer
+    startWeexServer
     platform=ios ./node_modules/mocha/bin/mocha  $1 -f '@ignore-ios' -i --recursive --bail --verbose
 }
 
 function runWeb {
     echo 'run web'
     startMacacaServer
+    startWeexServer
     browser=chrome ./node_modules/mocha/bin/mocha  $1 -f '@ignore-web' -i --recursive --bail
 }