diff options
author | Max Horn | 2003-12-24 16:17:13 +0000 |
---|---|---|
committer | Max Horn | 2003-12-24 16:17:13 +0000 |
commit | c76d86c68f6dd89e90687dff3559b32ad99dfc89 (patch) | |
tree | 5c5cf0e1f662919549def77665e4d61799ce2dcb | |
parent | 1af37210a6d402680c7ede3cd96126e6ed7a2634 (diff) | |
download | scummvm-rg350-c76d86c68f6dd89e90687dff3559b32ad99dfc89.tar.gz scummvm-rg350-c76d86c68f6dd89e90687dff3559b32ad99dfc89.tar.bz2 scummvm-rg350-c76d86c68f6dd89e90687dff3559b32ad99dfc89.zip |
added test target to Makefile (so you can do 'make test' now, provided you have cxxtest installed)
svn-id: r11887
-rw-r--r-- | Makefile | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -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 |