13 Commits

Author SHA1 Message Date
Daniil Klimuk
db5e4f2236 include: hal: common-mock-func.sh: add mocking EFI pressence in SYSFS
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2025-06-11 13:30:53 +02:00
Pawel Langowski
39021f596c Fix files to conform to shfmt
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-04-15 14:48:13 +02:00
Daniil Klimuk
e69ca6c8a4 reports: dasharo-hcl-report: mock checking for sound card presence
This loop takes too much time during tests (5s * 12 = 1m). The sound
card presence should be mocked to true by default to optimize HCL report
execution time.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2025-01-15 14:29:12 +01:00
Daniil Klimuk
0f71309737 include: hal: dts-hal: do not send mocking fun name to FSREAD_TOOL
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2025-01-15 14:29:12 +01:00
Michał Iwanicki
9e678e52eb logging: redirect more stderr to ERR_LOG_FILE
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-01-10 10:56:53 +01:00
Daniil Klimuk
8e05b0f2e2 delete explicit redirection to stdout (1>&1)
Reviewed-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk
4934117d74 include: dts-functions.sh: fix AC adapter mocking
Reviewed-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk
09258fb168 include: hal: dts-hal.sh: use $@ instead of $*
Reviewed-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk
821e7082b3 include: hal: dts-hal: add usage comment for tool_wrapper
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk
1fde2de736 include: dts-functions.sh: check_if_boot_guard_enabled add mocks
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:45 +01:00
Daniil Klimuk
ef75759a38 include: dts-functions.sh: check_if_fused: add mocks
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:45 +01:00
Daniil Klimuk
5d310535f5 fix sourcing libs
Cause of this patch: After I have added and integrated HAL - I have
added following line in dts-boot:

source $DTS_HAL

This was needed because I have used some fuctions from the HAL in the
script.

Inside DTS_HAL I had following line:

source $DTS_ENV

Because I have used some vars from the DTS_ENV in the HAL.

The problem was, that I had another line in DTS_ENV:

source $DTS_HAL

So, I got following boot workflow:

Boot
|
v
dts-boot
|   /-------\
v   v       |
DTS_HAL->DTS_ENV
           .
............
v
dts

Instead of sourcing some scripts and then launching dts script - I got a
loop betwee DTS_HAL and DTS_ENV. Therefore I decided to clean up
sourcing a bit.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:17:36 +01:00
Daniil Klimuk
d7780f288b include: hal: add
Add HAL and mocking functions.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:17:35 +01:00