pyeclib/.unittests
Tushar Gohad e611b03b52 Add .unittests script to standardize nosetests invocation
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
2015-02-24 23:08:45 -07:00

11 lines
293 B
Bash
Executable File

#!/bin/bash
TOP_DIR=$(python -c "import os; print os.path.dirname(os.path.realpath('$0'))")
python -c 'from distutils.version import LooseVersion as Ver; import nose, sys; sys.exit(0 if Ver(nose.__version__) >= Ver("1.2.0") else 1)'
cd $TOP_DIR/test
nosetests $@
rvalue=$?
cd -
exit $rvalue