root / snf-tools / synnefo_tools / burnin / test.py @ 4c52d5bf
History | View | Annotate | Download (565 Bytes)
1 |
"""Test"""
|
---|---|
2 |
import unittest |
3 |
|
4 |
import common |
5 |
from astakos_tests import AstakosTestCase, AstakosFoo |
6 |
|
7 |
|
8 |
# --------------------------------------
|
9 |
# Define our TESTSUITE
|
10 |
TESTSUITE = [AstakosTestCase, AstakosFoo] |
11 |
|
12 |
|
13 |
def test(): |
14 |
"""Test"""
|
15 |
common.setup_logger("./", verbose=2) |
16 |
|
17 |
for tcase in TESTSUITE: |
18 |
tsuite = unittest.TestLoader().loadTestsFromTestCase(tcase) |
19 |
results = tsuite.run(common.BurninTestResult()) |
20 |
common.was_succesful(tcase.__name__, |
21 |
results.wasSuccessful()) |
22 |
|
23 |
if __name__ == "__main__": |
24 |
test() |