Currently there are two ways to extract the compilation and linking information from the project
- automatic, if the project has
CMakeList.txt
- manual, if the project has any other build procedure.
Let implement the thirds automatic way, if the the project has the utbot_build.sh script in the project root.
The utbot_build.sh script is implemented by author of the project and build the project into the build project folder.
Here the build project folder is the folder that is mentioned as a build folder in the UTBotCpp wizard setup.
Then the procedure of UTBotCpp configuration is following:
- UTBotCpp creates the build folder at the configuration stage as it made it earlier
- UTBotCpp is looking for the
utbot_build.sh script at the project root and if does not exists, returns to fallback scenario
- If the
utbot_build.sh script exists, UTBotCpp creates the wrapper script utbot_configure.sh in the build folder with the context
#!/bin/bash
# This file is automatically generated by UnitTestBot. For further information see https://unittestbot.org
cd ..
./utbot_build.sh
The wrapper need for the run of bear configurator from the build folder.
Currently there are two ways to extract the compilation and linking information from the project
CMakeList.txtLet implement the thirds automatic way, if the the project has the
utbot_build.shscript in the project root.The
utbot_build.shscript is implemented by author of the project and build the project into thebuildproject folder.Here the
buildproject folder is the folder that is mentioned as a build folder in the UTBotCpp wizard setup.Then the procedure of UTBotCpp configuration is following:
utbot_build.shscript at the project root and if does not exists, returns to fallback scenarioutbot_build.shscript exists, UTBotCpp creates the wrapper scriptutbot_configure.shin the build folder with the contextThe wrapper need for the run of
bearconfigurator from the build folder.