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 |
$VALGRIND jscoverage --no-highlight --exclude=.svn --exclude=1/.svn --exclude=1/2/.svn recursive.expected DIR > OUT 2> ERR && exit 1 |
rm -fr DIR DIR2 OUT ERR |
26 |
|
|
27 |
|
mkdir DIR |
28 |
|
cp recursive.expected/image.png DIR |
29 |
|
cp recursive.expected/index.html DIR |
30 |
|
cp recursive.expected/script.js DIR |
31 |
|
cp recursive.expected/style.css DIR |
32 |
|
cp recursive.expected/unix.txt DIR |
33 |
|
cp recursive.expected/windows.txt DIR |
34 |
|
cp recursive.expected/x DIR |
35 |
|
$VALGRIND jscoverage --no-highlight DIR DIR2 > OUT 2> ERR && exit 1 |
36 |
test ! -s OUT |
test ! -s OUT |
37 |
test -s ERR |
test -s ERR |
38 |
diff --strip-trailing-cr instrumented-source-directory.expected.err ERR |
diff --strip-trailing-cr instrumented-source-directory.expected.err ERR |
39 |
|
|
40 |
rm -fr DIR OUT ERR |
rm -fr DIR DIR2 OUT ERR |