/[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 222 by siliconforks, Fri Oct 3 02:27:56 2008 UTC revision 339 by siliconforks, Fri Oct 24 16:13:57 2008 UTC
# 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 --encoding ISO-8859-1 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.222  
changed lines
  Added in v.339

  ViewVC Help
Powered by ViewVC 1.1.24