blob: bb04e491b762123c6ebacee33ae87cb0f2d3ae35 [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 Hofmeyr3531a192017-03-28 14:30:28 +02009cnf empty_dir: DBG: reading suite.conf [empty_dirempty_dir]
Neels Hofmeyref9ed2d2017-05-04 16:39:29 +020010--- [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 Hofmeyr3531a192017-03-28 14:30:28 +020013cnf test_suite: DBG: reading suite.conf [test_suitetest_suite]
14defaults:
15 timeout: 60s
16resources:
17 bts:
18 - times: '1'
19 modem:
20 - times: '2'
21 nitb_iface:
22 - times: '1'
23
24- run hello world test
Neels Hofmeyref9ed2d2017-05-04 16:39:29 +020025cnf -: DBG: Found config file resources.conf as [PATH]/selftest/suite_test/resources.conf in ./suite_test which is [PATH]/selftest/suite_test
26cnf -: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir
Neels Hofmeyr2694a9d2017-04-27 19:48:09 +020027tst test_suite: Suite run start
Neels Hofmeyr3531a192017-03-28 14:30:28 +020028tst test_suite: reserving resources...
Neels Hofmeyr2694a9d2017-04-27 19:48:09 +020029tst test_suite: DBG: {combining='resources'} [test_suitetest_suite]
30tst test_suite: DBG: {definition_conf={bts=[{'times': '1'}], modem=[{'times': '2'}], nitb_iface=[{'times': '1'}]}} [test_suite↪(combining_scenarios='resources')↪test_suite]
Neels Hofmeyrcccbe592017-05-07 01:16:07 +020031tst test_suite: Reserving 1 x bts (candidates: 3) [test_suitetest_suite]
32tst test_suite: DBG: Picked - _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020033 addr: 10.42.42.114
34 band: GSM-1800
35 ipa_unit_id: '1'
36 label: sysmoBTS 1002
37 type: sysmo
Neels Hofmeyrcccbe592017-05-07 01:16:07 +020038 [test_suitetest_suite]
39tst test_suite: Reserving 2 x modem (candidates: 16) [test_suitetest_suite]
40tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020041 imsi: '901700000007801'
42 ki: D620F48487B1B782DA55DF6717F08FF9
43 label: m7801
44 path: /wavecom_0
45- _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254
46 imsi: '901700000007802'
47 ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3
48 label: m7802
49 path: /wavecom_1
Neels Hofmeyrcccbe592017-05-07 01:16:07 +020050 [test_suitetest_suite]
51tst test_suite: Reserving 1 x nitb_iface (candidates: 3) [test_suitetest_suite]
52tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020053 addr: 10.42.42.1
Neels Hofmeyrcccbe592017-05-07 01:16:07 +020054 [test_suitetest_suite]
Neels Hofmeyrd1bedb12017-05-07 03:02:23 +020055tst hello_world.py:[LINENR] START [test_suitehello_world.py]
56tst hello_world.py:[LINENR]: hello world [test_suitehello_world.py:[LINENR]]
57tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suitehello_world.py:[LINENR]]
58tst hello_world.py:[LINENR]: one [test_suitehello_world.py:[LINENR]]
59tst hello_world.py:[LINENR]: two [test_suitehello_world.py:[LINENR]]
60tst hello_world.py:[LINENR]: three [test_suitehello_world.py:[LINENR]]
61tst hello_world.py:[LINENR] PASS [test_suitehello_world.py]
Neels Hofmeyr3531a192017-03-28 14:30:28 +020062pass: all 1 tests passed.
63
64- a test with an error
Neels Hofmeyrd1bedb12017-05-07 03:02:23 +020065tst test_suite: Suite run start [suite.py:[LINENR]]
66tst test_error.py:[LINENR] START [test_suitetest_error.py] [suite.py:[LINENR]]
67tst test_error.py:[LINENR]: I am 'test_suite' / 'test_error.py:[LINENR]' [test_suitetest_error.py:[LINENR]] [test_error.py:[LINENR]]
68tst test_error.py:[LINENR]: FAIL [test_suitetest_error.py:[LINENR]] [suite.py:[LINENR]]
69tst test_error.py:[LINENR]: ERR: AssertionError: [test_suitetest_error.py:[LINENR]] [test_error.py:[LINENR]: assert False]
Neels Hofmeyr3531a192017-03-28 14:30:28 +020070FAIL: 1 of 1 tests failed:
71 test_error.py
72
73- graceful exit.