初始化PHP-Xlswrite扩展
This commit is contained in:
24
travis/run-test.sh
Executable file
24
travis/run-test.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
TEST_DIR="`pwd`/tests/"
|
||||
|
||||
make test
|
||||
|
||||
for file in `find $TEST_DIR -name "*.diff" 2>/dev/null`
|
||||
do
|
||||
grep "\-\-XFAIL--" ${file/%diff/phpt} >/dev/null 2>&1
|
||||
if [ $? -gt 0 ]
|
||||
then
|
||||
FAILS[${#FAILS[@]}]="$file"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ${#FAILS[@]} -gt 0 ]
|
||||
then
|
||||
for fail in "${FAILS[@]}"
|
||||
do
|
||||
sh -xc "cat $fail"
|
||||
done
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
Reference in New Issue
Block a user