mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-30 21:00:39 +00:00
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:
parent
1af37210a6
commit
c76d86c68f
21
Makefile
21
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user