view test/runtests.sh @ 372:68841f9ab96c

Added yet another test snippet
author Windel Bouwman
date Fri, 21 Mar 2014 12:33:30 +0100
parents 11c5a8a70c02
children
line wrap: on
line source

#!/usr/bin/env bash

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

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