#!/bin/sh
if which nosetests-3.6 1>/dev/null 2>&1; then
	testexec="nosetests-3.6"
else
	testexec="nosetests"
fi

case `pwd` in
	*/test/unittests)
		PYTHONPATH=../.. $testexec -v -w . "$@"
		;;
	*/test)
		PYTHONPATH=.. $testexec -v -w unittests "$@"
		;;
	*)
		PYTHONPATH=. $testexec -v -w test/unittests "$@"
		;;
esac

