From 674375e78d29ec6abf3c0ae8ba230c619229c7ce Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 23 Mar 2020 15:44:43 -0400 Subject: Added unit tests for core code in textadept.c. Most of the core is exercised by the Lua test suite, but coverage lapses can be uncovered using the GCC compiler flags "-fprofile-arcs -ftest-coverage".. --- src/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 2dc53fab..330bacc4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -146,7 +146,13 @@ cdk_objs = $(addprefix cdk-, binding.o buttonbox.o cdk.o cdk_display.o \ slider.o traverse.o version.o) # Add debugging symbols and disable optimizations when DEBUG=1. -# Note: In order to profile with gprof (-pg), do not retain symbols in LDFLAGS. +# Notes: +# In order to profile with gprof (-pg), do not retain symbols in LDFLAGS. +# In order to report code coverage with gcov (-fprofile-arcs -ftest-coverage): +# Run test suite with textadept, run gcov textadept.c, then examine +# textadept.c.gcov +# Run test suite with textadept-curses, run gcov textadept-curses.c, then +# examine textadept.c.gcov. ifdef DEBUG CFLAGS += -g -O0 CXXFLAGS += -g -O0 -- cgit v1.2.3