1#!/usr/bin/env python2.7
2'''
3The main source for testlib. Ties together the default test runners and
4loaders.
5
6Discovers and runs all tests from a given root directory.
7'''
8from __future__ import print_function
9
10import sys
11import os
12
13base_dir = os.path.dirname(os.path.abspath(__file__))
14ext_path = os.path.join(base_dir, os.pardir, 'ext')
15
16sys.path.insert(0, base_dir)
17sys.path.insert(0, ext_path)
18
19import testlib.main as testlib
20import testlib.config as config
21import testlib.helper as helper
22
23config.basedir = helper.absdirpath(__file__)
24sys.exit(testlib())
25