Permalink
Please sign in to comment.
Showing
with
3,137 additions
and 8 deletions.
- +3,056 −0 run-xdebug-tests.php
- +43 −0 test-all.sh
- +23 −0 test-thread.sh
- +1 −1 tests/bug00002.phpt
- +1 −1 tests/bug00003.phpt
- +3 −1 tests/bug00702-1.phpt
- +3 −1 tests/bug00702-2.phpt
- +3 −1 tests/bug01502.phpt
- +2 −2 tests/trace_with_naked_filename.phpt
- +1 −1 xdebug_code_coverage.c
- +1 −0 xdebug_stack.c
@@ -0,0 +1,43 @@ | |||
#!/bin/bash | |||
|
|||
PATTERN=${1:-'7.3*'} | |||
|
|||
PHP_DIR=${PHP_DIR:-/usr/local/php} | |||
SYSTEM_CORES=`nproc` | |||
NPROC=${NPROC:-$SYSTEM_CORES} | |||
|
|||
PHPS=`ls -vd ${PHP_DIR}/${PATTERN}` | |||
|
|||
mkdir -p /tmp/ptester | |||
rm -rf /tmp/ptester/group*.lst | |||
mkdir -p /tmp/ptester/logs | |||
rm -rf /tmp/ptester/logs/* | |||
mkdir -p /tmp/ptester/junit | |||
rm -rf /tmp/ptester/junit/* | |||
|
|||
c=0 | |||
for i in $PHPS; do | |||
v=`echo $i | sed 's@.*/@@'` | |||
|
|||
GroupName=`printf group%03d.lst $c` | |||
|
|||
echo -n "$v " >> /tmp/ptester/${GroupName} | |||
|
|||
c=`expr $c + 1` | |||
if [[ $c -eq $NPROC ]]; then | |||
c=0 | |||
fi | |||
done | |||
|
|||
MAX=`expr $NPROC - 1` | |||
for i in `seq 0 $MAX`; do | |||
GroupName=`printf group%03d.lst $i` | |||
|
|||
if [ -s /tmp/ptester/$GroupName ]; then | |||
./test-thread.sh $i `cat /tmp/ptester/$GroupName` & | |||
fi | |||
done | |||
|
|||
wait | |||
|
|||
echo "DONE" |
@@ -0,0 +1,23 @@ | |||
#!/bin/bash | |||
|
|||
TID="$1" | |||
shift | |||
|
|||
rm -rf /tmp/ptester/thread/${TID} | |||
mkdir -p /tmp/ptester/thread/${TID} | |||
CWD=`pwd` | |||
|
|||
cp run-xdebug-tests.php /tmp/ptester/thread/${TID} | |||
|
|||
cd /tmp/ptester/thread/${TID} | |||
|
|||
for i in $@; do | |||
echo $TID $BASHPID "Testing for $i" | |||
PATH=/usr/local/php/$i/bin:$PATH | |||
|
|||
mkdir -p /tmp/ptester/thread/${TID}/$i | |||
cp -r ${CWD}/contrib /tmp/ptester/thread/${TID}/$i | |||
cp -r ${CWD}/tests /tmp/ptester/thread/${TID}/$i | |||
|
|||
SKIP_DBGP_TESTS=1 SKIP_UNPARALLEL_TESTS=1 TEST_PHP_EXECUTABLE=`which php` TEST_PHP_JUNIT="/tmp/ptester/junit/$i.xml" php run-xdebug-tests.php /tmp/ptester/thread/${TID}/${i}/tests >/tmp/ptester/logs/$i.log 2>&1 | |||
done |
0 comments on commit
606f0d9