A collection of mocking related code extensions for cmocka used by elos and other projects. See the documentation for more details and examples on how to use it.
cmocka_extensions uses CMake for building:
cmake -B ./build .
make -C ./build all
make -C ./build install
or use the CI hooks
./ci/build.sh [Release]
-
Please run the following git commands after cloning the repository:
git config core.hooksPath .githooks
to set the commit message template and to setup the project specific git hooks.
-
Usually it is a good idea to create a symlink to the compilation database created by cmake in the build directory. Run therefore:
ln -s build/Debug/cmake/compile_commands.json
or
ln -s build/Release/cmake/compile_commands.json
the examples also get build with
./ci/build.sh [Release]
and can be run with
./ci/examples-run.sh
or found in
build/
└── <Debug|Release>/
├── ...
└── examples/
├── ...
└── test/
├── ...
├── extref/
│ ├── ...
│ ├── wrap/
│ │ ├── ...
│ │ └── wrap_extref_example
│ └── weak/
│ ├── ...
│ └── weak_extref_example
└── selfref/
├── ...
└── weak_selfref_example
Scripts to be used by CI pipelines to build , run various tests and checks.
Contains Debian packaging scripts for building the current source tree as .deb packages. This is primarily for CI pipelines to automatically verify if the packages are buildable or if anything needs to be changed.
See debian.native/README.md
for more information.
More detailed documentation of the mocked functions.
Contains the actual productive sources.
Contains code.
MIT License
Copyright (c) [2023] [emlix GmbH, Elektrobit Automotive GmbH]
The full text of the license can be found in the LICENSE file in the repository root directory.
elos is powered by elektrobit automotive gmbh. Elektrobit is an automotive software company and developer of embedded software products for ECU, AUTOSAR, automated driving, connected vehicles and UX. elos isan integrated part of EB corbos Linux – built on Ubuntu is an open-source operating system for high-performance computing, leveraging the rich functionality of Linux while meeting security and industry regulations.- Wolfgang Gehrhardt wolfgang.gehrhardt@emlix.com @gehwolf
- Thomas Brinker thomas.brinker@emlix.com @ThomasBrinker
- Andreas Schickedanz
- Andreas Zdziarstek
- Anja Lehwess-Litzmann
- Annika Schmitt
- Anton Hillerband
- Benedikt Braunger
- Christian Steiger
- Daniel Glöckner
- Fabian Godehardt
- Friedrich Schwedler
- Isaac True
- Joerg Vehlow
- Maryniuk Bogdan
- Rainer Müller
- Sabrina Otto
- Thomas Brinker
- Vignesh Jayaraman
- Wolfgang Gehrhardt