Skip to content

Commit 50b9317

Browse files
sjancAnas Nashif
authored andcommitted
sanitycheck: Add support for unified kernel
This fix sanitycheck for apps that specify unified kernel. Change-Id: I3f1c4d5a566f6833e56bbda097cb497ccdbfbec9 Signed-off-by: Szymon Janc <[email protected]>
1 parent 23357b9 commit 50b9317

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/sanitycheck

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Each testcase.ini block can define the following key/value pairs:
3030
run under certain circumstances, like daily builds. These test cases
3131
are still compiled.
3232
33-
kernel = <nano|micro>
33+
kernel = <nano|micro|unified>
3434
Specify the kernel being tested instead of relying on parsing
3535
Makefile for KERNEL_TYPE
3636
@@ -1040,7 +1040,7 @@ class Platform:
10401040
if plat_dict["supported_toolchains"]:
10411041
self.supported_toolchains = plat_dict["supported_toolchains"]
10421042
# Gets populated in a separate step
1043-
self.defconfig = {"micro" : None, "nano" : None}
1043+
self.defconfig = {"micro" : None, "nano" : None, "unified" : None}
10441044
pass
10451045

10461046
def set_defconfig(self, ktype, defconfig):
@@ -1049,7 +1049,7 @@ class Platform:
10491049
We do this in another step because all the defconfigs are generated
10501050
at once from a sub-make, see TestSuite constructor
10511051
1052-
@param ktype Kernel type, either "micro" or "nano"
1052+
@param ktype Kernel type, either "micro" or "nano" or "unified"
10531053
@param defconfig Dictionary containing defconfig information
10541054
"""
10551055
self.defconfig[ktype] = defconfig
@@ -1059,7 +1059,7 @@ class Platform:
10591059
in the kernel defconfig used for this arch/platform. Used to identify
10601060
platform features.
10611061
1062-
@param ktype Kernel type, either "micro" or "nano"
1062+
@param ktype Kernel type, either "micro" or "nano" or "unified"
10631063
@return dictionary corresponding to the defconfig contents. unset
10641064
values will not be defined
10651065
"""
@@ -1102,7 +1102,7 @@ class Architecture:
11021102
class TestCase:
11031103
"""Class representing a test application
11041104
"""
1105-
makefile_re = re.compile("\s*KERNEL_TYPE\s*[?=]+\s*(micro|nano)\s*")
1105+
makefile_re = re.compile("\s*KERNEL_TYPE\s*[?=]+\s*(micro|nano|unified)\s*")
11061106

11071107
def __init__(self, testcase_root, workdir, name, tc_dict, inifile):
11081108
"""TestCase constructor.

0 commit comments

Comments
 (0)