diff -r f70b728ea30c -r a1925fb7753a sbsv2/raptor/test/smoke_suite/query_cli.py
--- a/sbsv2/raptor/test/smoke_suite/query_cli.py Wed Jul 28 13:20:46 2010 +0100
+++ b/sbsv2/raptor/test/smoke_suite/query_cli.py Thu Aug 12 09:00:16 2010 +0100
@@ -53,13 +53,72 @@
""
]
t.run()
-
+
+ winscwtargets =[ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""]
+ armtargets = winscwtargets + [
+ "",
+ "" ]
+ tools2targets = [ "",
+ ""]
+
t.name = "query_cli_config"
t.command = "sbs --query=config[armv5_urel]"
t.mustmatch_singleline = [
"",
- "fullname='arm\.v5\.urel\.rvct.*'",
+ "meaning='arm\.v5\.urel\.rvct.*'",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ] + armtargets + [
+ "",
+ "",
"outputpath='.*/epoc32/release/armv5/urel'",
+ "include path='.*/epoc32/include/variant'",
+ "include path='.*/epoc32/include'",
+ "preinclude file='.*/epoc32/include/variant/Symbian_OS.hrh'",
+ "macro name='SBSV2' value='_____SBSV2'/>",
+ "macro name='ARMCC' value='_____ARMCC'/>",
+ "macro name='EPOC32' value='_____EPOC32'/>",
+ "macro name='MARM' value='_____MARM'/>",
+ "macro name='EABI' value='_____EABI'/>",
+ "macro name='GENERIC_MARM' value='_____GENERIC_MARM'/>",
+ "macro name='MARM_ARMV5' value='_____MARM_ARMV5'/>",
+ "macro name='ARMCC_2' value='_____ARMCC_2'/>",
+ "macro name='ARMCC_2_2' value='_____ARMCC_2_2'/>",
+ "macro name='__GNUC__' value='3'/>",
+ "",
""
]
t.mustnotmatch_singleline = []
@@ -69,7 +128,7 @@
t.command = "sbs --query=config[armv5_urel.test_bv_1] --configpath=test/smoke_suite/test_resources/bv"
t.mustmatch_singleline = [
"",
- "fullname='arm\.v5\.urel\.rvct._.\.test_bv_1'",
+ "meaning='arm\.v5\.urel\.rvct._.\.test_bv_1'",
"outputpath='.*/epoc32/release/armv5\.one/urel'",
""
]
@@ -87,7 +146,8 @@
t.mustmatch_singleline = [
"",
"outputpath='.*/epoc32/release/winscw/urel'",
- "outputpath='.*/epoc32/release/%s/rel'" % t2,
+ "outputpath='.*/epoc32/release/%s/rel'" % t2
+ ] + winscwtargets + tools2targets + [
""
]
t.mustnotmatch_singleline = []
@@ -104,6 +164,17 @@
t.errors = 1
t.returncode = 1
t.run()
+
+ t.name = "query_cli_evaluator_error"
+ t.command = "sbs --query=config[arm.badenv] --configpath=test/smoke_suite/test_resources/query_cli"
+ t.mustmatch_singleline = [
+ "DONTSETTHISEVER is not set in the environment and has no default",
+ "DONTSETTHISEVER is not set in the environment and has no default"
+ ]
+ t.mustnotmatch_singleline = []
+ t.errors = 0
+ t.returncode = 0
+ t.run()
t.name = "query_cli"
t.print_result()