15 lines
337 B
Python
15 lines
337 B
Python
import sys
|
|
|
|
sys.path.insert(0, 'src')
|
|
sys.path.insert(2, 'libs/common')
|
|
if sys.implementation.name == 'circuitpython':
|
|
sys.path.insert(3, 'libs/circuitpython')
|
|
sys.path.insert(4, 'libs/micropython')
|
|
else:
|
|
sys.path.insert(3, 'libs/micropython')
|
|
|
|
import unittest
|
|
|
|
if not unittest.main('tests').wasSuccessful():
|
|
sys.exit(1)
|