blob: 28084744e3fe549b60c6fc0955ed1da59574ed8f [file] [log] [blame]
Neels Hofmeyr3531a192017-03-28 14:30:28 +02001- non-existing suite dir
Neels Hofmeyref9ed2d2017-05-04 16:39:29 +02002cnf -: DBG: Found config file paths.conf as [PATH]/selftest/suite_test/paths.conf in ./suite_test which is [PATH]/selftest/suite_test
3cnf -: DBG: [PATH]/selftest/suite_test/paths.conf: relative path ./test_work/state_dir is [PATH]/selftest/suite_test/test_work/state_dir
4cnf -: DBG: [PATH]/selftest/suite_test/paths.conf: relative path . is [PATH]/selftest/suite_test
5cnf -: DBG: Found path suites_dir as [PATH]/selftest/suite_test
6--- -: ERR: RuntimeError: Suite not found: 'does_not_exist' in [PATH]/selftest/suite_test
Neels Hofmeyr3531a192017-03-28 14:30:28 +02007- no suite.conf
Neels Hofmeyref9ed2d2017-05-04 16:39:29 +02008cnf -: DBG: Found path suites_dir as [PATH]/selftest/suite_test
Neels Hofmeyr31e83202017-06-06 19:44:32 +02009cnf empty_dir: DBG: reading suite.conf
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +020010cnf [PATH]/selftest/suite_test/empty_dir/suite.conf: ERR: FileNotFoundError: [Errno 2] No such file or directory: '[PATH]/selftest/suite_test/empty_dir/suite.conf' [empty_dir↪[PATH]/selftest/suite_test/empty_dir/suite.conf]
Neels Hofmeyr3531a192017-03-28 14:30:28 +020011- valid suite dir
Neels Hofmeyref9ed2d2017-05-04 16:39:29 +020012cnf -: DBG: Found path suites_dir as [PATH]/selftest/suite_test
Neels Hofmeyr31e83202017-06-06 19:44:32 +020013cnf test_suite: DBG: reading suite.conf
Neels Hofmeyr3531a192017-03-28 14:30:28 +020014defaults:
15 timeout: 60s
16resources:
17 bts:
18 - times: '1'
Neels Hofmeyr76d81032017-05-18 18:35:32 +020019 ip_address:
20 - times: '1'
Neels Hofmeyr3531a192017-03-28 14:30:28 +020021 modem:
22 - times: '2'
Neels Hofmeyr3531a192017-03-28 14:30:28 +020023
24- run hello world test
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +020025cnf ResourcesPool: DBG: Found config file resources.conf as [PATH]/selftest/suite_test/resources.conf in ./suite_test which is [PATH]/selftest/suite_test
26cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir
Neels Hofmeyr6ccda112017-06-06 19:41:17 +020027
28---------------------------------------------------------------------
29trial test_suite
30---------------------------------------------------------------------
Neels Hofmeyr7e2e8f12017-05-14 03:37:13 +020031tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ...
Neels Hofmeyr31e83202017-06-06 19:44:32 +020032tst test_suite: DBG: {combining='resources'}
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +020033tst {combining_scenarios='resources'}: DBG: {definition_conf={bts=[{'times': '1'}], ip_address=[{'times': '1'}], modem=[{'times': '2'}]}} [test_suite↪{combining_scenarios='resources'}]
Neels Hofmeyr31e83202017-06-06 19:44:32 +020034tst test_suite: Reserving 1 x bts (candidates: 3)
Neels Hofmeyrcccbe592017-05-07 01:16:07 +020035tst test_suite: DBG: Picked - _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020036 addr: 10.42.42.114
37 band: GSM-1800
38 ipa_unit_id: '1'
39 label: sysmoBTS 1002
40 type: sysmo
Neels Hofmeyr31e83202017-06-06 19:44:32 +020041tst test_suite: Reserving 1 x ip_address (candidates: 3)
Neels Hofmeyr76d81032017-05-18 18:35:32 +020042tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
43 addr: 10.42.42.1
Neels Hofmeyr31e83202017-06-06 19:44:32 +020044tst test_suite: Reserving 2 x modem (candidates: 16)
Neels Hofmeyrcccbe592017-05-07 01:16:07 +020045tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020046 imsi: '901700000007801'
47 ki: D620F48487B1B782DA55DF6717F08FF9
48 label: m7801
49 path: /wavecom_0
50- _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254
51 imsi: '901700000007802'
52 ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3
53 label: m7802
54 path: /wavecom_1
Neels Hofmeyr6ccda112017-06-06 19:41:17 +020055
56----------------------------------------------
57trial test_suite hello_world.py
58----------------------------------------------
Neels Hofmeyrd1bedb12017-05-07 03:02:23 +020059tst hello_world.py:[LINENR]: hello world [test_suitehello_world.py:[LINENR]]
60tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suitehello_world.py:[LINENR]]
61tst hello_world.py:[LINENR]: one [test_suitehello_world.py:[LINENR]]
62tst hello_world.py:[LINENR]: two [test_suitehello_world.py:[LINENR]]
63tst hello_world.py:[LINENR]: three [test_suitehello_world.py:[LINENR]]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +020064tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suitehello_world.py]
65---------------------------------------------------------------------
66trial test_suite PASS
67---------------------------------------------------------------------
68PASS: test_suite (pass: 1, skip: 5)
69 pass: hello_world.py (N.N sec)
70 skip: mo_mt_sms.py
71 skip: mo_sms.py
72 skip: test_error.py
73 skip: test_fail.py
74 skip: test_fail_raise.py
Neels Hofmeyr3531a192017-03-28 14:30:28 +020075
76- a test with an error
Neels Hofmeyr6ccda112017-06-06 19:41:17 +020077
78---------------------------------------------------------------------
79trial test_suite
80---------------------------------------------------------------------
81
82----------------------------------------------
83trial test_suite test_error.py
84----------------------------------------------
Neels Hofmeyrd1bedb12017-05-07 03:02:23 +020085tst test_error.py:[LINENR]: I am 'test_suite' / 'test_error.py:[LINENR]' [test_suitetest_error.py:[LINENR]] [test_error.py:[LINENR]]
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +020086tst test_error.py:[LINENR]: ERR: AssertionError: test_error.py:[LINENR]: assert False [test_suitetest_error.py:[LINENR]] [test_error.py:[LINENR]: assert False]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +020087tst test_error.py:[LINENR]: Test FAILED (N.N sec) [test_suitetest_error.py:[LINENR]] [suite.py:[LINENR]]
88---------------------------------------------------------------------
89trial test_suite FAIL
90---------------------------------------------------------------------
91FAIL: test_suite (fail: 1, skip: 5)
92 skip: hello_world.py (N.N sec)
93 skip: mo_mt_sms.py
94 skip: mo_sms.py
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +020095 FAIL: test_error.py (N.N sec) AssertionError: test_error.py:[LINENR]: assert False
Neels Hofmeyr6ccda112017-06-06 19:41:17 +020096 skip: test_fail.py
97 skip: test_fail_raise.py
Pau Espin Pedrol0ffb4142017-05-15 18:24:35 +020098
99- a test with a failure
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200100
101---------------------------------------------------------------------
102trial test_suite
103---------------------------------------------------------------------
104
105----------------------------------------------
106trial test_suite test_fail.py
107----------------------------------------------
Pau Espin Pedrol0ffb4142017-05-15 18:24:35 +0200108tst test_fail.py:[LINENR]: I am 'test_suite' / 'test_fail.py:[LINENR]' [test_suitetest_fail.py:[LINENR]] [test_fail.py:[LINENR]]
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +0200109tst test_fail.py:[LINENR]: ERR: EpicFail: This failure is expected [test_suitetest_fail.py:[LINENR]] [test_fail.py:[LINENR]]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200110tst test_fail.py:[LINENR]: Test FAILED (N.N sec) [test_suitetest_fail.py:[LINENR]] [suite.py:[LINENR]]
111---------------------------------------------------------------------
112trial test_suite FAIL
113---------------------------------------------------------------------
114FAIL: test_suite (fail: 1, skip: 5)
115 skip: hello_world.py (N.N sec)
116 skip: mo_mt_sms.py
117 skip: mo_sms.py
118 skip: test_error.py (N.N sec)
119 FAIL: test_fail.py (N.N sec) EpicFail: This failure is expected
120 skip: test_fail_raise.py
Pau Espin Pedrol0ffb4142017-05-15 18:24:35 +0200121
122- a test with a raised failure
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200123
124---------------------------------------------------------------------
125trial test_suite
126---------------------------------------------------------------------
127
128----------------------------------------------
129trial test_suite test_fail_raise.py
130----------------------------------------------
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +0200131tst test_fail_raise.py:[LINENR]: ERR: ExpectedFail: This failure is expected [test_suitetest_fail_raise.py:[LINENR]] [test_fail_raise.py:[LINENR]: raise ExpectedFail('This failure is expected')]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200132tst test_fail_raise.py:[LINENR]: Test FAILED (N.N sec) [test_suitetest_fail_raise.py:[LINENR]] [suite.py:[LINENR]]
133---------------------------------------------------------------------
134trial test_suite FAIL
135---------------------------------------------------------------------
136FAIL: test_suite (fail: 1, skip: 5)
137 skip: hello_world.py (N.N sec)
138 skip: mo_mt_sms.py
139 skip: mo_sms.py
140 skip: test_error.py (N.N sec)
141 skip: test_fail.py (N.N sec)
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +0200142 FAIL: test_fail_raise.py (N.N sec) ExpectedFail: This failure is expected
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200143
144- graceful exit.