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
Aurelien Jarno
77ef1b715a
usb: cdc_acm: implement uart_config_get() API
...
Implement the uart_config_get() API by converting the existing
line coding structure to the struct uart_config format.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2022-07-05 18:00:24 +02:00
Aurelien Jarno
4e3fabada2
usb: cdc_acm: add Line Coding Structure constants
...
Add line Coding Structure constants from CDC spec 6.3.11, table 17.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2022-07-05 18:00:24 +02:00
Benjamin Björnsson
c2861ffda2
drivers: sensor: th02: Add multi-instance support
...
Move driver to use DT_INST_FOREACH_STATUS_OKAY to add
multi-instance support.
Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2022-07-05 15:41:10 +00:00
Carlo Caione
8c4f98d263
linker: Fix _vector_end symbol location
...
The 219d5b5adb
commit is breaking the STM32F0 platforms.
The problem is that the PR is changing the location the _vector_end
symbol is pointing to. These platforms require the symbol to be pointing
to a location in memory after the IRQ vector table.
Fix the issue by introducing a new _vector_end symbol when the IRQ
vector table is present that points to the correct location.
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2022-07-05 15:40:55 +00:00
Eduardo Montoya
848fd44518
net: openthread: enable default software tx security in 1.3
...
Make sure MAC software transmission security is enabled by default
for Thread 1.3 builds as well.
Signed-off-by: Eduardo Montoya <eduardo.montoya@nordicsemi.no>
2022-07-05 15:40:14 +00:00
Benjamin Björnsson
f5b9635e31
drivers: sensor: adxl345: Add multi-instance support
...
Move driver to use DT_INST_FOREACH_STATUS_OKAY to add
multi-instance support.
Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2022-07-05 15:39:33 +00:00
Benjamin Björnsson
1d0e5e17d3
drivers: sensor: ams_iAQcode: Add multi-instance support
...
Move driver to use DT_INST_FOREACH_STATUS_OKAY to add
multi-instance support.
Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2022-07-05 15:39:15 +00:00
Teik Heng Chong
f551c29576
drivers: serial: Uart ns16550 get clock frequency from clock manager
...
This patch is to enhance the uart ns16550 driver to get clock frequency
from clock manager or devicetree if clock_frequency is defined.
Signed-off-by: Teik Heng Chong <teik.heng.chong@intel.com>
2022-07-05 15:38:54 +00:00
Teik Heng Chong
89075f42bb
drivers: clock_control: Use Agile clock sub system as clock id
...
This patch is to direct use Agile clock sub system as clock id
Signed-off-by: Teik Heng Chong <teik.heng.chong@intel.com>
2022-07-05 15:38:54 +00:00
Teik Heng Chong
30e662d17e
dts: bindings: clock: Add clock binding file for Intel Agilex Soc FPGA
...
Fix the missing Intel Agilex clock manager binding file
Signed-off-by: Teik Heng Chong <teik.heng.chong@intel.com>
2022-07-05 15:38:54 +00:00
Emil Gydesen
6cd35242df
Bluetooth: Audio: Stop calling broadcast sink syncable when synced
...
The syncable callback was called whenever we received the BIGInfo
The BIGInfo is, however, received even while synced (as per the
HCI spec). Add a check to stop calling syncable when synced,
and keep the sink->big value updated based on the ISO states.
Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2022-07-05 15:34:24 +00:00
Xiao Song
f10f900f10
tests: net: dhcpv4: move to new ztest API
...
Move tests/net/dhcpv4/ to use new ztest API.
Signed-off-by: Xiao Song <songx.xiao@intel.com>
2022-07-05 11:13:24 -04:00
Guo Lixin
05c13ac094
tests: kernel: pipe_api: move to new ztest API
...
Move tests/kernel/pipe/pipe_api/ to use new ztest API.
Signed-off-by: Guo Lixin <lixinx.guo@intel.com>
2022-07-05 11:13:00 -04:00
Guo Lixin
af1e0c5a00
tests: pipe: move to new ztest API
...
Move tests/kernel/pipe/pipe/ to use new ztest API.
And make test case a little more independent.
Signed-off-by: Guo Lixin <lixinx.guo@intel.com>
2022-07-05 11:13:00 -04:00
Emil Gydesen
ec8a6c83fa
tests: bluetooth: Fix bad Audio preset macro for broadcast sink
...
Fix a bad macro usage after multiple commits were merged.
Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2022-07-05 16:31:54 +02:00
Benjamin Björnsson
803fdf6a46
drivers: sensor: vcnl4040: Add multi-instance support
...
Move driver to use DT_INST_FOREACH_STATUS_OKAY to add
multi-instance support.
Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2022-07-05 09:14:50 -05:00