mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 23:43:43 +00:00
I finally got tired of the tedium of adding files explicitly to the script. (imported from commit 4c573fe4752c32a452e592fad687dd5145a173c8)
16 lines
515 B
Bash
Executable File
16 lines
515 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
cd "$(dirname "$0")"/../zerver/tests/frontend/node
|
|
|
|
STATIC_DIR=`python -c 'import os;print os.path.realpath("../../../../static")'`
|
|
|
|
export NODE_PATH=$STATIC_DIR
|
|
|
|
NODEJS=$(which nodejs || which node)
|
|
|
|
# Run all the JS scripts in our test directory. The node command only runs one
|
|
# script at a time, hence the use of xargs. The order that the scripts run in now
|
|
# is fairly arbitrary, as they run isolated from each other, and none of them are
|
|
# particularly slow.
|
|
ls -1 *.js | xargs -L 1 $NODEJS
|