blob: 0321b264c730f56e54ab8ad678565c8a165ff671 [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 Hofmeyr3531a192017-03-28 14:30:28 +020031--- (want='bts'): DBG: Looking for 1 x bts , candidates: 3
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020032--- (want='bts'): DBG: Picked - _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9
33 addr: 10.42.42.114
34 band: GSM-1800
35 ipa_unit_id: '1'
36 label: sysmoBTS 1002
37 type: sysmo
38--- (want='modem'): DBG: Looking for 2 x modem , candidates: 16
39--- (want='modem'): DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
40 imsi: '901700000007801'
41 ki: D620F48487B1B782DA55DF6717F08FF9
42 label: m7801
43 path: /wavecom_0
44- _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254
45 imsi: '901700000007802'
46 ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3
47 label: m7802
48 path: /wavecom_1
49--- (want='nitb_iface'): DBG: Looking for 1 x nitb_iface , candidates: 3
50--- (want='nitb_iface'): DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
51 addr: 10.42.42.1
Neels Hofmeyr3531a192017-03-28 14:30:28 +020052tst hello_world.py: START [test_suitehello_world.py]
53tst hello_world.py:3: hello world [test_suitehello_world.py:3]
54tst hello_world.py:4: I am 'test_suite' / 'hello_world.py:4' [test_suitehello_world.py:4]
55tst hello_world.py:5: one [test_suitehello_world.py:5]
56tst hello_world.py:5: two [test_suitehello_world.py:5]
57tst hello_world.py:5: three [test_suitehello_world.py:5]
58tst hello_world.py: PASS [test_suitehello_world.py]
59pass: all 1 tests passed.
60
61- a test with an error
Neels Hofmeyr2694a9d2017-04-27 19:48:09 +020062tst test_suite: Suite run start [suite.py:191]
Neels Hofmeyr3531a192017-03-28 14:30:28 +020063tst test_error.py: START [test_suitetest_error.py] [suite.py:96]
64tst test_error.py:3: I am 'test_suite' / 'test_error.py:3' [test_suitetest_error.py:3] [test_error.py:3]
65tst test_error.py:5: FAIL [test_suitetest_error.py:5] [suite.py:108]
66tst test_error.py:5: ERR: AssertionError: [test_suitetest_error.py:5] [test_error.py:5: assert False]
67FAIL: 1 of 1 tests failed:
68 test_error.py
69
70- graceful exit.