#!/bin/sh

set -e

pear_pkg=`ls | grep XML_Parser`

ln -s ${pear_pkg} XML
PKG_ROOT=`pwd`
cd ${pear_pkg}
cd tests

phpunit -d include_path=".:/usr/share/php:${PKG_ROOT}" AllTests.php
cd ../..
rm XML
