File tree Expand file tree Collapse file tree 2 files changed +13
-19
lines changed Expand file tree Collapse file tree 2 files changed +13
-19
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ LUA_FILTERS_TEST_IMAGE = tarleb/lua-filters-test
5
5
.PHONY : test show-args docker-test docker-test-image archive
6
6
7
7
test :
8
- bash runtests.sh $(FILTERS )
8
+ sh runtests.sh $(FILTERS )
9
9
10
10
archive : .build/lua-filters.tar.gz
11
11
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /bin/sh
2
2
# argument is list of filters
3
-
4
3
FILTERS=$*
5
4
6
- ERRORS_COUNT=0
7
- PASSED_COUNT=0
8
- SKIPPED_COUNT=0
9
- EXPECTED_COUNT=0
10
-
11
- let err=0
5
+ errors_count=0
6
+ passed_count=0
12
7
13
8
for d in $FILTERS ; do
14
- let " EXPECTED_COUNT++"
15
9
make --no-print-directory -C $d test
16
10
if [ $? -eq 0 ]; then
17
- let " PASSED_COUNT++ "
18
- echo " ✓ $d "
11
+ passed_count= $(( $passed_count + 1 ))
12
+ printf " ✓ $d \n "
19
13
else
20
- let " ERRORS_COUNT++ "
21
- echo " ✗ $d "
14
+ errors_count= $(( $errors_count + 1 ))
15
+ printf " ✗ $d \n "
22
16
fi
23
17
done
24
18
25
- echo " "
26
- echo " ⚖ Summary"
27
- echo " ✓ ${PASSED_COUNT } passed"
28
- [ ${ERRORS_COUNT } = 0 ] || echo " ✗ ${ERRORS_COUNT } errors"
29
- exit ${ERRORS_COUNT }
19
+ printf " \n "
20
+ printf " ⚖ Summary\n "
21
+ printf " ✓ ${passed_count } passed\n "
22
+ [ ${errors_count } = 0 ] || printf " ✗ ${errors_count } errors\n "
23
+ exit ${errors_count }
You can’t perform that action at this time.
0 commit comments