view test/runtests.sh @ 331:a78b41ff6ad2

Added better recipe files
author Windel Bouwman
date Fri, 07 Feb 2014 12:39:59 +0100
parents b145f8e6050b
children 11c5a8a70c02
line wrap: on
line source

#!/usr/bin/env bash

export PYTHONPATH=$PYTHONPATH:`pwd`/../python

if [ "$1" == "loop" ]
then
  DIR=..
  while :; do
    python -m unittest
    cd gui
    #python -m unittest -v
    cd ..
    echo "Awaiting changes in $DIR"
    inotifywait -r -e modify $DIR
  done
else
  set -e
  python -m unittest
fi