mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-28 00:43:37 +00:00
20 lines
425 B
Bash
Executable File
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
|