blob: 2fad8b36064948b64fcf4cf0eb8bd5a32be0c052 [file] [log] [blame]
Neels Hofmeyr3531a192017-03-28 14:30:28 +02001- non-existing suite dir
Neels Hofmeyr17c139e2017-04-12 02:42:02 +02002--- -: ERR: RuntimeError: Suite not found: 'does_not_exist' in ./suite_test/.
Neels Hofmeyr3531a192017-03-28 14:30:28 +02003- no suite.conf
4cnf empty_dir: DBG: reading suite.conf [empty_dirempty_dir]
Neels Hofmeyr17c139e2017-04-12 02:42:02 +02005--- ./suite_test/./empty_dir/suite.conf: ERR: FileNotFoundError: [Errno 2] No such file or directory: './suite_test/./empty_dir/suite.conf' [empty_dir↪./suite_test/./empty_dir/suite.conf]
Neels Hofmeyr3531a192017-03-28 14:30:28 +02006- valid suite dir
7cnf test_suite: DBG: reading suite.conf [test_suitetest_suite]
8defaults:
9 timeout: 60s
10resources:
11 bts:
12 - times: '1'
13 modem:
14 - times: '2'
15 nitb_iface:
16 - times: '1'
17
18- run hello world test
Neels Hofmeyr2694a9d2017-04-27 19:48:09 +020019tst test_suite: Suite run start
Neels Hofmeyr3531a192017-03-28 14:30:28 +020020tst test_suite: reserving resources...
Neels Hofmeyr2694a9d2017-04-27 19:48:09 +020021tst test_suite: DBG: {combining='resources'} [test_suitetest_suite]
22tst 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 +020023--- (want='bts'): DBG: Looking for 1 x bts , candidates: 3
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020024--- (want='bts'): DBG: Picked - _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9
25 addr: 10.42.42.114
26 band: GSM-1800
27 ipa_unit_id: '1'
28 label: sysmoBTS 1002
29 type: sysmo
30--- (want='modem'): DBG: Looking for 2 x modem , candidates: 16
31--- (want='modem'): DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
32 imsi: '901700000007801'
33 ki: D620F48487B1B782DA55DF6717F08FF9
34 label: m7801
35 path: /wavecom_0
36- _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254
37 imsi: '901700000007802'
38 ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3
39 label: m7802
40 path: /wavecom_1
41--- (want='nitb_iface'): DBG: Looking for 1 x nitb_iface , candidates: 3
42--- (want='nitb_iface'): DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
43 addr: 10.42.42.1
Neels Hofmeyr3531a192017-03-28 14:30:28 +020044tst hello_world.py: START [test_suitehello_world.py]
45tst hello_world.py:3: hello world [test_suitehello_world.py:3]
46tst hello_world.py:4: I am 'test_suite' / 'hello_world.py:4' [test_suitehello_world.py:4]
47tst hello_world.py:5: one [test_suitehello_world.py:5]
48tst hello_world.py:5: two [test_suitehello_world.py:5]
49tst hello_world.py:5: three [test_suitehello_world.py:5]
50tst hello_world.py: PASS [test_suitehello_world.py]
51pass: all 1 tests passed.
52
53- a test with an error
Neels Hofmeyr2694a9d2017-04-27 19:48:09 +020054tst test_suite: Suite run start [suite.py:191]
Neels Hofmeyr3531a192017-03-28 14:30:28 +020055tst test_error.py: START [test_suitetest_error.py] [suite.py:96]
56tst test_error.py:3: I am 'test_suite' / 'test_error.py:3' [test_suitetest_error.py:3] [test_error.py:3]
57tst test_error.py:5: FAIL [test_suitetest_error.py:5] [suite.py:108]
58tst test_error.py:5: ERR: AssertionError: [test_suitetest_error.py:5] [test_error.py:5: assert False]
59FAIL: 1 of 1 tests failed:
60 test_error.py
61
62- graceful exit.