2013-07-26 20:31:24 +02:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2013-07-29 23:03:31 +02:00
|
|
|
cd "$(dirname "$0")"/../zerver/tests/frontend/node
|
2013-07-27 00:03:46 +02:00
|
|
|
|
2013-08-01 17:53:10 +02:00
|
|
|
STATIC_DIR=`python -c 'import os;print os.path.realpath("../../../../static")'`
|
|
|
|
|
|
|
|
export NODE_PATH=$STATIC_DIR
|
|
|
|
|
2013-07-30 23:54:33 +02:00
|
|
|
NODEJS=$(which nodejs || which node)
|
2013-07-27 00:03:46 +02:00
|
|
|
|
2013-08-09 20:37:14 +02:00
|
|
|
# Run all the JS scripts in our test directory. The order that the scripts run in now
|
2013-08-09 20:05:48 +02:00
|
|
|
# is fairly arbitrary, as they run isolated from each other, and none of them are
|
|
|
|
# particularly slow.
|
2013-08-09 20:37:14 +02:00
|
|
|
for js_file in *.js
|
|
|
|
do
|
|
|
|
echo $js_file
|
|
|
|
$NODEJS $js_file
|
|
|
|
done
|