view test/runtests.sh @ 305:0615b5308710

Updated docs
author Windel Bouwman
date Fri, 06 Dec 2013 13:50:38 +0100
parents 158068af716c
children b145f8e6050b
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