/[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 67 by siliconforks, Thu Nov 22 01:30:37 2007 UTC revision 578 by siliconforks, Thu Sep 9 22:40:04 2010 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, 2009, 2010 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 ../header.txt ../header.js 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-highlight.css ../jscoverage-ie.css \
33  rm EXPECTED/1/2/2.js.jscoverage.html     ../jscoverage-throbber.gif \
34  cp ../jscoverage*.css ../jscoverage*.gif ../jscoverage*.html ../jscoverage*.js EXPECTED     ../jscoverage.html \
35       ../jscoverage.js EXPECTED
36    
37  $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 --verbose --exclude=.svn --exclude=1/.svn --exclude=1/2/.svn --no-instrument 1/2 --no-instrument=script.js recursive DIR > OUT
38  test -d DIR  test -d DIR
39    sort OUT -o OUT
40    diff --strip-trailing-cr verbose-no-instrument.expected.out OUT
41  diff --strip-trailing-cr -r EXPECTED DIR  diff --strip-trailing-cr -r EXPECTED DIR
42    
43  rm -fr EXPECTED DIR  rm -fr EXPECTED DIR

Legend:
Removed from v.67  
changed lines
  Added in v.578

  ViewVC Help
Powered by ViewVC 1.1.24