[Scummvm-cvs-logs] SF.net SVN: scummvm:[39601] scummvm/trunk/test/module.mk

jvprat at users.sourceforge.net jvprat at users.sourceforge.net
Sat Mar 21 23:11:16 CET 2009


Revision: 39601
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39601&view=rev
Author:   jvprat
Date:     2009-03-21 22:11:16 +0000 (Sat, 21 Mar 2009)

Log Message:
-----------
Fix running the testsuite when building outside the source tree

Modified Paths:
--------------
    scummvm/trunk/test/module.mk

Modified: scummvm/trunk/test/module.mk
===================================================================
--- scummvm/trunk/test/module.mk	2009-03-21 21:48:44 UTC (rev 39600)
+++ scummvm/trunk/test/module.mk	2009-03-21 22:11:16 UTC (rev 39601)
@@ -5,12 +5,12 @@
 #
 ######################################################################
 
-TESTS        := test/common/*.h test/sound/*.h
+TESTS        := $(srcdir)/test/common/*.h $(srcdir)/test/sound/*.h
 TEST_LIBS    := common/libcommon.a sound/libsound.a
 
 #
 TEST_FLAGS   := --runner=StdioPrinter
-TEST_CFLAGS  := -Itest/cxxtest
+TEST_CFLAGS  := -I$(srcdir)/test/cxxtest
 TEST_LDFLAGS :=
 
 
@@ -24,7 +24,8 @@
 test/runner: test/runner.cpp $(TEST_LIBS)
 	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TEST_LDFLAGS) $(TEST_CFLAGS) -o $@ $+
 test/runner.cpp: $(TESTS)
-	test/cxxtest/cxxtestgen.py $(TEST_FLAGS) -o $@ $+
+	@mkdir -p test
+	$(srcdir)/test/cxxtest/cxxtestgen.py $(TEST_FLAGS) -o $@ $+
 
 
 clean: clean-test


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