Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test coverage, and refactored decompile.cc
- Loading branch information
Mark Carter
committed
May 4, 2018
1 parent
15de609
commit 936cb25
Showing
6 changed files
with
45 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
TR01: Formatting of cell values. | ||
TR02: command creation. | ||
TR03: Tcl/swig - OBSOLETE | ||
TR04: atlast Forth subsystem - OBSOLETE | ||
|
||
TR05: Legacy Oleo | ||
TR06: Magic numbers | ||
TR07: coverage testing | ||
|
||
|
||
OBSOLETE: | ||
TR03: Tcl/swig - OBSOLETE | ||
TR04: atlast Forth subsystem - OBSOLETE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
TR07: coverage testing | ||
=========================================================================== | ||
2018-05-05 | ||
|
||
|
||
Compile and link using the flag `--coverage' | ||
|
||
Run the program as usual. This will create a bunch of files of files in | ||
the `src' directory. | ||
|
||
`cd src' directory | ||
|
||
To obtain coverage info on a particular file, e.g. `decompile.cc', run: | ||
gcov decompile.cc | ||
This creates the file decompile.cc.gcov | ||
|
||
Inspect coverage using `less decompile.cc.gcov'. Interpreting it: | ||
https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html | ||
Simply, the columns are: | ||
1. Number of executions. `-:' means unexcutable code, `#####' means | ||
unexecuted code | ||
2. line number | ||
3. Code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ if [ ! -f configure ]; then | |
autoreconf -iv | ||
fi | ||
|
||
#COV="--coverage" | ||
DBG=--with-debug | ||
#GPROF=--with-gprof | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,7 @@ parse.cc | |
parse.hh | ||
posixtm.cc | ||
posixtm.hh | ||
|
||
*.gcda | ||
*.gcno | ||
*.gcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters