Commit 53be475d authored by Mikaël Salson's avatar Mikaël Salson

Makefile: Improve test speeds

Tests were launched with -O0 option to make debugging easier, in particular
with gdb but also possibly with Valgrind. However this induces a large time
penaly. As we want to improve test speeds (#2254), it should be a good idea to
use -O2.

Note that we do not compile with -DNDEBUG, which would improve speed test only
slightly. It is important that assertions are tested. Unit and functional
tests are the perfect place for that.
parent 1316c7bc
CXX?=g++
INCLUDE=-I ..
OPTIM=-g -O0 $(COVERAGE)
OPTIM=-g -O2 $(COVERAGE)
override CXXFLAGS += -std=c++11 -W -Wall $(OPTIM)
LDLIBS=-lz
SRC= unit-tests/tests.cpp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment