Add .unittests script to standardize nosetests invocation

Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
This commit is contained in:
Tushar Gohad 2015-02-24 23:08:45 -07:00
parent ff1d34fdff
commit e611b03b52

10
.unittests Executable file
View File

@ -0,0 +1,10 @@
#!/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