Skip to content

Collection of mocking related code extensions needed by other components

License

Notifications You must be signed in to change notification settings

Elektrobit/cmocka_extensions

Repository files navigation

cmocka_extensions

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.

Building

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]

Workspace setup

  1. 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.

  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 examples

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

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 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

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