put all the test code into tests directory

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
Dennis Gilmore 2016-04-07 17:16:20 -05:00
commit 864ba36376
3 changed files with 10 additions and 2 deletions

View file

@ -12,5 +12,6 @@ setup(
packages = find_packages(),
package_data = {'': ['README.md', 'LICENSE']},
data_files = [('/etc', ['etc/multilib.conf'])],
scripts = ['multilib/multilib_test_data']
scripts = ['multilib/multilib_test_data'],
test_suite = "tests",
)

View file

@ -4,8 +4,11 @@ from glob import glob
import logging
from optparse import OptionParser
import os
import sys
import yum.packages
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
try:
# RHEL 6 and earlier
import simplejson as json

View file

@ -1,5 +1,10 @@
#!/usr/bin/python -tt
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
try:
# RHEL 6 and earlier
import simplejson as json
@ -12,7 +17,6 @@ from ConfigParser import ConfigParser
import fakepo
from fnmatch import fnmatch
import multilib
import os
# if you want to test the testing with the original mash code
#import mash.multilib as multilib