diff --git a/test/test-automation/Makefile.am b/test/test-automation/Makefile.am index b8e04ebe1..b6c0134ff 100644 --- a/test/test-automation/Makefile.am +++ b/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 \ @@ -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 diff --git a/test/test-automation/build-scripts/install-runner.sh b/test/test-automation/build-scripts/install-runner.sh index c4f42f785..bef675389 100755 --- a/test/test-automation/build-scripts/install-runner.sh +++ b/test/test-automation/build-scripts/install-runner.sh @@ -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." diff --git a/test/test-automation/configure.ac b/test/test-automation/configure.ac index 3de438d3b..7243e1519 100644 --- a/test/test-automation/configure.ac +++ b/test/test-automation/configure.ac @@ -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 diff --git a/test/test-automation/include/SDL_test.h b/test/test-automation/include/SDL_test.h index 81ce651a3..920d9e8f5 100644 --- a/test/test-automation/include/SDL_test.h +++ b/test/test-automation/include/SDL_test.h @@ -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 diff --git a/test/test-automation/src/libtest/Makefile.am b/test/test-automation/src/libSDLtest/Makefile.am similarity index 72% rename from test/test-automation/src/libtest/Makefile.am rename to test/test-automation/src/libSDLtest/Makefile.am index 47b052cfd..c4c671d47 100644 --- a/test/test-automation/src/libtest/Makefile.am +++ b/test/test-automation/src/libSDLtest/Makefile.am @@ -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 \ @@ -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." diff --git a/test/test-automation/src/libtest/SDL_test.c b/test/test-automation/src/libSDLtest/SDL_test.c similarity index 100% rename from test/test-automation/src/libtest/SDL_test.c rename to test/test-automation/src/libSDLtest/SDL_test.c diff --git a/test/test-automation/src/libtest/common/common.c b/test/test-automation/src/libSDLtest/common/common.c similarity index 100% rename from test/test-automation/src/libtest/common/common.c rename to test/test-automation/src/libSDLtest/common/common.c diff --git a/test/test-automation/src/libtest/common/common.h b/test/test-automation/src/libSDLtest/common/common.h similarity index 100% rename from test/test-automation/src/libtest/common/common.h rename to test/test-automation/src/libSDLtest/common/common.h diff --git a/test/test-automation/src/libtest/common/images.h b/test/test-automation/src/libSDLtest/common/images.h similarity index 100% rename from test/test-automation/src/libtest/common/images.h rename to test/test-automation/src/libSDLtest/common/images.h diff --git a/test/test-automation/src/libtest/common/img_blit.c b/test/test-automation/src/libSDLtest/common/img_blit.c similarity index 100% rename from test/test-automation/src/libtest/common/img_blit.c rename to test/test-automation/src/libSDLtest/common/img_blit.c diff --git a/test/test-automation/src/libtest/common/img_blitblend.c b/test/test-automation/src/libSDLtest/common/img_blitblend.c similarity index 100% rename from test/test-automation/src/libtest/common/img_blitblend.c rename to test/test-automation/src/libSDLtest/common/img_blitblend.c diff --git a/test/test-automation/src/libtest/common/img_face.c b/test/test-automation/src/libSDLtest/common/img_face.c similarity index 100% rename from test/test-automation/src/libtest/common/img_face.c rename to test/test-automation/src/libSDLtest/common/img_face.c diff --git a/test/test-automation/src/libtest/common/img_primitives.c b/test/test-automation/src/libSDLtest/common/img_primitives.c similarity index 100% rename from test/test-automation/src/libtest/common/img_primitives.c rename to test/test-automation/src/libSDLtest/common/img_primitives.c diff --git a/test/test-automation/src/libtest/common/img_primitivesblend.c b/test/test-automation/src/libSDLtest/common/img_primitivesblend.c similarity index 100% rename from test/test-automation/src/libtest/common/img_primitivesblend.c rename to test/test-automation/src/libSDLtest/common/img_primitivesblend.c diff --git a/test/test-automation/src/libtest/fuzzer/fuzzer.c b/test/test-automation/src/libSDLtest/fuzzer/fuzzer.c similarity index 100% rename from test/test-automation/src/libtest/fuzzer/fuzzer.c rename to test/test-automation/src/libSDLtest/fuzzer/fuzzer.c diff --git a/test/test-automation/src/libtest/fuzzer/fuzzer.h b/test/test-automation/src/libSDLtest/fuzzer/fuzzer.h similarity index 100% rename from test/test-automation/src/libtest/fuzzer/fuzzer.h rename to test/test-automation/src/libSDLtest/fuzzer/fuzzer.h diff --git a/test/test-automation/src/libtest/fuzzer/utl_crc32.c b/test/test-automation/src/libSDLtest/fuzzer/utl_crc32.c old mode 100755 new mode 100644 similarity index 100% rename from test/test-automation/src/libtest/fuzzer/utl_crc32.c rename to test/test-automation/src/libSDLtest/fuzzer/utl_crc32.c diff --git a/test/test-automation/src/libtest/fuzzer/utl_crc32.h b/test/test-automation/src/libSDLtest/fuzzer/utl_crc32.h old mode 100755 new mode 100644 similarity index 100% rename from test/test-automation/src/libtest/fuzzer/utl_crc32.h rename to test/test-automation/src/libSDLtest/fuzzer/utl_crc32.h diff --git a/test/test-automation/src/libtest/fuzzer/utl_md5.c b/test/test-automation/src/libSDLtest/fuzzer/utl_md5.c old mode 100755 new mode 100644 similarity index 100% rename from test/test-automation/src/libtest/fuzzer/utl_md5.c rename to test/test-automation/src/libSDLtest/fuzzer/utl_md5.c diff --git a/test/test-automation/src/libtest/fuzzer/utl_md5.h b/test/test-automation/src/libSDLtest/fuzzer/utl_md5.h old mode 100755 new mode 100644 similarity index 100% rename from test/test-automation/src/libtest/fuzzer/utl_md5.h rename to test/test-automation/src/libSDLtest/fuzzer/utl_md5.h diff --git a/test/test-automation/src/libtest/fuzzer/utl_random.c b/test/test-automation/src/libSDLtest/fuzzer/utl_random.c old mode 100755 new mode 100644 similarity index 100% rename from test/test-automation/src/libtest/fuzzer/utl_random.c rename to test/test-automation/src/libSDLtest/fuzzer/utl_random.c diff --git a/test/test-automation/src/libtest/fuzzer/utl_random.h b/test/test-automation/src/libSDLtest/fuzzer/utl_random.h old mode 100755 new mode 100644 similarity index 100% rename from test/test-automation/src/libtest/fuzzer/utl_random.h rename to test/test-automation/src/libSDLtest/fuzzer/utl_random.h diff --git a/test/test-automation/src/libtest/logger_helpers.c b/test/test-automation/src/libSDLtest/logger_helpers.c similarity index 100% rename from test/test-automation/src/libtest/logger_helpers.c rename to test/test-automation/src/libSDLtest/logger_helpers.c diff --git a/test/test-automation/src/libtest/logger_helpers.h b/test/test-automation/src/libSDLtest/logger_helpers.h similarity index 100% rename from test/test-automation/src/libtest/logger_helpers.h rename to test/test-automation/src/libSDLtest/logger_helpers.h diff --git a/test/test-automation/src/libtest/plain_logger.c b/test/test-automation/src/libSDLtest/plain_logger.c similarity index 100% rename from test/test-automation/src/libtest/plain_logger.c rename to test/test-automation/src/libSDLtest/plain_logger.c diff --git a/test/test-automation/src/libtest/plain_logger.h b/test/test-automation/src/libSDLtest/plain_logger.h similarity index 100% rename from test/test-automation/src/libtest/plain_logger.h rename to test/test-automation/src/libSDLtest/plain_logger.h diff --git a/test/test-automation/src/libtest/xml.c b/test/test-automation/src/libSDLtest/xml.c similarity index 100% rename from test/test-automation/src/libtest/xml.c rename to test/test-automation/src/libSDLtest/xml.c diff --git a/test/test-automation/src/libtest/xml.h b/test/test-automation/src/libSDLtest/xml.h similarity index 100% rename from test/test-automation/src/libtest/xml.h rename to test/test-automation/src/libSDLtest/xml.h diff --git a/test/test-automation/src/libtest/xml_logger.c b/test/test-automation/src/libSDLtest/xml_logger.c similarity index 100% rename from test/test-automation/src/libtest/xml_logger.c rename to test/test-automation/src/libSDLtest/xml_logger.c diff --git a/test/test-automation/src/libtest/xml_logger.h b/test/test-automation/src/libSDLtest/xml_logger.h similarity index 100% rename from test/test-automation/src/libtest/xml_logger.h rename to test/test-automation/src/libSDLtest/xml_logger.h diff --git a/test/test-automation/src/runner/Makefile.am b/test/test-automation/src/runner/Makefile.am index 4e8cfef86..f9e14ab37 100644 --- a/test/test-automation/src/runner/Makefile.am +++ b/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` diff --git a/test/test-automation/src/runner/runner.c b/test/test-automation/src/runner/runner.c index fc13d5991..1ef933c05 100644 --- a/test/test-automation/src/runner/runner.c +++ b/test/test-automation/src/runner/runner.c @@ -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" diff --git a/test/test-automation/tests/testaudio/Makefile.am b/test/test-automation/tests/testaudio/Makefile.am index e8feb34c0..6916c49b5 100644 --- a/test/test-automation/tests/testaudio/Makefile.am +++ b/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 diff --git a/test/test-automation/tests/testdummy/Makefile.am b/test/test-automation/tests/testdummy/Makefile.am index 51e29dc53..2f63bf1ec 100644 --- a/test/test-automation/tests/testdummy/Makefile.am +++ b/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 diff --git a/test/test-automation/tests/testplatform/Makefile.am b/test/test-automation/tests/testplatform/Makefile.am index d0fec212e..0521e7372 100644 --- a/test/test-automation/tests/testplatform/Makefile.am +++ b/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 diff --git a/test/test-automation/tests/testrect/Makefile.am b/test/test-automation/tests/testrect/Makefile.am index b80651287..f45899676 100644 --- a/test/test-automation/tests/testrect/Makefile.am +++ b/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 diff --git a/test/test-automation/tests/testrender/Makefile.am b/test/test-automation/tests/testrender/Makefile.am index 64495ea15..314322192 100644 --- a/test/test-automation/tests/testrender/Makefile.am +++ b/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 diff --git a/test/test-automation/tests/testrwops/Makefile.am b/test/test-automation/tests/testrwops/Makefile.am index 534253ab2..d14f98cb0 100644 --- a/test/test-automation/tests/testrwops/Makefile.am +++ b/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 diff --git a/test/test-automation/tests/testsurface/Makefile.am b/test/test-automation/tests/testsurface/Makefile.am index f132ba21a..06fa5ea9a 100644 --- a/test/test-automation/tests/testsurface/Makefile.am +++ b/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