[Scummvm-cvs-logs] SF.net SVN: scummvm: [21490] scummvm/trunk

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Wed Mar 29 02:36:06 CEST 2006


Revision: 21490
Author:   fingolfin
Date:     2006-03-29 02:35:45 -0800 (Wed, 29 Mar 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21490&view=rev

Log Message:
-----------
Added a minimal README for our unit tests, and moved their build rule to a new test/module.mk file

Modified Paths:
--------------
    scummvm/trunk/Makefile
    scummvm/trunk/Makefile.common

Added Paths:
-----------
    scummvm/trunk/test/README
    scummvm/trunk/test/module.mk
Modified: scummvm/trunk/Makefile
===================================================================
--- scummvm/trunk/Makefile	2006-03-29 10:27:43 UTC (rev 21489)
+++ scummvm/trunk/Makefile	2006-03-29 10:35:45 UTC (rev 21490)
@@ -68,24 +68,7 @@
 	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
 bundle_name = ScummVM.app
 bundle: scummvm-static
@@ -159,4 +142,4 @@
 	u2d $(WIN32PATH)/*.txt
 
 
-.PHONY: deb bundle test osxsnap win32dist dist install uninstall
+.PHONY: deb bundle osxsnap win32dist dist install uninstall

Modified: scummvm/trunk/Makefile.common
===================================================================
--- scummvm/trunk/Makefile.common	2006-03-29 10:27:43 UTC (rev 21489)
+++ scummvm/trunk/Makefile.common	2006-03-29 10:35:45 UTC (rev 21490)
@@ -31,7 +31,7 @@
 # Module settings
 ######################################################################
 
-MODULES := tools base $(MODULES)
+MODULES := test tools base $(MODULES)
 
 -include $(srcdir)/engines/module.mk
 

Added: scummvm/trunk/test/README
===================================================================
--- scummvm/trunk/test/README	                        (rev 0)
+++ scummvm/trunk/test/README	2006-03-29 10:35:45 UTC (rev 21490)
@@ -0,0 +1,5 @@
+This directory contains some unit tests for ScummVM. They are based on
+CxxTest <http://cxxtest.sourceforge.net/>, which you can find in the cxxtest
+subdirectory, including its manual.
+
+To run the unit tests, simply use "make test".
\ No newline at end of file


Property changes on: scummvm/trunk/test/README
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:keywords
   + "Date Rev Author URL Id"
Name: svn:eol-style
   + native

Added: scummvm/trunk/test/module.mk
===================================================================
--- scummvm/trunk/test/module.mk	                        (rev 0)
+++ scummvm/trunk/test/module.mk	2006-03-29 10:35:45 UTC (rev 21490)
@@ -0,0 +1,17 @@
+######################################################################
+# Unit/regression tests, based on CxxTest.
+# Use the 'test' target to run them.
+# Edit 'TESTS' to add more tests.
+######################################################################
+
+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  $@ $+
+
+.PHONY: test


Property changes on: scummvm/trunk/test/module.mk
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list