added test target to Makefile (so you can do 'make test' now, provided you have cxxtest installed)

svn-id: r11887
This commit is contained in:
Max Horn 2003-12-24 16:17:13 +00:00
parent 1af37210a6
commit c76d86c68f

View File

@ -32,7 +32,8 @@ include config.mak
# Uncomment this for stricter compile time code verification
# CXXFLAGS+= -Werror
CXXFLAGS:= -O -Wall -Wuninitialized $(CXXFLAGS)
CXXFLAGS:= -Wall $(CXXFLAGS)
CXXFLAGS+= -O -Wuninitialized
CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas
# Even more warnings...
CXXFLAGS+= -pedantic -Wpointer-arith -Wcast-qual -Wconversion
@ -62,6 +63,24 @@ deb:
fakeroot debian/rules binary
#######################################################################
# Unit/regression tests #
# In order to use 'make test' you have to install cxxtest inside the #
# test/cxxtest dir. Get it from http://cxxtest.sourceforge.net. #
#######################################################################
CXXTEST := test/cxxtest
TESTS := test/common/*.h
CPPFLAGS += -I$(CXXTEST)
test: runner
./runner
runner: runner.o common/libcommon.a
$(CXX) -o $@ $+
runner.cpp: $(TESTS)
$(CXXTEST)/cxxtestgen.py --error-printer -o $@ $+
# Special target to create a application wrapper for Mac OS X
bundle_name = ScummVM.app
bundle: scummvm-static