6425b30719b898772f7baa9ec443c64e1e62ad38
[sip-router] / test / unit / Makefile
1 all:
2         -@for FILE in $(wildcard *.sh) ; do \
3                 if [ -f $$FILE ] ; then \
4                         if [ -x $$FILE ] ; then \
5                                 echo "run test `basename $$FILE .sh`:" `head "$$FILE" -n 2 | tail -n 1 | cut -c 3-` ; \
6                                 ./$$FILE ; \
7                                 ret=$$? ; \
8                                         if [ ! "$$ret" -eq 0 ] ; then \
9                                                 echo "failed" ; \
10                                         fi ; \
11                         fi ; \
12                 fi ; \
13         done ;