浏览代码

add a build-run with debugging-options

Steffen Jaeckel 8 年之前
父节点
当前提交
40747cfcfd
共有 2 个文件被更改,包括 13 次插入2 次删除
  1. 3 2
      makefile_include.mk
  2. 10 0
      run.sh

+ 3 - 2
makefile_include.mk

@@ -63,10 +63,11 @@ CFLAGS += -Wno-type-limits
 
 
 ifdef LTC_DEBUG
 ifdef LTC_DEBUG
 # compile for DEBUGGING (required for ccmalloc checking!!!)
 # compile for DEBUGGING (required for ccmalloc checking!!!)
+CFLAGS += -g3 -DLTC_NO_ASM
 ifneq (,$(strip $(LTC_DEBUG)))
 ifneq (,$(strip $(LTC_DEBUG)))
-CFLAGS += -g3 -DLTC_NO_ASM -DLTC_TEST_DBG=$(LTC_DEBUG)
+CFLAGS += -DLTC_TEST_DBG=$(LTC_DEBUG)
 else
 else
-CFLAGS += -g3 -DLTC_NO_ASM -DLTC_TEST_DBG
+CFLAGS += -DLTC_TEST_DBG
 endif
 endif
 else
 else
 
 

+ 10 - 0
run.sh

@@ -22,6 +22,16 @@ else
    exit 1
    exit 1
 fi
 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
 rm -f testok.txt
 bash build.sh " $1" "$2" "$3" "$4" "$5"
 bash build.sh " $1" "$2" "$3" "$4" "$5"
 if [ -a testok.txt ] && [ -f testok.txt ]; then
 if [ -a testok.txt ] && [ -f testok.txt ]; then