#!/bin/bash

if [ "$PYTHONPATH" != "" ]; then
    echo "Unset your PYTHONPATH before running this"
    exit 1
fi

/bin/rm -rf ./test
mkdir -p ./test/ipp ./test/bin
./deployment/deploy.py IppSiteTest.py

echo "\"\"\"Stupido\n\"\"\"" > ./test/__init__.py
cp ./test/__init__.py ./test/bin

export PYTHONPATH=`pwd`/test:$HOME/local/lib64/python2.5/site-packages
pylint -f html --rcfile=conf/pylintrc test > report.html
