/usr/share/cpputest/scripts/README.txt is in cpputest 3.8-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | The New*.sh scripts are helpful for creating the initial files for a new class...
NewClass.sh - for TTDing a new C++ class
NewInterface.sh - for TDDing a new interface along with its Mock
NewCModule.sh - for TDDing a C module
NewCmiModule.sh - for TDDing a C module where there will be multiple
instances of the module's data structure
Run InstallScripts.sh to
1) Copy the scripts to /usr/local/bin
2) Define symbolic links for each of the scripts
Like this:
./scripts/InstallScripts.sh
You might have to add the execute privilege to the shell scripts.
Like this:
chmod *.sh
Using NewClass for example:
cd to the directory where you want the files located
NewClass SomeClass
The script gets you ready for TDD and saves a lot of tedious typing
Creates SomeClass.h SomeClass.cpp SomeClassTest.cpp
with the class and test essentials in place
(If the file already exists, no file is generated)
These scripts are written in bash.
|