forked from RafaelGSS/bench-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·18 lines (14 loc) · 793 Bytes
/
Copy pathrun.sh
File metadata and controls
executable file
·18 lines (14 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# clean previous logs
rm -f ./**/*.log
for filename in ./**/*.*js; do
echo "[1] Running $filename"
node --allow-natives-syntax "./$filename" | sed "s,\x1B\[[0-9;]*m,,g" >>"$filename.log"
echo -e "----------------------------------------------------------------------------" >>"$filename.log"
echo "[2] Running $filename"
node --allow-natives-syntax "./$filename" | sed "s,\x1B\[[0-9;]*m,,g" >>"$filename.log"
echo -e "----------------------------------------------------------------------------" >>"$filename.log"
echo "[3] Running $filename"
node --allow-natives-syntax "./$filename" | sed "s,\x1B\[[0-9;]*m,,g" >>"$filename.log"
echo -e "----------------------------------------------------------------------------" >>"$filename.log"
done