Skip to content

Commit

Permalink
Merge branch 'task/#21034-move_mock_generator_from_elos_to_cmocka_ext…
Browse files Browse the repository at this point in the history
…ensions' into 'integration'

Task #21034 : add separate script to run mock_generator directly

See merge request elektrobit/base-os/cmocka_mocks!23
  • Loading branch information
gehwolf committed Aug 13, 2024
2 parents 38252f0 + 8b52264 commit 1321745
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions ci/genmock.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
set -e -u

CMD_PATH=$(realpath "$(dirname "$0")")
BASE_DIR=${CMD_PATH%/*}
MOCK_GENERATOR="$(find ${BASE_DIR}/build/ -name "mock_generator.py" | head -n 1)"

if [ ! -f "$MOCK_GENERATOR" ]; then
echo "mock_generator is not installed"
exit 1
fi

$MOCK_GENERATOR "$@"
2 changes: 1 addition & 1 deletion cmake/project.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: MIT
set(CMOCKA_MOCKS_VERSION 0.55.1)
set(CMOCKA_MOCKS_VERSION 0.55.2)

# Attention: Aside from the version, as many things as possible in this file
# should be put into functions, as this solves potential issues with commands
Expand Down

0 comments on commit 1321745

Please sign in to comment.