Commit Graph

156 Commits

Author SHA1 Message Date
Steffen Gaisser 10398855a9 Added more unittest coverage
Added Mutex for gmtime functions
Moved Statics used in ClockCommon to ClockCommon
2022-03-25 18:47:31 +01:00
Robin Müller 5ca5fe4040
Merge remote-tracking branch 'upstream/development' into eive/develop 2022-03-14 17:50:27 +01:00
Robin Müller 522cbc7f3d
Merge remote-tracking branch 'upstream/development' into mueller/version-getter-upstream 2022-03-14 14:38:27 +01:00
Robin Müller ce5bcc5897
bugfix 2022-03-14 14:37:41 +01:00
Robin Müller 97c93afeff Merge remote-tracking branch 'upstream/development' into mueller/version-getter-upstream 2022-03-14 14:24:43 +01:00
Ulrich Mohr 8704b9ab06 Merge pull request 'Fixed test issue with overflow of times' (#574) from gaisser/fsfw:gaisser_ccsds_time_tests into development
Reviewed-on: fsfw/fsfw#574
2022-03-14 14:23:35 +01:00
Robin Müller 14ac852b7e
this tests even a bit more 2022-03-10 09:44:06 +01:00
Robin Müller 6b1a81ee92
minor tweaks 2022-03-10 09:40:34 +01:00
Robin Müller 3779b44813
added some more minor tests 2022-03-10 09:37:57 +01:00
Robin Müller 7daa9812ff added tests 2022-03-10 09:35:10 +01:00
Steffen Gaisser 445d5dd6f0 Added Checks for CDSShort in unittests 2022-03-09 18:56:08 +01:00
Robin Müller 84f95e8d76
this is better 2022-03-08 09:45:58 +01:00
Robin Müller 8b1c277c58
better name of invalid mode retval 2022-03-08 09:34:22 +01:00
Steffen Gaisser a4f97a7ba7 Fixed another issue of time checks 2022-03-07 18:33:24 +01:00
Steffen Gaisser 8b1af232c3 Added Tests for CCSDS Time, fixed LPM Test
Changed behaviour of Host and Linux Clock
2022-03-07 18:22:10 +01:00
Robin Müller d06eecf9b0 small test device handler fixes 2022-03-07 15:56:45 +01:00
Robin Müller a7cb2d4354
small test device handler fixes 2022-03-07 15:54:56 +01:00
Robin Müller 7571987a1d
Merge branch 'eive/develop' into mueller/master 2022-03-07 15:43:52 +01:00
Robin Müller d6c1041133
Merge remote-tracking branch 'upstream/development' into eive/develop 2022-03-07 15:34:11 +01:00
Steffen Gaisser 14b44f8bb2 Merge branch 'development' into gaisser_compiler_flags 2022-03-07 13:09:21 +01:00
Robin Müller 3c53e2c259
renamed some ModeIF definitions 2022-03-05 03:01:43 +01:00
Robin Müller aebab4c73c
Merge remote-tracking branch 'upstream/development' into mueller/master 2022-03-04 15:08:45 +01:00
Robin Müller c3c2e1c0dd
Merge remote-tracking branch 'upstream/development' into eive/develop 2022-03-04 15:08:07 +01:00
Robin Müller ac036b2a70
Merge remote-tracking branch 'origin/eive/develop' into mueller/gpio-hal-updates 2022-02-28 15:49:11 +01:00
Steffen Gaisser 2d12618c96 Merge branch 'development' into mueller/test-task-one-shot-flag-not-static 2022-02-28 15:42:08 +01:00
Steffen Gaisser 68ca6fd122 Merge branch 'development' into gaisser_compiler_flags 2022-02-28 15:29:57 +01:00
Robin Müller 28b28b5684
Merge branch 'mueller/gpio-hal-updates' into mueller/master 2022-02-28 14:48:27 +01:00
Steffen Gaisser 09815f5cce Clang format 2022-02-23 18:24:07 +01:00
Steffen Gaisser f6357b4531 WIP compiler Flags and new unit tests for fixes 2022-02-23 18:23:22 +01:00
Steffen Gaisser d6508e23b6 Added more coverage and Documentation 2022-02-23 12:12:49 +01:00
Steffen Gaisser 4862edfdb5 Clang format 2022-02-22 13:42:56 +01:00
Steffen Gaisser a50b52df51 Fixed an issue in host OSAL and added more coverage to IER 2022-02-22 13:37:28 +01:00
Robin Müller 9c2ceb4a9f
one shot flag not static anymore 2022-02-22 11:29:23 +01:00
Robin Müller 3a5881a0cb
more time 2022-02-22 11:10:02 +01:00
Steffen Gaisser 45ea09291a Still test for InternalError Reporter 2022-02-18 19:57:36 +01:00
Steffen Gaisser b7f3eff742 WIP unit tests 2022-02-18 19:08:06 +01:00
Robin Müller 9e92afbf07 bugfix in test task 2022-02-16 18:54:55 +01:00
Robin Müller 22bc300902 increase other limits 2022-02-14 16:14:14 +01:00
Robin Müller 0d38ac62d8 this should work an ALL systems 2022-02-14 16:12:48 +01:00
Robin Müller d53c7e1190 increase test limit 2022-02-14 16:00:43 +01:00
Robin Müller 4f87e24f60
increase test limit 2022-02-10 14:08:52 +01:00
Robin Müller ddcac2bbac
reapply clang format 2022-02-02 10:29:30 +01:00
Robin Müller e5cc7069a6
Merge remote-tracking branch 'upstream/development' into mueller/cfdp-pdus 2022-02-02 10:19:31 +01:00
Robin Müller e0c50477cb
it actually was an uninitialized array 2022-02-02 10:00:57 +01:00
Robin Müller acbc2cd749
valgrind why 2022-02-01 18:04:08 +01:00
Robin Müller 368481f88b
move strcmp outside of macro 2022-02-01 14:04:13 +01:00
Robin Müller d2b561ba2f
test 2022-02-01 13:57:27 +01:00
Robin Mueller 751de7accc
Merge remote-tracking branch 'upstream/development' into mueller/cfdp-pdus 2022-02-01 11:00:57 +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 d0c7878da4
simplified test controller and added docs gitignore 2021-12-14 17:50:23 +01:00
Robin Müller 7a84dff7d6
maybe this fixes the build error? 2021-12-06 16:23:09 +01:00
Robin Müller 602fa3a956 Merge remote-tracking branch 'upstream/development' into mueller/cfdp-pdus 2021-12-06 16:12:06 +01:00
Robin Müller 5907f8ee9d
Added CFDP packet stack
This PR adds the packet stack for the CCSDS File Delivery Protocol.
It also refactors the existing TMTC infastructure to allow sending
of CFDP packets to the CCSDS handlers.

This includes the whole PDU (Protocol Data Unit) stack:

- File Data PDUs

and all file directive PDUs

- ACK PDU
- NAK PDU
- Metadata PDU
- Finished PDU
- Prompt PDU
- Keep Alive PDU
- EOF PDU

The PR includes a full set of unittests for the packet stack
with a coverage of 90+ %.

The refactoring of the existing TMTC infastructure includes non-ideal
solutions like diamond inheritance.
Avoiding this solution would require refactoring the packet stack.
This would be a good idea anyway because the existing stack is tightly
coupled to the FSFW, making reuse more difficult if only the stack is
planned to be used without the store functionalities etc.

The PDU implementation provided here is only weakly coupled to the FSFW,
only using components like returnvalues or the Serialization modules.
There are dedicated serializers and deserializers, which also helps in
creating small focused modules which are easy to test.

Some of the modules here were provied by Matthias Tompert.
2021-12-03 15:37:49 +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 9c5e3565c6 Merge branch 'development' into mueller/serializeif-update 2021-11-24 18:53:28 +01:00
Robin Müller 05c4f4fadc
Bugfix for Packet ID getters
- Also added related unittests
2021-11-18 19:56:24 +01:00
Robin Müller 30217aa42b
updated SerializeAdapter.h
- Updates `SerializerAdapter` to also take simple pointer and simply assign the serialized and deSerialized size
- Added related unittests
2021-11-10 18:51:56 +01:00
Robin Müller 6d5eb5b387
Op Divider and bitutility updates
- Added unittests for `PeriodicOperationDivider` and the `bitutil` helpers
- Some API changes: Removed redundant bit part, because these functions are already in a namespace
- Some bugfixes for `PeriodicOperationDivider`
2021-11-10 18:48:02 +01:00
Ulrich Mohr 36aaf3d758 say hi to my new friend valgrind 2021-10-27 20:41:04 +02:00
Robin Müller 2126e6e375 simplified test task 2021-10-26 17:24:47 +02:00
Robin Müller 5f8adc63b7
some more fixes for integration tests 2021-10-26 17:16:21 +02:00
Robin Müller 81bae85825 hotfix for unittests 2021-10-26 17:10:54 +02:00
Ulrich Mohr e86319707f Merge branch 'development' into mueller/example-code-as-test 2021-10-25 14:52:43 +02:00
Robin Müller 6e97bd4db4
added integration test code 2021-10-17 23:27:31 +02:00
Robin Müller e8927d6aa8 moved testtemplate and removed user folder 2021-10-11 17:22:54 +02:00
Robin Müller b2b648c4aa
removed obsolete comment 2021-10-11 17:14:30 +02:00
Robin Müller fc9101cd8f
deleted unrequired files, common include deleted 2021-10-11 17:12:42 +02:00
Robin Müller 3d6f28c48d
printouts disable by default 2021-10-11 16:14:30 +02:00
Robin Müller bb9ae86159
indentation fixes 2021-10-11 16:12:32 +02:00
Robin Müller 19061c3d50
removed obsolete files 2021-10-11 16:04:43 +02:00
Robin Müller 22dbabba38
removed copy and paste error 2021-10-11 16:01:58 +02:00
Robin Müller ac8df112b1
small correction 2021-10-11 16:01:14 +02:00
Robin Müller fb67df6d7f
using testsconfig.h now 2021-10-11 15:45:37 +02:00
Robin Müller a827ec6a92
removed another include 2021-10-11 13:51:08 +02:00
Robin Müller ad3238aa19
removed problematic includes 2021-10-11 13:48:17 +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
Ulrich Mohr f11957d827 Merge pull request 'Updated Countdown and removed Timer' (#486) from gaisser_countdown_timer into development
Reviewed-on: fsfw/fsfw#486
2021-10-04 14:44:55 +02:00
Robin Müller f76f462022
test added 2021-09-30 11:27:14 +02:00
Steffen Gaisser ba4249d658 Merge branch 'development' into gaisser_countdown_timer 2021-09-29 14:27:48 +02:00
Robin Müller 42b5f8a79d
small fix for DLE unittest 2021-09-29 11:49:45 +02:00
Steffen Gaisser 4b62c8aa81 Added tests 2021-09-27 21:53:27 +02:00
Robin Müller 3e3c38e459 Merge branch 'development' into mueller/int-unittest-osal-defines-update 2021-09-15 17:20:08 +02:00
Robin Müller ca65daab1a Merge branch 'development' into mueller/int-unittest-osal-defines-update 2021-09-13 15:10:11 +02:00
Robin Müller 7c7a8a5df7
added improvements from code review 2021-09-11 19:18:18 +02:00
Robin Müller ea573b0523
a few more tests with faulty source data 2021-09-09 11:12:42 +02:00
Robin Müller 3d336c08f2
tests almost complete 2021-09-09 10:47:54 +02:00
Robin Müller d05eb23ea7
debugged and tested non-escaped encoder 2021-09-09 01:28:21 +02:00
Robin Müller 35b53e9a17
continuing tests 2021-09-09 01:06:54 +02:00
Robin Müller b5063117f6
added check to avoid seg fault 2021-09-09 00:02:17 +02:00
Robin Müller 29abef40a4 Merge remote-tracking branch 'upstream/development' into mueller/dle-improvements 2021-09-08 23:39:31 +02:00
Robin Müller dfc44fce07
added DLE encoder test files 2021-09-08 23:33:10 +02:00
Robin Müller 517d52f55d
using better defines 2021-08-16 11:27:46 +02:00
Robin Müller a18706ec53
Make FSFW tests accessible from outside
1. Further reduces the amount of code the user needs to copy and paste
2. Makes FSFW tests more accessible. This can be used to simplify moving mission unit tests
   to the FSFW
3. A lot of include improvements
2021-08-16 10:49:07 +02:00
Robin Müller c3fbe04fc6
all include corrections 2021-08-02 20:58:56 +02:00
Robin Müller f1f167c2d1
using _ instead of - now 2021-08-02 20:55:03 +02:00
Robin Müller dee063e259 Merge branch 'mueller/master' of https://egit.irs.uni-stuttgart.de/fsfw/fsfw into mueller/master 2021-08-02 15:47:49 +02:00
Robin Müller aabc729e77
include changes 2021-08-02 15:47:12 +02:00
Robin Müller c0591c3d24
renamed some folders 2021-08-02 15:31:13 +02:00
Robin Müller 5bbe16081f
added missing CMakeLists.txt 2021-07-30 14:38:20 +02:00
Robin Müller 490ab440e5
smaller tweaks in CMakelists files 2021-07-30 14:21:37 +02:00