Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 31 lines (27 sloc) 0.441 kB
f1c2064 @dominictarr it's a JSON parser written in bash!
authored
1 #! /usr/bin/env bash
2
e028db5 @medgar123 Remove readlink -f from test scripts.
medgar123 authored
3 cd ${0%/*}
f1c2064 @dominictarr it's a JSON parser written in bash!
authored
4
5 #set -e
6 fail=0
7 tests=0
8 #all_tests=${__dirname:}
9 #echo PLAN ${#all_tests}
10 for test in test/*.sh ;
11 do
12 let tests=$tests+1
13 echo TEST: $test
14 bash $test
15 ret=$?
16 if [ $ret -eq 0 ] ; then
17 echo OK: ---- $test
18 let passed=$passed+1
19 else
20 echo FAIL: $test $fail
21 let fail=$fail+$ret
22 fi
23 done
24
25 if [ $fail -eq 0 ]; then
26 echo -n 'SUCCESS '
27 else
f6e5cd2 @medgar123 Tokenizer changes:
medgar123 authored
28 echo -n 'FAILURE '
f1c2064 @dominictarr it's a JSON parser written in bash!
authored
29 fi
30 echo $passed / $tests
Something went wrong with that request. Please try again.