mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
When testing, build with -DDEBUG.
This commit is contained in:
parent
4bf0ef5896
commit
72c5539412
@ -11,4 +11,4 @@ CHECKER=$LLVM/llvm/tools/clang/tools/scan-build/ccc-analyzer
|
||||
$LLVM/llvm/tools/clang/tools/scan-build/scan-build \
|
||||
-analyze-headers \
|
||||
--use-analyzer=$LLVM/install/bin/clang \
|
||||
clang $TARGET
|
||||
clang -DDEBUG $TARGET
|
||||
|
@ -9,5 +9,5 @@ LLVM=$HOME/llvm
|
||||
|
||||
$LLVM/install/bin/clang -Weverything -O \
|
||||
-Wno-unreachable-code -Wno-padded -Wno-disabled-macro-expansion \
|
||||
$TARGET
|
||||
-DDEBUG $TARGET
|
||||
rm -f a.out
|
||||
|
@ -13,7 +13,7 @@ if [ ! -e test.py ]; then
|
||||
fi
|
||||
if [ \( ! -x a.out \) -o \( ../darkhttpd.c -nt a.out \) ]; then
|
||||
echo "===> building a.out, darkhttpd.gcno"
|
||||
$CC -g -O2 -fprofile-arcs -ftest-coverage ../darkhttpd.c || exit 1
|
||||
$CC -g -O2 -fprofile-arcs -ftest-coverage -DDEBUG ../darkhttpd.c || exit 1
|
||||
fi
|
||||
if [ -e $DIR ]; then
|
||||
rm -rf $DIR || exit 1
|
||||
|
@ -2,6 +2,6 @@
|
||||
AFL_PATH=~/afl/afl-1.06b
|
||||
export AFL_PATH
|
||||
TMP=/dev/shm/darkhttpd
|
||||
AFL_HARDEN=1 $AFL_PATH/afl-gcc -O3 fuzz_make_safe_uri.c -o fuzz_make_safe_uri
|
||||
AFL_HARDEN=1 $AFL_PATH/afl-gcc -O3 -DDEBUG fuzz_make_safe_uri.c -o fuzz_make_safe_uri
|
||||
mkdir $TMP
|
||||
$AFL_PATH/afl-fuzz -i fuzz_testcases -o $TMP ./fuzz_make_safe_uri
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
TARGET=$(dirname $0)/../darkhttpd.c
|
||||
|
||||
gcc -O -fstrict-aliasing \
|
||||
gcc -O2 -fstrict-aliasing \
|
||||
--all-warnings --extra-warnings \
|
||||
$TARGET
|
||||
-DDEBUG $TARGET
|
||||
rm -f a.out
|
||||
|
Loading…
Reference in New Issue
Block a user