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

Diff of /trunk/tests/javascript.sh

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

revision 85 by siliconforks, Sat Dec 1 02:06:00 2007 UTC revision 339 by siliconforks, Fri Oct 24 16:13:57 2008 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  #    javascript.sh - test various JavaScript constructs  #    javascript.sh - test various JavaScript constructs
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 22  Line 22 
22    
23  export PATH=.:..:$PATH  export PATH=.:..:$PATH
24    
25    if jscoverage-server --version | grep -q 'iconv\|MultiByteToWideChar'
26    then
27      character_encoding_support=yes
28    else
29      character_encoding_support=no
30    fi
31    
32  rm -fr DIR  rm -fr DIR
33  $VALGRIND jscoverage javascript DIR  case "$character_encoding_support" in
34      yes)
35        $VALGRIND jscoverage --js-version 180 --encoding ISO-8859-1 javascript DIR
36        ;;
37      *)
38        $VALGRIND jscoverage --js-version=180 --exclude=javascript-iso-8859-1.js javascript DIR
39        ;;
40    esac
41  for i in javascript/*.js  for i in javascript/*.js
42  do  do
43      if [ $character_encoding_support = no -a $i = javascript/javascript-iso-8859-1.js ]
44      then
45        continue
46      fi
47    FILE=${i##javascript/}    FILE=${i##javascript/}
48    EXPECTED=javascript.expected/${FILE}    EXPECTED=javascript.expected/${FILE}
49    ACTUAL=DIR/${FILE}    ACTUAL=DIR/${FILE}

Legend:
Removed from v.85  
changed lines
  Added in v.339

  ViewVC Help
Powered by ViewVC 1.1.24