Adrian Bonislawski
f8bf720ec1
Kconfig: make Mixer component a config option
...
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-02-28 18:34:26 +01:00
Janusz Jankowski
5ccbab2659
tests: add panic symbols for alloc
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-19 16:52:10 +00:00
Janusz Jankowski
c5d01530af
tests: fix idc for smp
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-19 16:52:10 +00:00
Tomasz Lauda
71b4f1d8c1
volume: refactor volume to support variable processing sizes
...
Refactors generic and HiFi3 volume processing implementations
to support variable processing sizes. The volume_copy method
will also be refactored in the near future to take advantage
of this feature.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-02-14 17:15:20 +00:00
Tomasz Lauda
2a863143e8
component: refactor set state handling
...
Changes component set state handling. If component
already has the desired state, then the state propagation
will stop at that component. This allows for connecting
multiple source pipelines to one sink pipeline and
properly handling params and prepare calls.
Also removes unit tests, which don't make sense anymore.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-02-13 11:37:30 +00:00
Adrian Bonislawski
7cf738ef51
Kconfig: make volume and src components a config option
...
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-02-06 16:22:36 +00:00
Janusz Jankowski
6c70f1a929
cmake: tests: support prebuilt Cmocka
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-31 20:22:30 +00:00
Jakub Dabek
d0323f4d17
test: reinstated rest of memmory tests
...
Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
2019-01-30 10:46:43 +00:00
Janusz Jankowski
621e8702cc
cmake: use cmocka tiny config
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-25 15:57:51 +00:00
Liam Girdwood
0cd5fb0629
Merge pull request #878 from jajanusz/update-cmocka-git
...
cmake: update cmocka git
2019-01-24 08:17:44 +00:00
Janusz Jankowski
97f3b70d65
cmake: update cmocka git
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-23 20:31:24 +01:00
Tomasz Lauda
d918f1b3d0
pipeline: refactor whole pipeline component
...
Refactor the whole pipeline component:
- one method to handle both upstream and downstream walk
across the pipeline graph,
- code deduplication,
- cuts pipeline implementation size by half.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-01-23 17:07:10 +00:00
Janusz Jankowski
d91be6da67
buildsystem: remove autotools from sof
...
This commit doesn't touch tools buildsystem.
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-22 15:35:35 +00:00
Janusz Jankowski
a59e428b61
test: debugability: fix for full paths
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-22 15:35:35 +00:00
Janusz Jankowski
9a3dff5475
cmake: add CMakeLists for unit tests
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-22 15:35:35 +00:00
Jakub Dabek
592b0a30fb
test: reinstated some of turned off tests
...
Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
2019-01-15 11:32:50 +00:00
Janusz Jankowski
d40cff319f
test: disable xtensa-only tests for host
...
Disables following tests:
Debugability - not designed to be run on host at all
Volume - needs some tuning to not fail
Buffer - needs some fixes to not have segfault
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-12-20 08:38:26 +00:00
Janusz Jankowski
da9ab07085
test: fix _zalloc ut
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-12-19 13:04:36 +00:00
Liam Girdwood
699321e679
cmocka: host: Make sure cmocka builds and runs for host test bench
...
Fix some build issues with cmocka for host test bench target so that
cmocka UTs can run native on host architecture. This makes it easy for
users to update UTs when APIs change as they dont need architecture
specific version of cmocka.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-12-19 10:20:35 +00:00
Liam Girdwood
6b3f266653
cmocka: update component cmd API to new convention.
...
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-12-19 10:20:35 +00:00
Janusz Jankowski
dc8aaf3894
test: fix mixer ut ipc
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-12-12 11:52:56 +01:00
Tomasz Lauda
2649ec78aa
test: alloc: fix system heap alloc tests
...
Fixes system heap alloc tests, which crashed
due to wrong handling of memory freeing.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-11-30 10:07:32 +01:00
ArturX Kloniecki
6ba817bee6
UT: Fix unit tests after faulty PRs were merged.
...
Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-11-13 16:06:50 +01:00
Michal Jerzy Wierzbicki
87dad4adc5
preproc: META_COUNT_VARARGS_BEFORE_COMPILE: bugfix for tokens starting with parenthesis not being counted
...
; also introduced unit tests to check the issue
Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-11-06 02:38:16 +01:00
Liam Girdwood
33e4b99351
Merge pull request #455 from mwierzbix/debugability
...
debugability: macro metaprogramming refactor
2018-11-02 16:00:02 +00:00
Michal Jerzy Wierzbicki
b284ac32b5
debugability: Macro Metaprogramming Refactor
...
Added macro functions to make repetitive, nearly identical functions more maintainable via metaprogramming. They generate code in pre-compile, conceptually similar to C++17 if-constexpr. sof/trace, host/trace: rewrote _trace_event/d+ functions using preproc.h. test/cmocka/include/test_group_generator: rewrote macros to not conflict with new ones. Added unit tests to check whether more advanced and less obvious macros do in fact work.
Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-11-02 11:44:31 +01:00
Marcin Maka
d08a1e22d1
test: ut: added more stubs for trace functions
...
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-18 16:29:40 +02:00
ArturX Kloniecki
b0150764dc
debugability: Restore error traces always using mbox.
...
Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-10-15 16:40:53 +02:00
Liam Girdwood
1024e946a4
Merge pull request #482 from tlauda/topic/idc-notify
...
notifier: support for multicore notifications
2018-10-14 20:26:14 +01:00
Tomasz Lauda
d16addfe99
notifier: support for multicore notifications
...
Adds support for multicore notifications:
- IDC that needs to be sent to slave cores.
- Flag which tells notifier, which cores should be notified.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-10-11 18:13:07 +02:00
Slawomir Blauciak
246de4bd41
test: Partially fixed alloc unit tests
...
Unfortunately tests for buffer/runtime zones will remain broken,
might require some rework in the firmware code.
For this reason, they shall be temporarily disabled.
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-10-11 14:06:50 +02:00
Tomasz Lauda
0e92db32c1
ut: fix tests on xtensa-smp
...
Fixes UT on xtensa-smp architecture.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-10-01 16:24:22 +02:00
Tomasz Lauda
3d5958f78b
ut: include missing headers
...
Includes missing headers.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-27 11:39:09 +02:00
Janusz Jankowski
ccc9296498
test: fix: add log memory section
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-09-24 15:39:37 +02:00
Janusz Jankowski
ae8a2be46c
test: pipeline: update mocks
...
added missing new symbols - schedule_task_cancel
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-09-19 11:28:52 +02:00
Jakub Dabek
4434ca77c2
test: pipeline_free
...
Added tests for pipeline free and underlining static functions.
Also refactored previously added tests to incorporate code reuse.
Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
2018-09-07 11:08:48 +02:00
Michal Jerzy Wierzbicki
73fe559435
lib/strcheck: added unit tests for lib/memset, lib/memcpy.; lib/bzero: merged into lib/strcheck;. .gitignore: added ommission of test build files.
...
Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-09-04 12:20:48 +02:00
Liam Girdwood
968b0c7191
Merge pull request #200 from mwierzbix/unitTest-lib-rstrlen
...
test: lib/rstrlen: Added unit tests for lib/rstrlen.
2018-09-03 13:45:18 +01:00
Janusz Jankowski
8d5382162d
test: cmocka: fix pipeline tests, disable alloc tests
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-30 13:01:25 +02:00
Liam Girdwood
9d3c0df7bf
Merge remote-tracking branch 'gh/glk-003-drop-stable' into next-master2
2018-08-29 13:18:53 +01:00
Jakub Dabek
bd8902de71
tests: pipeline_complete
...
Added tests for pipeline complete and subsequently to
pipeline connect upstream and connect downstream since
they are both statics.
Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
2018-08-23 16:25:13 +02:00
Marcin Maka
43398d22db
dma: fixed writebacks when operating via L1 on dma buffer in L2 mem
...
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-08-23 14:57:53 +01:00
Marcin Maka
7cdcf034d1
dma: fixed writebacks when operating via L1 on dma buffer in L2 mem
...
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-08-23 15:25:22 +02:00
Michal Jerzy Wierzbicki
fc59979f5f
test: lib/rstrlen: Added unit tests for lib/rstrlen.
...
Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-08-23 12:39:10 +02:00
Liam Girdwood
dc6014f226
Merge remote-tracking branch 'gh/next' into gp20-alpha-drop-stable
2018-08-16 15:52:03 +01:00
Michal Jerzy Wierzbicki
f393ae33d3
test: lib/bzero: Added unit tests for lib/bzero.
...
Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-08-08 13:53:34 +02:00
Jakub Dabek
8dfedb67ae
test: added pipeline tests
...
Added tests for pipeline creation and initialization
Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
2018-08-07 17:36:55 +02:00
Michal Jerzy Wierzbicki
69a7cf556a
test: lib/rstrcmp: Added unit tests for lib/rstrcmp.
...
Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-08-07 12:33:28 +02:00
Slawomir Blauciak
d67df161c5
test: unify ut names
...
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-07-26 15:26:36 +02:00
Slawomir Blauciak
97a16bbf4e
test: update mixer ut
...
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-07-26 10:33:01 +02:00
Slawomir Blauciak
18c171b43d
test: mixer unit tests
...
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-07-25 09:44:05 +02:00
Bartosz Kokoszko
9524b6900d
test: component: change comp_set_state test cases
...
Update comp_set_state test cases due to refinement the component's
state machine in commit 5198517
.
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-07-20 10:49:39 +02:00
Bartosz Kokoszko
8d9f9a7267
test: component: change to use 1 assert per test
...
I've fixed multiple assert occurance in comp_set_state test functions.
Now single UT has only one assert. There is also a change of the name
of the test file due to name restrictions.
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-07-18 09:47:57 +02:00
Liam Girdwood
20204a9cd7
Merge pull request #110 from jajanusz/ut-makefile-fix
...
configure: fix flags for unit tests
2018-07-16 19:46:22 +01:00
Liam Girdwood
b9b49ae555
Merge pull request #109 from bkokoszx/test_component_set_state
...
Test component set state
2018-07-16 15:53:52 +01:00
Janusz Jankowski
8235d3d61a
configure: fix flags for unit tests
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-07-16 14:16:26 +02:00
Tomasz Lauda
9fbd0a4822
test: fix volume cmocka tests
...
Fixes volume cmocka tests.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-07-16 14:11:06 +02:00
Bartosz Kokoszko
31599ad097
Added comp_set_state function UT's
...
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-07-16 13:50:35 +02:00
Janusz Jankowski
de100b7d28
test: fix CFLAGS and LDFLAGS warnings
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-07-10 15:25:33 +02:00
Liam Girdwood
fa48c42abf
Merge pull request #59 from slawblauciak/test_fixes
...
test: missing header
2018-07-05 19:52:37 +01:00
Slawomir Blauciak
b7a9f0f73c
test: missing header
...
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-07-05 15:50:20 +02:00
Slawomir Blauciak
06b8c0e51b
test: missing header
...
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-07-05 15:46:35 +02:00
Slawomir Blauciak
5a10cd8be2
test: alloc tests
...
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-07-05 12:01:29 +02:00
Tomasz Lauda
01ebad7a1b
arch: multicore xtos
...
Support for multiple cores executing the same code
with the new arch xtensa-smp:
- Updated xtos to the latest version (2017.8).
- Modified xtos to handle interrupts per core.
- Added interrupt structures and stacks per core.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-06-29 15:12:01 +02:00
Tomasz Lauda
2fa6b3ac62
test: volume tests
...
Tests for volume processing functions.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-06-23 10:46:54 +02:00
Slawomir Blauciak
b84cb09f27
test: audio buffer unit tests
...
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-06-20 15:18:10 +02:00
Slawomir Blauciak
3936516cdd
test: incorrect param for one of norm_int32 tests
...
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-06-20 15:18:10 +02:00
Tomasz Lauda
14ca1fa3d5
pm_runtime: add runtime power management initial implementation
...
This patch adds initial empty implementation of runtime power management.
It is based on linux kernel implementation and will be developed
in the future.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-06-20 15:18:09 +02:00
Slawomir Blauciak
5827f391f6
test: Math unit tests
...
Tests provided: ceil_divide, find_equal_int16, find_min_int16, find_max_abs_int32, norm_int32, sin_fixed
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-06-20 15:18:09 +02:00
Tomasz Lauda
cd0044e686
test: unit tests for list.h
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-06-11 20:12:43 +01:00
Janusz Jankowski
d6d9efb90c
test: enable cmocka unit tests for SOF
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-06-11 20:11:32 +01:00