Skip to content

Commit

Permalink
Add a test_debug target.
Browse files Browse the repository at this point in the history
This will turn on debugging while testing.
  • Loading branch information
schwern committed Dec 6, 2015
1 parent e77c931 commit 4934938
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
OPTIMIZE = -g
WARNINGS = -W -Wall -ansi -pedantic -Wno-long-long -Wextra -Wdeclaration-after-statement -Wendif-labels -Wconversion -Wcast-qual -Wwrite-strings
INCLUDE = -I.
DEBUG = -DTIME_64_DEBUG
CFLAGS = $(WARNINGS) $(OPTIMIZE) $(INCLUDE)
TIME64_OBJECTS = time64.o

Expand Down Expand Up @@ -37,6 +38,8 @@ $(BLACKBOX_TESTS) : t/tap.c $(TIME64_OBJECTS)
$(GLASSBOX_TESTS) : t/tap.c

test : tap_tests localtime_tests
test_debug: CFLAGS += $(DEBUG)
test_debug: test

localtime_tests: t/localtime_test t/gmtime_test
@which bzdiff > /dev/null || (echo 'You need bzdiff to run these tests'; exit 1)
Expand Down

0 comments on commit 4934938

Please sign in to comment.