while setting up MuditaOS toolchain in a virtual environment
I noticed a requirement was missing. Probably it comes preinstalled
on Ubuntu so no one noticed until now.
Fix of the issue that unit tests build would not
fail when unit test contained 2 test cases with
identical name.
Changed Catch2 submodule to local fork.
Minor unit tests and build target docs cleanup.
Fixes and optimizations in logger:
* fixed possible buffer overflow when logging
logs over line buffer size;
* reduced max log line length to 2048;
* moved pubsetbuf before file opening;
* log file stream buffer created once
in logger ctor;
* updatet UTs;
* additional minor cleanup.
Remove mechanics enabling to perform reboot
to MSC mode by sending request to one of the
endpoints via serial port, as it is not
implemented in bootloader and may potentially
be unsafe.
Works:
- generating .img for Pure;
- Pure boots after flashing new image and
seems to be working fine;
Not yet:
- generating update package;
- generating image for Harmony;
- simulator;
- path-related unit tests fail
due to paths being hardcoded
in test scenarios.
Due to many regressions these changes
introduced, we decided to revert them.
The old PR will be used as a foundation for
another fix attempt(probably including major
refactor of the alarm operations module).
DeviceInfo endpont now contains information such as:
deviceSpaceTotal - total storage space on the device
systemReservedSpace - storage space on the device
reserved for the OS
usedUserSpace - storage space on the device used
for user files on the user partition
AbstractAlarmAction execute method takes Record as paremeter to pass it
to action
Bedtime abstraction extended to keep own EvetContainer and hadle needed
actions(push,clear ... and so on)
Fixed an issue where cpp file was added by #include directive
New fuction added to test/CMakeLists.txt to
add manually prepared target to test siute
googletest-service-time-alarm-operations source moved to library and
than linked in to googletest-service-time-bell-alarm-operations
The time of the next attempt to unlock the phone on
the MC side was bonded with the system time of
the MC host system. This could lead to issues when
the time on Pure was different than on MC host
operating system. Now everything relies on Pure
system time.
* options work a bit better ,now services and apps are
selectable by option in cmake
* test service example added
* major documentation for module-services
* documentation for project configs and logs
Co-authored-by: Bartosz Cichocki <sp2fet@gmail.com>
Co-authored-by: Mateusz Piesta <mateusz.piesta@mudita.com>
Previously test was expecting to get any answer.
Now it is enhanced to check if returned values make any sense.
Additionally added test for checking log files location.
As we do not have artifactory etc. we download public assets from
public repository.
download_asset mechanism:
* added tar with unpack for releases on github
* download script create parent directory
* When there is no parent directory - then create it, not the file as
dir
* Lessened logs status
* download release files for Pure works ok
* added option to load multiple elements from tar
* added option to load stuff from own PC
CMake fixes:
* Add option to not pass Luts.bin to the image
* Added dependencies:
* Assets cmake
* DiskImage
* Generall: dependencies instead of runtime globals
* Fixed UT for bell
Added description file to fownload files:
* Files downloaded from MuditaOSPublicAssets repository Bell
* PurePhone assets copied to build dir not to image dir
* Added test assets and bell assets
* Luts and test assets unpacked to right place
* Luts proper on img on phone
EGD-8066 sq