diff options
author | Andrew Boie <andrew.p.boie@intel.com> | 2016-06-02 12:27:54 -0700 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2016-06-02 23:10:07 +0000 |
commit | 7a87f9f500fb49658a02f40e97e8c9fa02e6c9d6 (patch) | |
tree | b91a79f05d3c8fe29ccb43d8a2a110acbd60c11e /scripts/sanitycheck | |
parent | 99c0f64b34a488bf167657fca0e6c5c0adbbd1bf (diff) |
expr_parser: support ':' operator
Similar to '==' but compiles the RHS into a regular expression
and attempts to match whatever is in the environment against it.
Change-Id: I7a03452ef88d067b62661d14dc6f42273de436fa
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Diffstat (limited to 'scripts/sanitycheck')
-rwxr-xr-x | scripts/sanitycheck | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/sanitycheck b/scripts/sanitycheck index 1d849bec0..3b80d0cd7 100755 --- a/scripts/sanitycheck +++ b/scripts/sanitycheck @@ -80,6 +80,7 @@ Each testcase.ini block can define the following key/value pairs: | symbol ">=" number | symbol "<=" number | symbol "in" list + | symbol ":" string | symbol list ::= "[" list_contents "]" @@ -110,6 +111,14 @@ Each testcase.ini block can define the following key/value pairs: filter = not ARCH in ["x86", "arc"] + The ':' operator compiles the string argument as a regular expression, + and then returns a true value only if the symbol's value in the environment + matches. For example, if CONFIG_SOC="quark_se" then + + filter = CONFIG_SOC : "quark.*" + + Would match it. + Architectures and platforms are defined in an archtecture configuration file which are stored by default in scripts/sanity_chk/arches/. These each define an [arch] block with the following key/value pairs: |