#!/bin/sh

PYTHON="/usr/bin/python"
INSTANCE_HOME="/home/sean/Jobs/AWMC/Pleiades/plone-sites/pleiades-dev/instance"
SOFTWARE_HOME="/home/sean/Jobs/AWMC/Pleiades/plone-sites/pleiades-dev/Zope-2.9.4/lib/python"
PYTHONPATH="$SOFTWARE_HOME"
PRODUCTPATH="$SOFTWARE_HOME/Products/PleiadesGeocoder"
export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME

echo "running coverage tests ..."
$PYTHON coverage.py -e
$PYTHON coverage.py -x runalltests.py

echo ""
echo "main coverage:"
$PYTHON coverage.py -rm $PRODUCTPATH/*.py

echo ""
echo "content coverage:"
$PYTHON coverage.py -rm $PRODUCTPATH/content/*.py

echo ""
echo "extensions coverage:"
$PYTHON coverage.py -rm $PRODUCTPATH/Extensions/*.py

echo ""
echo "browser coverage:"
$PYTHON coverage.py -rm $PRODUCTPATH/browser/*.py

