/[jscoverage]/trunk/tests/fatal.sh
ViewVC logotype

Diff of /trunk/tests/fatal.sh

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

revision 87 by siliconforks, Mon May 5 20:05:27 2008 UTC revision 370 by siliconforks, Mon Oct 27 20:34:27 2008 UTC
# Line 18  Line 18 
18    
19  set -e  set -e
20    
21  trap 'rm -fr DIR OUT ERR' 1 2 3 15  trap 'rm -fr DIR DIR2 OUT ERR' 1 2 3 15
22    
23  export PATH=.:..:$PATH  export PATH=.:..:$PATH
24    
25  rm -fr DIR  rm -fr DIR DIR2
26    
27  $VALGRIND jscoverage javascript-xml DIR > OUT 2> ERR && exit 1  $VALGRIND jscoverage javascript-xml DIR > OUT 2> ERR && exit 1
28  test ! -s OUT  test ! -s OUT
# Line 38  Line 38 
38    
39  rm -fr DIR  rm -fr DIR
40    
41    $VALGRIND jscoverage javascript-setter DIR > OUT 2> ERR && exit 1
42    test ! -s OUT
43    test -s ERR
44    diff --strip-trailing-cr javascript-setter.expected.err ERR
45    
46    rm -fr DIR
47    
48  $VALGRIND jscoverage 1 2 3 > OUT 2> ERR && exit 1  $VALGRIND jscoverage 1 2 3 > OUT 2> ERR && exit 1
49  test ! -s OUT  test ! -s OUT
50  test -s ERR  test -s ERR
# Line 55  Line 62 
62  test -s ERR  test -s ERR
63  diff --strip-trailing-cr exclude-requires-argument.expected.err ERR  diff --strip-trailing-cr exclude-requires-argument.expected.err ERR
64    
65    $VALGRIND jscoverage --encoding > OUT 2> ERR && exit 1
66    test ! -s OUT
67    test -s ERR
68    diff --strip-trailing-cr encoding-requires-argument.expected.err ERR
69    
70  # first arg does not exist  # first arg does not exist
71  rm -f foo  rm -f foo
72  $VALGRIND jscoverage foo bar > OUT 2> ERR && exit 1  $VALGRIND jscoverage foo bar > OUT 2> ERR && exit 1
# Line 89  Line 101 
101  # diff --strip-trailing-cr destination-is-existing-directory.expected.err ERR  # diff --strip-trailing-cr destination-is-existing-directory.expected.err ERR
102  rm -fr bar  rm -fr bar
103    
104  rm -fr DIR OUT ERR  # huge JavaScript file
105    mkdir -p DIR
106    perl -e 'for (1 .. 65536) {print "x = $_\n";}' > DIR/big.js
107    $VALGRIND jscoverage DIR DIR2 > OUT 2> ERR && exit 1
108    echo 'jscoverage: file big.js contains more than 65,535 lines' | diff --strip-trailing-cr - ERR
109    
110    rm -fr DIR DIR2 OUT ERR

Legend:
Removed from v.87  
changed lines
  Added in v.370

  ViewVC Help
Powered by ViewVC 1.1.24