Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Trying to fix linux compatibility -> libSDLtest.* is now installed
Browse files Browse the repository at this point in the history
to /usr/local/lib.
  • Loading branch information
mkauppila committed Aug 6, 2011
1 parent 5369c4b commit 6c66d51
Show file tree
Hide file tree
Showing 39 changed files with 32 additions and 24 deletions.
4 changes: 2 additions & 2 deletions test/test-automation/Makefile.am
@@ -1,6 +1,6 @@
ACLOCAL_AMFLAGS = -I acinclude -I build-scripts

SUBDIRS = src/libtest \
SUBDIRS = src/libSDLtest \
src/runner \
tests/testdummy \
tests/testrect \
Expand All @@ -10,7 +10,7 @@ SUBDIRS = src/libtest \
tests/testrwops \
tests/testrender

all-local: install
##all-local: install
install: install-runner install-tests
install-runner:
$(SHELL) build-scripts/install-runner.sh
Expand Down
7 changes: 7 additions & 0 deletions test/test-automation/build-scripts/install-runner.sh
Expand Up @@ -3,4 +3,11 @@
cp src/runner/.libs/runner .
chmod u+x runner

PLATFORM="$(uname)"
if [[ $PLATFORM == "Linux" ]]; then
cp -f src/libSDLtest/.libs/libSDLtest.so.0 /usr/local/lib
elif [[ $PLATFORM == "Darwin" ]]; then
cp -f src/libSDLtest/.libs/libSDLtest.0.dylib /usr/local/lib
fi

echo "Runner installed."
2 changes: 1 addition & 1 deletion test/test-automation/configure.ac
Expand Up @@ -34,7 +34,7 @@ AC_FUNC_FORK

