Commit Graph

43 Commits

Author SHA1 Message Date
Ulrich Mohr fffb2b61e5 release check helper 2023-02-10 11:06:30 +01:00
Steffen Gaisser a8041f220f Merge branch 'development' into mueller/cfdp-update-without-handlers 2022-10-17 14:44:28 +02:00
Robin Müller c283e0c988
okay this is correct 2022-10-04 11:02:08 +02:00
Robin Müller 448d20f3bd
small fix for helper 2022-10-04 10:55:46 +02:00
Robin Müller c90d1c8071
continue dest handler impl 2022-09-02 14:39:53 +02:00
Robin Müller 32c53b932d
Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers 2022-08-30 11:12:53 +02:00
Steffen Gaisser 6bcb208968 Merge branch 'development' into mueller/refactor-tmtc-stack 2022-08-29 15:11:50 +02:00
Robin Müller ff4cbea571
improvements for auto-formatter script 2022-08-24 17:44:55 +02:00
Robin Müller 60ea9a9a7c
clean up a few tests 2022-08-03 13:15:49 +02:00
Robin Müller f1c37203a4
some more API improvements and replacements 2022-07-26 11:14:40 +02:00
Robin Müller 74794bb71b
apply auto-formatter 2022-07-18 16:08:06 +02:00
Robin Müller ddf38b65c3
apply auto-formatter 2022-07-18 16:07:26 +02:00
Robin Müller 78b09ed0c9
fixes includes 2022-07-18 11:58:55 +02:00
Jakob Meier 161dbde0d7 fixed merge conflicts 2022-06-06 10:30:17 +02:00
Robin Müller 1e7032f89c
minor improvements for auto-formatter 2022-05-16 14:54:43 +02:00
Jakob Meier 1611a4e1f0 device handler unittest wip 2022-05-16 11:10:35 +02:00
Robin Müller 811287aac8
delete old scripts 2022-05-13 11:57:22 +02:00
Robin Müller 23fb06578b
this is better 2022-05-13 11:56:37 +02:00
Robin Müller c86e99e6dc
rename auto-formatter 2022-05-13 11:56:20 +02:00
Robin Müller 4092de911c
use variable for repeated section 2022-05-13 11:55:19 +02:00
Robin Müller 01ebf0f4d3
tab size 2022-05-13 11:49:01 +02:00
Robin Müller 99fe6487c8
another small improvement 2022-05-13 11:48:18 +02:00
Robin Müller d4a6f987bc
small fix 2022-05-13 11:46:59 +02:00
Robin Müller cfa6843c8f
check whether clang-format is installed 2022-05-13 11:46:04 +02:00
Robin Müller deee4c43c0
finally this works 2022-05-13 11:37:58 +02:00
Robin Müller ad0b6f1ed1
another small fix 2022-05-13 11:35:59 +02:00
Robin Müller 9e3d5b6a0c
small fix 2022-05-13 11:35:18 +02:00
Robin Müller 994c7299b9
add cmake-format command to shell script 2022-05-13 11:34:44 +02:00
Steffen Gaisser 20928732ec Merge branch 'development' into gaisser_unit_test_internal_error 2022-02-28 15:19:44 +01:00
Robin Müller fdc8a3d4f7
display run commands in helper script 2022-02-22 14:02:03 +01:00
Steffen Gaisser b7f3eff742 WIP unit tests 2022-02-18 19:08:06 +01:00
Steffen Gaisser 074ef29b86 Fixed valgrind python script 2022-02-14 15:19:47 +01:00
Robin Müller fed39defd3
update helper script 2022-02-02 09:56:12 +01:00
Robin Müller 371ff931bf
Linux CommandExecutor
The CommandExecutor helper class can execute shell commands in blocking and non-blocking mode
This class is able to execute processes by using the Linux popen call. It also has the capability of writing
the read output of a process into a provided ring buffer.

The executor works by first loading the command which should be executed and specifying whether
it should be executed blocking or non-blocking. After that, execution can be started with the execute call.

Using non-blocking mode allows to execute commands which might take a longer time in the background,
and allowing the user thread to check completion status with the check function

Moved to HAL like requested in code review and unit tested with failing commands as well.
Also, Linux HAL components are compiled by default now unless explicitely disabled.
2022-01-26 12:11:52 +01:00
Robin Müller e952a82b65
small tweaks and fixes 2021-12-07 13:14:57 +01:00
Robin Müller cbcfa8fe56 Merge remote-tracking branch 'upstream/development' into mueller/clang-shell-script 2021-12-06 15:06:05 +01:00
Robin Müller 4a5204d6f6
small fix for helper script 2021-12-06 14:46:31 +01:00
Robin Müller df45f02c39
script fixes, odd behaviour 2021-12-03 14:55:00 +01:00
Robin Müller fd7581f8ba Added formatting scripts
1. Added .clang-format file which contains information for the
   clang-format tool on how to format source files
2. Added shell helper script to apply all changes on HAL soures,
   test sources and primary sources

The shell script was not applied yet. This should be done shortly
before introducing the release. Also, it might be good idea to provide
instructions on how to set up the formatter for Eclipse
2021-12-01 16:11:57 +01:00
Robin Müller c2bf09d506 Introducing documentation with Sphinx
This PR introduces the generation of documentation based on
this excellent blog post: https://devblogs.microsoft.com/cppblog/clear-functional-c-documentation-with-sphinx-breathe-doxygen-cmake/

It combines the tools Sphinx, Doxygen and Breathe to generate good
looking HTML documentation conveniently which can be hosted easily.

The helper scripts were unified and there is now one helper.py script
which can be used to create, build and open both tests and documentation.
"./helper.py -h" can be used to get the different options.

This PR also contains some smaller fixes which were necessary for the docs
to build
2021-12-01 11:17:28 +01:00
Robin Müller 00dced31ee
update unittest helper scripts
- Added functionality to open HTML report immediately
- Added another helper script to automatically generate unittest build
  folder
2021-11-19 13:50:46 +01:00
Robin Müller 1b6fa9822b
this should work 2021-10-11 15:40:29 +02:00
Robin Müller ade15ad16d
tests can now be built as part of FSFW
This PR refactores the tests so they are built as part of the FSFW.
This is done by adding Catch2 with the FetchContent directive.

A future implementation might also use a system installation of Catch2
by first checking whether Catch2 can already be found as a package

The custom configuration folder testcfg was moved from the user folder
to the actual unittest folder.

The tests can be built by setting the CMake FSFW_BUILD_UNITTESTS option
to TRUE/ON. They are built with the static library and dropped inside
the build folders fsfw directory.
2021-10-07 13:24:46 +02:00