-
Notifications
You must be signed in to change notification settings - Fork 15
/
test_micropython.py
53 lines (45 loc) · 1.63 KB
/
test_micropython.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright 2015-2020, Vincenzo Arcidiacono;
# Licensed under the EUPL (the 'Licence');
# You may not use this work except in compliance with the Licence.
# You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl
import unittest
# noinspection PyTypeChecker
def _make_suite():
from .utils.test_dsp import (
TestDispatcherUtils, TestSubDispatcher, TestSubDispatchFunction,
TestSubDispatchPipe, TestDispatchPipe
)
from .utils.test_alg import TestDispatcherGetSubNode
from .utils.test_gen import TestUtils
from .test_dispatcher import (
TestDispatch, TestPerformance, TestBoundaryDispatch, TestNodeOutput,
TestShrinkDispatcher, TestPipe, TestSubDMap, TestCreateDispatcher
)
suite = unittest.TestSuite()
suite.addTest(TestCreateDispatcher)
suite.addTest(TestUtils)
suite.addTest(TestDispatcherGetSubNode)
suite.addTest(TestSubDMap)
suite.addTest(TestPipe)
suite.addTest(TestShrinkDispatcher)
suite.addTest(TestNodeOutput)
suite.addTest(TestBoundaryDispatch)
suite.addTest(TestPerformance)
suite.addTest(TestDispatcherUtils)
suite.addTest(TestDispatch)
suite.addTest(TestSubDispatcher)
suite.addTest(TestSubDispatchFunction)
suite.addTest(TestSubDispatchPipe)
suite.addTest(TestDispatchPipe)
return suite
if __name__ == '__main__':
import os
import sys
os.environ['EXTRAS'] = os.environ.get('EXTRAS', 'micropython')
runner = unittest.TestRunner()
result = runner.run(_make_suite())
# noinspection PyUnresolvedReferences
sys.exit(result.failuresNum > 0)