[Scummvm-cvs-logs] CVS: scummvm Makefile,1.54,1.55
Max Horn
fingolfin at users.sourceforge.net
Wed Dec 24 08:18:04 CET 2003
Update of /cvsroot/scummvm/scummvm
In directory sc8-pr-cvs1:/tmp/cvs-serv29325
Modified Files:
Makefile
Log Message:
added test target to Makefile (so you can do 'make test' now, provided you have cxxtest installed)
Index: Makefile
===================================================================
RCS file: /cvsroot/scummvm/scummvm/Makefile,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- Makefile 10 Dec 2003 00:15:20 -0000 1.54
+++ Makefile 24 Dec 2003 16:17:13 -0000 1.55
@@ -32,7 +32,8 @@
# 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
@@ -60,6 +61,24 @@
ln -sf dists/debian;
debian/prepare
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
More information about the Scummvm-git-logs
mailing list