https://github.com/elektrobit/cmocka_extensions
Collection of mocking related code extensions needed by other components
https://github.com/elektrobit/cmocka_extensions
cmocka tests unit
Last synced: 5 months ago
JSON representation
Collection of mocking related code extensions needed by other components
- Host: GitHub
- URL: https://github.com/elektrobit/cmocka_extensions
- Owner: Elektrobit
- License: mit
- Created: 2023-08-29T11:19:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-25T17:16:21.000Z (8 months ago)
- Last Synced: 2024-11-07T12:31:58.429Z (7 months ago)
- Topics: cmocka, tests, unit
- Language: Python
- Homepage: https://elos-logger.org/
- Size: 470 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cmocka_extensions
A collection of mocking related code extensions for cmocka used by [elos](https://github.com/Elektrobit/elos/) and other projects.
See [the documentation](documentation/documentation.md) for more details and [examples](examples) on how to use it.## Building
cmocka_extensions uses CMake for building:
```bash
cmake -B ./build .
make -C ./build all
make -C ./build install
```or use the CI hooks
```bash
./ci/build.sh [Release]
```### Workspace setup
1. Please run the following git commands after cloning the repository:
```bash
git config core.hooksPath .githooks
```to set the commit message template and to setup the project specific git hooks.
2. 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
```
## running the examplesthe examples also get build with
```bash
./ci/build.sh [Release]
```and can be run with
```bash
./ci/examples-run.sh
```or found in
```
build/
└── /
├── ...
└── examples/
├── ...
└── test/
├── ...
├── extref/
│ ├── ...
│ ├── wrap/
│ │ ├── ...
│ │ └── wrap_extref_example
│ └── weak/
│ ├── ...
│ └── weak_extref_example
└── selfref/
├── ...
└── weak_selfref_example
```## Folders
### ci
Scripts to be used by CI pipelines to build , run various tests and checks.
### debian.native
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.
### documentation
More detailed documentation of the mocked functions.
### src
Contains the actual productive sources.
#### src/cmocka_extensions
Contains code.
# License
MIT License
Copyright (c) [2023] [emlix GmbH, Elektrobit Automotive GmbH]
The full text of the license can be found in the [LICENSE](LICENSE) file in the repository root directory.
## Powered by EB
![]()
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.## Maintainers
* Wolfgang Gehrhardt [email protected] [@gehwolf](https://github.com/gehwolf)
* Thomas Brinker [email protected] [@ThomasBrinker](https://github.com/ThomasBrinker)## Credits
* 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