mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
11 years ago
1 changed files with 16 additions and 2 deletions
@ -1,8 +1,22 @@ |
|||
#!/bin/sh |
|||
|
|||
if [ "$1" = "valgrind" ]; then |
|||
VALGRIND=1 |
|||
CMD=$2 |
|||
TEST=$3 |
|||
else |
|||
VALGRIND=0 |
|||
CMD=$1 |
|||
TEST=$2 |
|||
fi |
|||
|
|||
cat underscore-test-shim.js \ |
|||
underscore/underscore.js \ |
|||
$2 \ |
|||
$TEST \ |
|||
> /tmp/duk-underscore-test.js |
|||
|
|||
$1 /tmp/duk-underscore-test.js |
|||
if [ x"$VALGRIND" = "x1" ]; then |
|||
valgrind $CMD /tmp/duk-underscore-test.js |
|||
else |
|||
$CMD /tmp/duk-underscore-test.js |
|||
fi |
|||
|
Loading…
Reference in new issue