Excluding Python scripts from shell script tests in top-level Makefile.
This commit is contained in:
parent
4a41852f82
commit
caff6e6f1a
14
Makefile
14
Makefile
|
@ -13,8 +13,11 @@ test:
|
||||||
|
|
||||||
@for SCRIPT in $(SCRIPTS); \
|
@for SCRIPT in $(SCRIPTS); \
|
||||||
do \
|
do \
|
||||||
sh -n $${SCRIPT}; \
|
if ! head -n1 $${SCRIPT} | grep -qs python; \
|
||||||
echo -n "."; \
|
then \
|
||||||
|
sh -n $${SCRIPT}; \
|
||||||
|
echo -n "."; \
|
||||||
|
fi; \
|
||||||
done
|
done
|
||||||
|
|
||||||
@echo " done."
|
@echo " done."
|
||||||
|
@ -25,8 +28,11 @@ test:
|
||||||
then \
|
then \
|
||||||
for SCRIPT in $(SCRIPTS); \
|
for SCRIPT in $(SCRIPTS); \
|
||||||
do \
|
do \
|
||||||
checkbashisms -f -x $${SCRIPT}; \
|
if ! head -n1 $${SCRIPT} | grep -qs python; \
|
||||||
echo -n "."; \
|
then \
|
||||||
|
checkbashisms -f -x $${SCRIPT}; \
|
||||||
|
echo -n "."; \
|
||||||
|
fi; \
|
||||||
done; \
|
done; \
|
||||||
else \
|
else \
|
||||||
echo "WARNING: skipping bashism test - you need to install devscripts."; \
|
echo "WARNING: skipping bashism test - you need to install devscripts."; \
|
||||||
|
|
Loading…
Reference in New Issue