We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eba4f9e commit 6d1e59dCopy full SHA for 6d1e59d
test.sh
@@ -9,10 +9,22 @@ if [ ! -f $BINARY ]; then
9
fi
10
11
SAMPLE_DIR=./samples
12
+SUCCESS=0
13
+ERROR=0
14
for SRC in "$SAMPLE_DIR"/*.js
15
do
- if [ -f $SRC ]; then
16
+ if [ -f $SRC ]
17
+ then
18
echo -e "\nTest $SRC"
19
$BINARY $SRC
20
+
21
+ if [ $? = 0 ]
22
23
+ ((SUCCESS++))
24
+ else
25
+ ((ERROR++))
26
+ fi
27
-done
28
+done
29
30
+echo "Result: $SUCCESS success, $ERROR error"
0 commit comments