generate testdata generators for MochaGen
- Clone the repository to your local machine.
- Navigate to the project directory.
- Modify the
src/main.cpp
for your own propose. - Create a build directory:
mkdir build && cd build
. - Generate the build files:
cmake ..
. - Build the project:
make install
. - Run your generator under
bin/mochagen-assembler
To use this CMake project, follow these steps:
- Clone the repository to your local machine.
- Navigate to the project directory.
- Create a build directory:
mkdir build && cd build
. - Generate the build files:
cmake ..
. - Build the project:
make install
. - Create Your Own
generator.cpp
, and link thelibassembler.a
to compile your generator.
g++ -o your_generator generator.cpp -std=c++17 -I/<path_to_project>/include/ -L/<path_to_project>/lib/ -lassembler
Make sure to replace <executable_name>
with the actual name of the generated executable.
Note: You may need to install any required dependencies before building the project.
include the headers for parsing json and generating testdata
main.cpp parses json and generates gen.cpp
test the functions in src
output of the test