summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@codecoup.pl>2016-10-24 21:58:28 +0200
committerAnas Nashif <nashif@linux.intel.com>2016-10-25 19:01:28 +0000
commit50b93178326a386d7c7aa3f9ca87c6a0fd3fc2c5 (patch)
tree5926bad20dcad5771d7ca45981de9de08dcd016f /scripts
parent23357b9b73b3d01c0ebc1f3034434f1b020c16a0 (diff)
sanitycheck: Add support for unified kernel
This fix sanitycheck for apps that specify unified kernel. Change-Id: I3f1c4d5a566f6833e56bbda097cb497ccdbfbec9 Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sanitycheck10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/sanitycheck b/scripts/sanitycheck
index 2af518f75..ff96eeb21 100755
--- a/scripts/sanitycheck
+++ b/scripts/sanitycheck
@@ -30,7 +30,7 @@ Each testcase.ini block can define the following key/value pairs:
run under certain circumstances, like daily builds. These test cases
are still compiled.
- kernel = <nano|micro>
+ kernel = <nano|micro|unified>
Specify the kernel being tested instead of relying on parsing
Makefile for KERNEL_TYPE
@@ -1040,7 +1040,7 @@ class Platform:
if plat_dict["supported_toolchains"]:
self.supported_toolchains = plat_dict["supported_toolchains"]
# Gets populated in a separate step
- self.defconfig = {"micro" : None, "nano" : None}
+ self.defconfig = {"micro" : None, "nano" : None, "unified" : None}
pass
def set_defconfig(self, ktype, defconfig):
@@ -1049,7 +1049,7 @@ class Platform:
We do this in another step because all the defconfigs are generated
at once from a sub-make, see TestSuite constructor
- @param ktype Kernel type, either "micro" or "nano"
+ @param ktype Kernel type, either "micro" or "nano" or "unified"
@param defconfig Dictionary containing defconfig information
"""
self.defconfig[ktype] = defconfig
@@ -1059,7 +1059,7 @@ class Platform:
in the kernel defconfig used for this arch/platform. Used to identify
platform features.
- @param ktype Kernel type, either "micro" or "nano"
+ @param ktype Kernel type, either "micro" or "nano" or "unified"
@return dictionary corresponding to the defconfig contents. unset
values will not be defined
"""
@@ -1102,7 +1102,7 @@ class Architecture:
class TestCase:
"""Class representing a test application
"""
- makefile_re = re.compile("\s*KERNEL_TYPE\s*[?=]+\s*(micro|nano)\s*")
+ makefile_re = re.compile("\s*KERNEL_TYPE\s*[?=]+\s*(micro|nano|unified)\s*")
def __init__(self, testcase_root, workdir, name, tc_dict, inifile):
"""TestCase constructor.