From 40747cfcfd20649acc8df2d7be1d82382ccb87f9 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Tue, 6 Jun 2017 18:18:21 +0200 Subject: [PATCH] add a build-run with debugging-options --- makefile_include.mk | 5 +++-- run.sh | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/makefile_include.mk b/makefile_include.mk index a39d345..77e5e5d 100644 --- a/makefile_include.mk +++ b/makefile_include.mk @@ -63,10 +63,11 @@ CFLAGS += -Wno-type-limits ifdef LTC_DEBUG # compile for DEBUGGING (required for ccmalloc checking!!!) +CFLAGS += -g3 -DLTC_NO_ASM ifneq (,$(strip $(LTC_DEBUG))) -CFLAGS += -g3 -DLTC_NO_ASM -DLTC_TEST_DBG=$(LTC_DEBUG) +CFLAGS += -DLTC_TEST_DBG=$(LTC_DEBUG) else -CFLAGS += -g3 -DLTC_NO_ASM -DLTC_TEST_DBG +CFLAGS += -DLTC_TEST_DBG endif else diff --git a/run.sh b/run.sh index 5c5b392..a0f6af3 100755 --- a/run.sh +++ b/run.sh @@ -22,6 +22,16 @@ else exit 1 fi +rm -f testok.txt +bash build.sh " $1" "$2" "$3 LTC_DEBUG=1" "$4" "$5" +if [ -a testok.txt ] && [ -f testok.txt ]; then + echo +else + echo + echo "Test failed" + exit 1 +fi + rm -f testok.txt bash build.sh " $1" "$2" "$3" "$4" "$5" if [ -a testok.txt ] && [ -f testok.txt ]; then