Anas Nashif
efbadbb677
scripts: move gen_kobject_list.py to scripts/build/gen_kobject_list.py
...
Move scripts needed by the build system and not designed to be run
individually or standalone into the build subfolder.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-12 10:03:45 +02:00
Anas Nashif
c36307ea86
scripts: move gen_isr_tables.py to scripts/build/gen_isr_tables.py
...
Move scripts needed by the build system and not designed to be run
individually or standalone into the build subfolder.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-12 10:03:45 +02:00
Anas Nashif
80f4b5db21
scripts: move gen_handles.py to scripts/build
...
Move scripts needed by the build system and not designed to be run
individually or standalone into the build subfolder.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-12 10:03:45 +02:00
Anas Nashif
6e1a335447
scripts: move gen_app_partitions.py to scripts/build
...
Move scripts needed by the build system and not designed to be run
individually or standalone into the build subfolder.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-12 10:03:45 +02:00
Pieter De Gendt
657a67d090
scripts/requirements: Replace protobuf with grpcio-tools
...
The nanopb module generates source files from .proto files,
however the latest protobuf v4.21.0 python package breaks
compatibility.
Using grpcio-tools instead fixes this.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2022-07-11 14:15:06 +02:00
Torsten Rasmussen
f08af4ce68
west: zcmake.py: support UNINITIALIZED type if CMakeCache.txt file
...
A variable set by the user with `-DVAR=<val>` will be given the type
UNINITIALIZED.
This results in the variable not being read into the cmake_cache.
Support reading of CMake cache variables of type UNINITIALIZED.
Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2022-07-11 11:33:15 +02:00
Carlo Caione
5a4affdcda
gen_isr_tables.py: Move to scripts directory
...
There is no reason to have this script in a different place than all the
other python scripts. Move it.
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2022-07-07 17:58:34 +00:00
Anas Nashif
9e3d697f15
twister: fix calculation of testsuite names
...
We were omitting one element of the path by mistake.
Also fix some naming issues in the testsuite.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 15:07:35 -04:00
Anas Nashif
89b8c2b892
twister: adapt twister testsuite
...
Adapt with new way for parsing testsuites.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
1463f4bdc5
twister: rework testsuite parsing
...
Move testsuite setup and parsing to the testsuite class. Simplify
reading data from yaml.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
4789f07a8f
twister: fixups to various files
...
Various fixups, will be folded in correct commits eventually.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
087f1e4a63
twister: fixed various pylint issues
...
Fix various pylint issues.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
3d1971dee3
twister: adapt and fix testsuite tests
...
Re-add testsuite tests, include file scanning.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
1a6948ac26
twister: move file scanning out of class
...
This is all static functions that can maintained outside of the class
and called only in one place, so move this to the testsuite file.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
9437e6d963
twister: fix twister testsuite
...
Make testsuite work again.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
08caa71de7
twister: testplan: get options directly
...
Get options from passed environment class instead of using command line
options to the init function.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
76d5543c9b
twister: fix main script returns and error handling
...
Propagate errors to the main routine and do not exit early in case of
errors.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
91b2cce64e
twister: fix subset processing
...
Process subsets was done in the wrong step, so make it apply and
generarte subsets correctly.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
79d7d0188b
twister: make ninja the default
...
Using ninja is up to 50% faster, make it the default and add an option
to build with Make.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
7149173627
twister: simplify handler options
...
Depend on global options instead of passing them around for each class.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
f2b5a6674a
twister: move harness class to class folder
...
harness class moved along size other classes.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
57dbaa3da3
twister: move more code from main script
...
Move code from twister script into respective classes.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
f539f1dc48
twister: move size report into size calc class
...
Move from main script into size_calc class.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
806722cdbf
twister: move device testing code
...
Move device handling code into hardware map class.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
f7d501447d
twister: move cleanup and classification of code
...
Move code out of the main script and use global options.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
396b8574eb
twister: testplan: move calls to json loading/filter into class
...
Move all code related to instance filtering and loading into the class
instead of having it in the main script. Simplify option passing.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
f85d1eb4e1
twister: rework testplan and main twister script
...
Move all testplan related code to the testplan class and cleanup main
twister script.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
b8735b3300
twister: more cleanup to option passing
...
Use global options rather than passing them individually.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
facc685ae9
twister: move runner code into runner class
...
Move all code related to test execution into runner class.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
20f257a97d
twister: move execution code out of testplan
...
Move all code related to execution into runner class.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
d43e03e19e
twister: isolate testplan class
...
Move testplan class into own file and rename the original twisterlib.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
96b9ff6b5e
twister: move runner classes out
...
Move runners into own file.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
1084869634
twister: minor cleanups in main script
...
Move code around in the main script and cleanup some of the options.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
e5c2e797c9
twister: move test instance class out
...
Move test instance class into own file.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
adfa6c7777
twister: move coverage classes out
...
Move coverage related classes out into own file.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
78d9dab7f3
twister: cleanup imports and move size classes out
...
More python import optimizations and cleanup and move size_calc class
out into own file.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
75eee4b1f3
twister: move platform class out
...
Move both platform and config parser into own file.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
0779ccc5fc
twister: import cleanup
...
python import cleanup and simplification.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
f490b059ad
twister: move handlers class out
...
Split handlers into own file.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
2b213d3231
twister: split hardwaremap class out
...
Split hardware map class into own file.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
d5424d5116
twister: split report classes out
...
Move report classes out into own file and split out of testplan class.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
d8d217d2ea
twister: move testsuite, testcase classes out
...
Move testsuite/testcase and supporting classes into own files.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
521ce42161
twister: move cmake cache class
...
Move cmake cache classes into own file.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
e01cbbe31f
twister: add environment class
...
Add environment class to discover toolchain, zephyr version and other
items.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Anas Nashif
acda94be2d
twister: optimize file scanning
...
We have been scanning code for tests for every scenario defined in the
yaml file. This needs to only be parsed once and not more. We are
dealing with the same files for each scenario.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-05 12:06:27 -04:00
Bartosz Bilas
888ce37799
runners: jlink: allow passing file path with spaces
...
Put file path within the " " marks to allow
passing file path with spaces.
Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
2022-07-05 13:20:17 +02:00
Christopher Friedt
4cc443705d
libc: minimal: add strerror and strerror_r function
...
Add simple strerror() and strerror_r() implementations.
Fixes #46099
Signed-off-by: Christopher Friedt <cfriedt@fb.com>
2022-07-04 22:53:36 +02:00
Enjia Mai
ce18d3c4ff
requirements: add netifaces, needed by adsp runner
...
Needed for running tests on intel_adsp_cavs boards, the cavstool.py
are using it to get the host ip address automatically.
Signed-off-by: Enjia Mai <enjia.mai@intel.com>
2022-07-04 16:33:03 +02:00
Reto Schneider
35f9a32781
twister: Remove testcase-root reference
...
--testcase-root got renamed to --testsuite-root
Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2022-07-02 19:24:58 -05:00
Sylvio Alves
60417bad79
scripts: runners: esp32: add erase option
...
Adds option for erasing esp32 SoC.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2022-07-01 16:25:34 +02:00