2023-03-13 21:56:13 +01:00

20 lines
425 B
Bash
Executable File

#!/bin/bash
# run our test suite, but on the installed package
set -e
# 1) simple php syntax check
for PHP in /usr/share/davical/htdocs/*.php /usr/share/davical/inc/*.php
do
php -l ${PHP} >> $AUTOPKGTEST_TMP/test-syntax
done
if grep -v 'No syntax errors detected' $AUTOPKGTEST_TMP/test-syntax
then
cat $AUTOPKGTEST_TMP/test-syntax
exit 1
else
echo "OK (Syntax checked)";
fi
rm $AUTOPKGTEST_TMP/test-syntax