From cdd56f176b97a9b17ede4f9f8b0295383ea8de70 Mon Sep 17 00:00:00 2001 From: Markus Kauppila Date: Thu, 4 Aug 2011 20:52:39 +0300 Subject: [PATCH] Added empty test suite for render tests. --- test/test-automation/Makefile.am | 2 +- .../build-scripts/install-tests.sh | 2 +- test/test-automation/configure.ac | 4 +- test/test-automation/testrender/Makefile.am | 4 ++ test/test-automation/testrender/testrender.c | 39 +++++++++++++++++++ 5 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 test/test-automation/testrender/Makefile.am create mode 100644 test/test-automation/testrender/testrender.c diff --git a/test/test-automation/Makefile.am b/test/test-automation/Makefile.am index a4f7abfdb..75869f38a 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 = testdummy testrect testplatform testaudio testsurface testrwops +SUBDIRS = testdummy testrect testplatform testaudio testsurface testrwops testrender runnerdir = . bin_PROGRAMS = runner diff --git a/test/test-automation/build-scripts/install-tests.sh b/test/test-automation/build-scripts/install-tests.sh index 128d2bc9d..7a82f2d6e 100755 --- a/test/test-automation/build-scripts/install-tests.sh +++ b/test/test-automation/build-scripts/install-tests.sh @@ -16,7 +16,7 @@ elif [[ $PLATFORM == "Darwin" ]]; then fi # TODO: put the test in an array -for suite in "testdummy" "testplatform" "testrect" "testaudio" "testsurface" "testrwops" +for suite in "testdummy" "testplatform" "testrect" "testaudio" "testsurface" "testrwops" "testrender" do cp -f "$suite/.libs/lib$suite.$EXT" $DIRECTORY done diff --git a/test/test-automation/configure.ac b/test/test-automation/configure.ac index 3688cb6dd..5c2b99cc6 100644 --- a/test/test-automation/configure.ac +++ b/test/test-automation/configure.ac @@ -38,7 +38,9 @@ AC_CONFIG_FILES([Makefile testplatform/Makefile testaudio/Makefile testsurface/Makefile - testrwops/Makefile]) + testrwops/Makefile + testrender/Makefile]) + AC_OUTPUT echo "" diff --git a/test/test-automation/testrender/Makefile.am b/test/test-automation/testrender/Makefile.am new file mode 100644 index 000000000..8605b7e4f --- /dev/null +++ b/test/test-automation/testrender/Makefile.am @@ -0,0 +1,4 @@ +lib_LTLIBRARIES = libtestrender.la +libtestrender_la_SOURCES = testrender.c +libtestrender_la_CLAGS = -fPIC -g +libtestrender_la_LDFLAGS = `sdl-config --libs` -I ../.libs/libtest.la diff --git a/test/test-automation/testrender/testrender.c b/test/test-automation/testrender/testrender.c new file mode 100644 index 000000000..0d4771583 --- /dev/null +++ b/test/test-automation/testrender/testrender.c @@ -0,0 +1,39 @@ +/** + * Original code: automated SDL platform test written by Edgar Simo "bobbens" + * Extended and updated by aschiffler at ferzkopp dot net + */ + +#include + +#include + +#include "../SDL_test.h" + + + +/*! + * Note: Port tests from "/test/automated/render" here + * + */ + +/* Test cases */ +static const TestCaseReference test1 = + (TestCaseReference){ "render_test", "rendery", TEST_ENABLED, 0, 0 }; + +/* Test suite */ +extern const TestCaseReference *testSuite[] = { + &test1, NULL +}; + +TestCaseReference **QueryTestSuite() { + return (TestCaseReference **)testSuite; +} + +/** + * @brief Document test case here + */ +int +render_test(void *arg) +{ + AssertPass(""); +}