diff options
author | Jordi Vilalta Prat | 2009-03-21 22:11:16 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2009-03-21 22:11:16 +0000 |
commit | 16cd161df51374e0a28288313fcec46c8229beab (patch) | |
tree | b5e0a209262cd60bdaffb28532d4497c537f6f70 /test | |
parent | 0c5959ce8a946c5a98da86d362cbba555e3198e0 (diff) | |
download | scummvm-rg350-16cd161df51374e0a28288313fcec46c8229beab.tar.gz scummvm-rg350-16cd161df51374e0a28288313fcec46c8229beab.tar.bz2 scummvm-rg350-16cd161df51374e0a28288313fcec46c8229beab.zip |
Fix running the testsuite when building outside the source tree
svn-id: r39601
Diffstat (limited to 'test')
-rw-r--r-- | test/module.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/module.mk b/test/module.mk index bf6a9efe8a..64cb34c7ac 100644 --- a/test/module.mk +++ b/test/module.mk @@ -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: test/runner 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 |