equal
deleted
inserted
replaced
17 from raptor_tests import SmokeTest |
17 from raptor_tests import SmokeTest |
18 |
18 |
19 def run(): |
19 def run(): |
20 |
20 |
21 t = SmokeTest() |
21 t = SmokeTest() |
22 t.id = "87" |
22 t.description = "Tests against log files to ensure it 'does the right thing'" |
23 t.name = "terminal_filter_tests" |
23 |
24 t.description = "terminal_filter_tests: Tests the terminal filter against" \ |
24 t.id = "87a" |
25 + " log files to ensure it 'does the right thing'" |
25 t.name = "terminal_filter_tests_log" |
26 t.command = "$(SBS_HOME)/test/smoke_suite/test_resources/refilter/testfilterterminal" |
26 t.command = "$(SBS_HOME)/test/smoke_suite/test_resources/refilter/testfilterterminal" |
27 t.countmatch = [ |
27 t.countmatch = [ |
28 # One of each type of error occurs early in the 'sbs' call where there |
28 # One of each type of error occurs early in the 'sbs' call where there |
29 # is a recipe inside another recipe. Then the errors occur in the |
29 # is a recipe inside another recipe. Then the errors occur in the |
30 # opposite order where are 2 closing tags next to each other before 2 |
30 # opposite order where are 2 closing tags next to each other before 2 |
34 ["sbs: error: Closing recipe tag found before opening recipe tag:", 2], |
34 ["sbs: error: Closing recipe tag found before opening recipe tag:", 2], |
35 ["Unable to print recipe data \(Possible logfile corruption\)", 2] |
35 ["Unable to print recipe data \(Possible logfile corruption\)", 2] |
36 ] |
36 ] |
37 t.errors = 4 |
37 t.errors = 4 |
38 t.run() |
38 t.run() |
|
39 |
|
40 t.id = "87b" |
|
41 t.name = "terminal_filter_tests_configs" |
|
42 t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf" |
|
43 t.countmatch = [] |
|
44 t.errors = 0 |
|
45 t.mustmatch_singleline = ["built 'armv5_urel'", |
|
46 "built 'armv5_udeb'", |
|
47 "built 'winscw_urel'", |
|
48 "built 'winscw_udeb'" ] |
|
49 t.run() |
|
50 |
|
51 t.id = "87" |
|
52 t.name = "terminal_filter_tests" |
|
53 t.print_result() |
39 return t |
54 return t |