From 24ca1fde390725109071441772bf00a915126ab6 Mon Sep 17 00:00:00 2001 From: Markus Kauppila Date: Wed, 20 Jul 2011 23:37:58 +0300 Subject: [PATCH] Fixed linking issue concerning test suites. Fixed linux build (it compiles and runs properly). --- test/test-automation/Makefile.am | 4 ++++ test/test-automation/configure.ac | 2 +- test/test-automation/testaudio/Makefile.am | 4 ++-- test/test-automation/testdummy/Makefile.am | 3 +-- test/test-automation/testdummy/testdummy.c | 2 +- test/test-automation/testplatform/Makefile.am | 4 ++-- test/test-automation/testrect/Makefile.am | 4 ++-- test/test-automation/testsurface/Makefile.am | 5 ++--- 8 files changed, 15 insertions(+), 13 deletions(-) diff --git a/test/test-automation/Makefile.am b/test/test-automation/Makefile.am index c77ec1fbc..d4959f47a 100644 --- a/test/test-automation/Makefile.am +++ b/test/test-automation/Makefile.am @@ -14,6 +14,10 @@ libtest_la_SOURCES = SDL_test.c logger_helpers.c plain_logger.c xml_logger.c xml libtest_la_CLAGS = -fPIC -g libtest_la_LDFLAGS = `sdl-config --libs` +libtest: libtest.la + echo "Test library compiled." + +all-local: install-tests install: install-tests install-tests: $(SHELL) build-scripts/install-tests.sh diff --git a/test/test-automation/configure.ac b/test/test-automation/configure.ac index 3865547e3..4b7468604 100644 --- a/test/test-automation/configure.ac +++ b/test/test-automation/configure.ac @@ -44,4 +44,4 @@ echo "" echo "========================================" echo "" echo "./configure ready!" -echo "you're ready to run: 'make && make install'" +echo "you're ready to run: 'make libtest && make'" diff --git a/test/test-automation/testaudio/Makefile.am b/test/test-automation/testaudio/Makefile.am index e888033a7..ee9a0d14d 100644 --- a/test/test-automation/testaudio/Makefile.am +++ b/test/test-automation/testaudio/Makefile.am @@ -1,4 +1,4 @@ lib_LTLIBRARIES = libtestaudio.la -libtestaudio_la_SOURCES = testaudio.c ../SDL_test.c ../logger_helpers.c ../plain_logger.c ../xml_logger.c ../xml.c +libtestaudio_la_SOURCES = testaudio.c libtestaudio_la_CLAGS = -fPIC -g -libtestaudio_la_LDFLAGS = `sdl-config --libs` +libtestaudio_la_LDFLAGS = `sdl-config --libs` -I ../.libs/libtest.la diff --git a/test/test-automation/testdummy/Makefile.am b/test/test-automation/testdummy/Makefile.am index a2734afea..cfd098c17 100644 --- a/test/test-automation/testdummy/Makefile.am +++ b/test/test-automation/testdummy/Makefile.am @@ -1,5 +1,4 @@ lib_LTLIBRARIES = libtestdummy.la libtestdummy_la_SOURCES = testdummy.c libtestdummy_la_CLAGS = -fPIC -g -libtestdummy_la_LIBADD = ../libtest.la -libtestdummy_la_LDFLAGS = `sdl-config --libs` +libtestdummy_la_LDFLAGS = `sdl-config --libs` -I ../.libs/libtest.la diff --git a/test/test-automation/testdummy/testdummy.c b/test/test-automation/testdummy/testdummy.c index a4f740bc6..ec2dcbfdf 100644 --- a/test/test-automation/testdummy/testdummy.c +++ b/test/test-automation/testdummy/testdummy.c @@ -95,7 +95,7 @@ void dummycase2(void *arg) { char *msg = "eello"; - msg[0] = 'H'; + //msg[0] = 'H'; AssertTrue(1, "Assert message"); } diff --git a/test/test-automation/testplatform/Makefile.am b/test/test-automation/testplatform/Makefile.am index 08d823495..82818e719 100644 --- a/test/test-automation/testplatform/Makefile.am +++ b/test/test-automation/testplatform/Makefile.am @@ -1,4 +1,4 @@ lib_LTLIBRARIES = libtestplatform.la -libtestplatform_la_SOURCES = testplatform.c ../SDL_test.c ../logger_helpers.c ../plain_logger.c ../xml_logger.c ../xml.c +libtestplatform_la_SOURCES = testplatform.c libtestplatform_la_CLAGS = -fPIC -g -libtestplatform_la_LDFLAGS = `sdl-config --libs` +libtestplatform_la_LDFLAGS = `sdl-config --libs` -I ../.libs/libtest.la diff --git a/test/test-automation/testrect/Makefile.am b/test/test-automation/testrect/Makefile.am index e79e85ef0..27219bea2 100644 --- a/test/test-automation/testrect/Makefile.am +++ b/test/test-automation/testrect/Makefile.am @@ -1,4 +1,4 @@ lib_LTLIBRARIES = libtestrect.la -libtestrect_la_SOURCES = testrect.c ../SDL_test.c ../logger_helpers.c ../plain_logger.c ../xml_logger.c ../xml.c +libtestrect_la_SOURCES = testrect.c libtestrect_la_CLAGS = -fPIC -g -libtestrect_la_LDFLAGS = `sdl-config --libs` +libtestrect_la_LDFLAGS = `sdl-config --libs` -I ../.libs/libtest.la diff --git a/test/test-automation/testsurface/Makefile.am b/test/test-automation/testsurface/Makefile.am index 38f54d26c..27826d5d8 100644 --- a/test/test-automation/testsurface/Makefile.am +++ b/test/test-automation/testsurface/Makefile.am @@ -1,5 +1,4 @@ lib_LTLIBRARIES = libtestsurface.la -libtestsurface_la_SOURCES = testsurface.c ../SDL_test.c ../logger_helpers.c ../plain_logger.c ../xml_logger.c ../xml.c \ - ../common/common.c ../common/img_blit.c ../common/img_blitblend.c ../common/img_face.c ../common/img_primitives.c ../common/img_primitivesblend.c +libtestsurface_la_SOURCES = testsurface.c libtestsurface_la_CLAGS = -fPIC -g -libtestsurface_la_LDFLAGS = `sdl-config --libs` +libtestsurface_la_LDFLAGS = `sdl-config --libs` -I ../.libs/libtest.la