equal
deleted
inserted
replaced
18 |
18 |
19 def run(): |
19 def run(): |
20 t = SmokeTest() |
20 t = SmokeTest() |
21 t.description = "Set of tests for commandline option validation e.g. checking that the specified make engine exists" |
21 t.description = "Set of tests for commandline option validation e.g. checking that the specified make engine exists" |
22 |
22 |
23 t.mustmatch = ["Unable to use make engine: 'amakeenginethatdoesnotexist' does not appear to be a make engine - no settings found for it"] |
|
24 |
23 |
25 t.usebash = True |
24 t.usebash = True |
26 t.errors = 1 |
25 t.errors = 1 |
27 t.returncode = 1 |
26 t.returncode = 1 |
28 t.exceptions = 0 |
27 t.exceptions = 0 |
29 base_command = "sbs -b smoke_suite/test_resources/simple/bld.inf -f ${SBSLOGFILE} -m ${SBSMAKEFILE}" |
28 base_command = "sbs -b smoke_suite/test_resources/simple/bld.inf -f ${SBSLOGFILE} -m ${SBSMAKEFILE}" |
30 |
29 |
31 t.id = "114a" |
30 t.id = "42562a" |
32 t.name = "validate_makeengine_nonexist" |
31 t.name = "validate_makeengine_nonexist" |
33 t.command = base_command + " -e amakeenginethatdoesnotexist" |
32 t.command = base_command + " -e amakeenginethatdoesnotexist" |
|
33 t.mustmatch = ["Unable to use make engine: 'amakeenginethatdoesnotexist' does not appear to be a make engine - no settings found for it"] |
34 |
34 |
35 t.run() |
35 t.run() |
36 |
36 |
37 t.id = "114b" |
37 t.id = "43562b" |
38 t.mustmatch = ["Unable to use make engine: 'arm' is not a build engine \(it's a variant but it does not extend 'make_engine'"] |
38 t.mustmatch = ["Unable to use make engine: 'arm' is not a build engine \(it's a variant but it does not extend 'make_engine'"] |
39 t.name = "validate_makeengine_is_a_non_makenegine_variant" |
39 t.name = "validate_makeengine_is_a_non_makenegine_variant" |
40 t.command = base_command + " -e arm" |
40 t.command = base_command + " -e arm" |
41 t.run() |
41 t.run() |
42 |
42 |
43 t.id = "114" |
43 t.id = "43562" |
44 t.name = "input_validation" |
44 t.name = "input_validation" |
45 t.print_result() |
45 t.print_result() |
46 return t |
46 return t |