/[jscoverage]/trunk/selenium/selenium.sh
ViewVC logotype

Diff of /trunk/selenium/selenium.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 234 by siliconforks, Fri Oct 3 02:30:46 2008 UTC revision 262 by siliconforks, Mon Oct 6 06:35:53 2008 UTC
# Line 9  Line 9 
9    kill $selenium_server_pid    kill $selenium_server_pid
10  }  }
11    
12    server_is_running() {
13      netstat -a -n | grep -q '\(::\|0\.0\.0\.0\):4444'
14    }
15    
16  java -cp build Server ../doc/instrumented > server.out 2> server.err &  java -cp build Server ../doc/instrumented > server.out 2> server.err &
17  server_pid=$!  server_pid=$!
18    
# Line 16  Line 20 
20  selenium_server_pid=$!  selenium_server_pid=$!
21    
22  # wait for the HTTP server to start  # wait for the HTTP server to start
23  while ! netstat -a -n --inet --inet6 | grep -q :::8000  while ! server_is_running
24  do  do
25    sleep 0.1    sleep 0.1
26  done  done
27    
28  # wait for the selenium server to start  # wait for the selenium server to start
29  while ! netstat -a -n --inet --inet6 | grep -q :::4444  while ! server_is_running
30  do  do
31    sleep 0.1    sleep 0.1
32  done  done
33    
34  java -cp junit.jar:selenium-java-client-driver.jar:build junit.textui.TestRunner JSCoverageTest  uname=`uname`
35    case "$uname" in
36      CYGWIN* | MINGW*)
37        separator=';'
38        ;;
39      *)
40        separator=':'
41        ;;
42    esac
43    
44    java -cp "junit.jar${separator}selenium-java-client-driver.jar${separator}build" junit.textui.TestRunner JSCoverageTest

Legend:
Removed from v.234  
changed lines
  Added in v.262

  ViewVC Help
Powered by ViewVC 1.1.24