/[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 505 by siliconforks, Sat Jan 2 04:55:54 2010 UTC revision 528 by siliconforks, Thu Apr 1 22:06:01 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  export PATH=.:..:$PATH
24    
# 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    mkdir EXPECTED
34    cd javascript.expected
35    for i in *.js
36    do
37      echo '/* automatically generated by JSCoverage - do not edit */' >> ../EXPECTED/$i
38      cat ../../header.js >> ../EXPECTED/$i
39      cat $i >> ../EXPECTED/$i
40    done
41    cd ..
42  case "$character_encoding_support" in  case "$character_encoding_support" in
43    yes)    yes)
44      $VALGRIND jscoverage --js-version 180 --encoding ISO-8859-1 javascript DIR      $VALGRIND jscoverage --js-version 180 --encoding ISO-8859-1 javascript ACTUAL
45      ;;      ;;
46    *)    *)
47      $VALGRIND jscoverage --js-version=180 --exclude=javascript-iso-8859-1.js javascript DIR      $VALGRIND jscoverage --js-version=180 --exclude=javascript-iso-8859-1.js javascript ACTUAL
48      ;;      ;;
49  esac  esac
50  for i in javascript/*.js  for i in javascript/*.js
# Line 45  Line 54 
54      continue      continue
55    fi    fi
56    FILE=${i##javascript/}    FILE=${i##javascript/}
57    EXPECTED=javascript.expected/${FILE}    EXPECTED=EXPECTED/${FILE}
58    ACTUAL=DIR/${FILE}    ACTUAL=ACTUAL/${FILE}
59    diff -u -r --strip-trailing-cr $EXPECTED $ACTUAL    diff -u -r --strip-trailing-cr $EXPECTED $ACTUAL
60  done  done
61    
62  # rm -fr DIR  rm -fr EXPECTED ACTUAL

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

  ViewVC Help
Powered by ViewVC 1.1.24