/[jscoverage]/trunk/tests/store-escaped-characters.sh
ViewVC logotype

Diff of /trunk/tests/store-escaped-characters.sh

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

revision 609 by siliconforks, Mon May 24 03:13:28 2010 UTC revision 610 by siliconforks, Fri Sep 24 20:35:36 2010 UTC
# Line 32  Line 32 
32  trap 'cleanup' 0 1 2 3 15  trap 'cleanup' 0 1 2 3 15
33    
34  rm -fr DIR  rm -fr DIR
35  $VALGRIND jscoverage-server --no-highlight --report-dir=DIR &  server_port=`perl unused-port.pl`
36    $VALGRIND jscoverage-server --port=$server_port --no-highlight --report-dir=DIR &
37  server_pid=$!  server_pid=$!
 server_port=8080  
38    
39  wait_for_server http://127.0.0.1:8080/jscoverage.html  wait_for_server http://127.0.0.1:${server_port}/jscoverage.html
40    
41  wget --post-file=store-escaped-characters.json -q -O- http://127.0.0.1:8080/jscoverage-store > /dev/null  wget --post-file=store-escaped-characters.json -q -O- http://127.0.0.1:${server_port}/jscoverage-store > /dev/null
42  json_cmp store-escaped-characters.expected.json DIR/jscoverage.json  json_cmp store-escaped-characters.expected.json DIR/jscoverage.json
43  wget --post-file=store-escaped-characters.json -q -O- http://127.0.0.1:8080/jscoverage-store > /dev/null  wget --post-file=store-escaped-characters.json -q -O- http://127.0.0.1:${server_port}/jscoverage-store > /dev/null
44  cat store-escaped-characters.expected.json | sed s/1,/2,/g > TMP  cat store-escaped-characters.expected.json | sed s/1,/2,/g > TMP
45  json_cmp TMP DIR/jscoverage.json  json_cmp TMP DIR/jscoverage.json

Legend:
Removed from v.609  
changed lines
  Added in v.610

  ViewVC Help
Powered by ViewVC 1.1.24