Add "test" command to setup.py

"python setup.py test" will now run the complete test suite. Remove the
previous ./test command.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth
2012-01-18 22:41:05 +01:00
parent 1f91d0fd06
commit bf1f79c571
4 changed files with 29 additions and 20 deletions

View File

@ -17,11 +17,7 @@ import random
import unittest
import logging
import os, sys
# Insert ".." into the python search path to get OLItest
cmd_folder = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if cmd_folder not in sys.path:
sys.path.insert(0, cmd_folder)
from OLItest import OLITestLib
from test.OLItest import OLITestLib
def setUpModule():
logging.info("Set Up test module %s" % __name__)