File: syntax

package info (click to toggle)
awl 0.64-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 884 kB
  • sloc: php: 6,291; sql: 109; sh: 70; makefile: 55
file content (20 lines) | stat: -rwxr-xr-x 390 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# run our test suite, but on the installed package

set -e

# 1) simple php syntax check
for PHP in /usr/share/awl/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