AC_CONFIG_FILES([Makefile
src/runner/Makefile
src/libtest/Makefile
src/libSDLtest/Makefile
tests/testdummy/Makefile
tests/testrect/Makefile
tests/testplatform/Makefile
Expand Down
6 changes: 3 additions & 3 deletions test/test-automation/include/SDL_test.h
Expand Up @@ -23,9 +23,9 @@

#include "../src/runner/logger.h"

#include "../src/libtest/common/common.h"
#include "../src/libtest/common/images.h"
#include "../src/libtest/fuzzer/fuzzer.h"
#include "../src/libSDLtest/common/common.h"
#include "../src/libSDLtest/common/images.h"
#include "../src/libSDLtest/fuzzer/fuzzer.h"

#define TEST_ENABLED 1
#define TEST_DISABLED 0
Expand Down
@@ -1,5 +1,7 @@
lib_LTLIBRARIES = libtest.la
libtest_la_SOURCES = SDL_test.c \
INCLUDE = -I../../include

lib_LTLIBRARIES = libSDLtest.la
libSDLtest_la_SOURCES = SDL_test.c \
logger_helpers.c \
plain_logger.c \
xml_logger.c xml.c \
Expand All @@ -14,9 +16,8 @@ libtest_la_SOURCES = SDL_test.c \
fuzzer/utl_random.c \
fuzzer/fuzzer.c \
../runner/logger.h
INCLUDE = -I../../include
libtest_la_CLAGS = -fPIC -g
libtest_la_LDFLAGS = `sdl-config --libs`
libSDLtest_la_CLAGS = -fPIC -g
libSDLtest_la_LDFLAGS = `sdl-config --libs`

libtest: libtest.la
libtest: libSDLtest.la
echo "Test library compiled."
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions test/test-automation/src/runner/Makefile.am
@@ -1,7 +1,7 @@
INCLUDE = -I../libtest -I../../include
INCLUDE = -I../libSDLtest -I../../include

bin_PROGRAMS = runner
runner_SOURCES = runner.c support.c
runner_LDADD = ../libtest/libtest.la
runner_LDADD = ../libSDLtest/libSDLtest.la
runner_CFLAGS = -W -Wall -Wextra -g `sdl-config --cflags` -DSDL_NO_COMPAT
runner_LDFLAGS = `sdl-config --libs`
6 changes: 3 additions & 3 deletions test/test-automation/src/runner/runner.c
Expand Up @@ -32,10 +32,10 @@
#include "../../include/SDL_test.h"
#include "../../config.h"

#include "../libtest/fuzzer/fuzzer.h"
#include "../libSDLtest/fuzzer/fuzzer.h"

#include "../libtest/plain_logger.h"
#include "../libtest/xml_logger.h"
#include "../libSDLtest/plain_logger.h"
#include "../libSDLtest/xml_logger.h"

#include "logger.h"
#include "support.h"
Expand Down
2 changes: 1 addition & 1 deletion test/test-automation/tests/testaudio/Makefile.am
@@ -1,4 +1,4 @@
lib_LTLIBRARIES = libtestaudio.la
libtestaudio_la_SOURCES = testaudio.c
libtestaudio_la_CLAGS = -fPIC -g
libtestaudio_la_LDFLAGS = `sdl-config --libs` -I ../../src/libtest/.libs/libtest.la
libtestaudio_la_LDFLAGS = `sdl-config --libs` -I ../../src/libSDLtest/.libs/libSDLtest.la
2 changes: 1 addition & 1 deletion test/test-automation/tests/testdummy/Makefile.am
@@ -1,4 +1,4 @@
lib_LTLIBRARIES = libtestdummy.la
libtestdummy_la_SOURCES = testdummy.c
libtestdummy_la_CLAGS = -fPIC -g
libtestdummy_la_LDFLAGS = `sdl-config --libs` -I ../../src/libtest/.libs/libtest.la
libtestdummy_la_LDFLAGS = `sdl-config --libs` -I ../../src/libSDLtest/.libs/libSDLtest.la
2 changes: 1 addition & 1 deletion test/test-automation/tests/testplatform/Makefile.am
@@ -1,4 +1,4 @@
lib_LTLIBRARIES = libtestplatform.la
libtestplatform_la_SOURCES = testplatform.c
libtestplatform_la_CLAGS = -fPIC -g
libtestplatform_la_LDFLAGS = `sdl-config --libs` -I ../../src/libtest/.libs/libtest.la
libtestplatform_la_LDFLAGS = `sdl-config --libs` -I ../../src/libSDLtest/.libs/libSDLtest.la
2 changes: 1 addition & 1 deletion test/test-automation/tests/testrect/Makefile.am
@@ -1,4 +1,4 @@
lib_LTLIBRARIES = libtestrect.la
libtestrect_la_SOURCES = testrect.c
libtestrect_la_CLAGS = -fPIC -g
libtestrect_la_LDFLAGS = `sdl-config --libs` -I ../../src/libtest/.libs/libtest.la
libtestrect_la_LDFLAGS = `sdl-config --libs` -I ../../src/libSDLtest/.libs/libSDLtest.la
2 changes: 1 addition & 1 deletion test/test-automation/tests/testrender/Makefile.am
@@ -1,4 +1,4 @@
lib_LTLIBRARIES = libtestrender.la
libtestrender_la_SOURCES = testrender.c
libtestrender_la_CLAGS = -fPIC -g
libtestrender_la_LDFLAGS = `sdl-config --libs` -I ../../src/libtest/.libs/libtest.la
libtestrender_la_LDFLAGS = `sdl-config --libs` -I ../../src/libSDLtest/.libs/libSDLtest.la
2 changes: 1 addition & 1 deletion test/test-automation/tests/testrwops/Makefile.am
@@ -1,4 +1,4 @@
lib_LTLIBRARIES = libtestrwops.la
libtestrwops_la_SOURCES = testrwops.c
libtestrwops_la_CLAGS = -fPIC -g
libtestrwops_la_LDFLAGS = `sdl-config --libs` -I ../../src/libtest/.libs/libtest.la
libtestrwops_la_LDFLAGS = `sdl-config --libs` -I ../../src/libSDLtest/.libs/libSDLtest.la
2 changes: 1 addition & 1 deletion test/test-automation/tests/testsurface/Makefile.am
@@ -1,4 +1,4 @@
lib_LTLIBRARIES = libtestsurface.la
libtestsurface_la_SOURCES = testsurface.c
libtestsurface_la_CLAGS = -fPIC -g
libtestsurface_la_LDFLAGS = `sdl-config --libs` -I ../../src/libtest/.libs/libtest.la
libtestsurface_la_LDFLAGS = `sdl-config --libs` -I ../../src/libSDLtest/.libs/libSDLtest.la

0 comments on commit 6c66d51

Please sign in to comment.