/[jscoverage]/trunk/tests/javascript-utf-8.sh
ViewVC logotype

Diff of /trunk/tests/javascript-utf-8.sh

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

revision 528 by siliconforks, Sat Jan 2 04:55:54 2010 UTC revision 529 by siliconforks, Thu Apr 1 22:50:30 2010 UTC
# Line 18  Line 18 
18    
19  set -e  set -e
20    
21  trap 'rm -fr DIR' 1 2 3 15  trap 'rm -fr EXPECTED ACTUAL' 1 2 3 15
22    
23  export PATH=.:..:$PATH  . ./common.sh
24    
25  if jscoverage-server --version | grep -q 'iconv\|MultiByteToWideChar'  if jscoverage-server --version | grep -q 'iconv\|MultiByteToWideChar'
26  then  then
# Line 29  Line 29 
29    character_encoding_support=no    character_encoding_support=no
30  fi  fi
31    
32  rm -fr DIR  rm -fr EXPECTED ACTUAL
33  case "$character_encoding_support" in  case "$character_encoding_support" in
34    yes)    yes)
35      $VALGRIND jscoverage --no-highlight --encoding=UTF-8 javascript-utf-8 DIR      add_header_to_files javascript-utf-8.expected
36      diff -u --strip-trailing-cr javascript-utf-8.expected/javascript-utf-8.js DIR/javascript-utf-8.js      $VALGRIND jscoverage --no-highlight --encoding=UTF-8 javascript-utf-8 ACTUAL
37        diff -u --strip-trailing-cr EXPECTED/javascript-utf-8.js ACTUAL/javascript-utf-8.js
38      ;;      ;;
39    *)    *)
40      ! $VALGRIND jscoverage --no-highlight --encoding=UTF-8 javascript-utf-8 DIR > OUT 2> ERR      ! $VALGRIND jscoverage --no-highlight --encoding=UTF-8 javascript-utf-8 ACTUAL > OUT 2> ERR
41      echo "jscoverage: encoding UTF-8 not supported" | diff - ERR      echo "jscoverage: encoding UTF-8 not supported" | diff - ERR
42      ;;      ;;
43  esac  esac
44  rm -fr DIR  rm -fr EXPECTED ACTUAL

Legend:
Removed from v.528  
changed lines
  Added in v.529

  ViewVC Help
Powered by ViewVC 1.1.24