view test/runtests.sh @ 287:1c7c1e619be8

File movage
author Windel Bouwman
date Thu, 21 Nov 2013 11:57:27 +0100
parents d9df72971cbf
children 9417caea2eb3
line wrap: on
line source

#!/usr/bin/env bash

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

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