Mock code generator

gen_mock is shell tool for generation of mock header modules from interface header modules.
Developed in bash code: 100%.
The README is used to introduce the modules and provide instructions on how to install the modules, any machine dependencies it may have and any other information that should be provided before the modules are installed.
Table of Contents

Navigate to release page download and extract release archive.
To install gen_mock type the following
tar xvzf gen_mock-1.0.tar.gz
cd gen_mock-1.0
cp -R ~/sh_tool/bin/ /root/scripts/gen_mock/ver.1.0/
cp -R ~/sh_tool/conf/ /root/scripts/gen_mock/ver.1.0/
cp -R ~/sh_tool/log/ /root/scripts/gen_mock/ver.1.0/
Self generated setup script and execution
./gen_mock_setup.sh
[setup] installing App/Tool/Script gen_mock
Thu Mar 26 07:18:25 PM CET 2026
[setup] clean up App/Tool/Script structure
[setup] copy structure
[setup] remove github editor configuration files
[setup] set App/Tool/Script permission
[setup] create symbolic link of App/Tool/Script
[setup] done
/root/scripts/gen_mock/ver.1.0/
├── bin
│ └── gen_mock.sh
├── conf
│ ├── gen_mock.cfg
│ ├── gen_mock.logo
│ └── gen_mock_util.cfg
└── log
└── gen_mock.log
4 directories, 5 files
lrwxrwxrwx 1 root root 46 Mar 26 19:18 /root/bin/gen_mock -> /root/scripts/gen_mock/ver.1.0/bin/gen_mock.sh
Or You can use docker to create image/container.
# Create symlink for shell tool
ln -s /root/scripts/gen_mock/ver.1.0/bin/gen_mock.sh /root/bin/gen_mock
# Setting PATH
export PATH=${PATH}:/root/bin/
# Start Cadence License Server
gen_mock
gen_mock ver.1.0
Wed Dec 3 07:36:18 PM CET 2025
[check_root] Check permission for current session? [ok]
[check_root] Done
██
░██
██████ █████ ████████ ██████████ ██████ ██████ ░██ ██
██░░░░██ ██░░░██░░██░░░██ ░░██░░██░░██ ██░░░░██ ██░░░░██ ░██ ██
░██ ░██░███████ ░██ ░██ ░██ ░██ ░██░██ ░██░██ ░████
░████████░██░░░░ ░██ ░██ ░██ ░██ ░██░██ ░██░██ ██ ░██░██
░░░░░░░██░░██████ ███ ███ ████ ░██ ░██ ░██░░██████ ░░██████ ░██░░██
███████ ░░░░░░ ░░░ ░░░ ░░░░ ░░ ░░ ░░ ░░░░░░ ░░░░░░ ░░ ░░
░░░░░░░
Info github.io/gen_mock ver.1.0
Issue github.io/issue
Author vroncevic.github.io
[USAGE] gen_mock [OPTIONS]
[OPTIONS]
[PATH] Interface file name path
# Generate mock file for interface
gen_mock com/icom.h
[help | h] print this option
gen_mock requires next modules and libraries
gen_mock is based on MOP.
Shell tool structure
sh_tool/
├── bin/
│ └── gen_mock.sh
├── conf/
│ ├── gen_mock.cfg
│ ├── gen_mock.logo
│ └── gen_mock_util.cfg
└── log/
└── gen_mock.log
More documentation and info at
Copyright (C) 2026 by vroncevic.github.io/gen_mock
gen_mock is free software; you can redistribute it and/or modify it under the same terms as Bash itself, either Bash version 4.2.47 or, at your option, any later version of Bash 4 you may have available.
Lets help and support FSF.