/[jscoverage]/trunk/tests/recursive-no-instrument.sh
ViewVC logotype

Diff of /trunk/tests/recursive-no-instrument.sh

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

revision 2 by siliconforks, Wed Aug 1 13:51:53 2007 UTC revision 181 by siliconforks, Sun Sep 21 18:42:02 2008 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  #    recursive-no-instrument.sh - test `--no-instrument' option  #    recursive-no-instrument.sh - test `--no-instrument' option
3  #    Copyright (C) 2007 siliconforks.com  #    Copyright (C) 2007, 2008 siliconforks.com
4  #  #
5  #    This program is free software; you can redistribute it and/or modify  #    This program is free software; you can redistribute it and/or modify
6  #    it under the terms of the GNU General Public License as published by  #    it under the terms of the GNU General Public License as published by
# Line 25  Line 25 
25  rm -fr DIR  rm -fr DIR
26  rm -fr EXPECTED  rm -fr EXPECTED
27  cp -r recursive.expected EXPECTED  cp -r recursive.expected EXPECTED
28  find EXPECTED -depth -name .svn -exec rm -fr {} \;  find EXPECTED -name .svn | xargs rm -fr
29  cp recursive/script.js EXPECTED  cat recursive/script.js | sed 's/@PREFIX@//g' > EXPECTED/script.js
30  rm EXPECTED/script.js.jscoverage.html  cat recursive.expected/1/1.js | sed 's/@PREFIX@//g' > EXPECTED/1/1.js
31  cp recursive/1/1.js EXPECTED/1/1.js.jscoverage.js  cat recursive/1/2/2.js | sed 's/@PREFIX@//g' > EXPECTED/1/2/2.js
32  cp recursive/1/2/2.js EXPECTED/1/2  cp ../jscoverage*.css ../jscoverage*.gif ../jscoverage*.html ../jscoverage*.js EXPECTED
 rm EXPECTED/1/2/2.js.jscoverage.html  
 cp ../jscoverage*.css ../jscoverage*.gif ../jscoverage*.html ../jscoverage*.js ../sh_*.css ../sh_*.js EXPECTED  
33    
34  $VALGRIND jscoverage --exclude=.svn --exclude=1/.svn --exclude=1/2/.svn --no-instrument 1/2 --no-instrument=script.js recursive DIR  $VALGRIND jscoverage --no-highlight --exclude=.svn --exclude=1/.svn --exclude=1/2/.svn --no-instrument 1/2 --no-instrument=script.js recursive DIR
35  test -d DIR  test -d DIR
36  diff --strip-trailing-cr -r EXPECTED DIR  diff --strip-trailing-cr -r EXPECTED DIR
37    

Legend:
Removed from v.2  
changed lines
  Added in v.181

  ViewVC Help
Powered by ViewVC 1.1.24