-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparserTest.sh
More file actions
executable file
·42 lines (34 loc) · 888 Bytes
/
Copy pathparserTest.sh
File metadata and controls
executable file
·42 lines (34 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# Parser test
echo "Parser tests"
echo "####################################################"
testdir="testlatte"
good="$testdir/good"
arrays="$testdir/extensions/arrays1"
struct="$testdir/extensions/struct"
objects1="$testdir/extensions/objects1"
objects2="$testdir/extensions/objects2"
all_succeded="All tests succeded!"
function test {
echo "Tests from $1 directory, with using TestLatte from $2 directory"
succeded="All test from $1 succeded!"
for test in $(ls $1 | grep lat)
do
output=$($2/TestLatte $1/$test | grep "Parse Successful\!")
if [ -z "$output" ]; then
echo "Test $test failed"
succeded=""
all_succeded=""
else
echo "Test $test succeded"
fi
done
echo $succeded
echo "####################################################"
}
test $good $2
test $arrays $2
# test $struct
# test $objects1
# test $objects2
# echo $all_succeded