Added empty test suite for render tests.
authorMarkus Kauppila <markus.kauppila@gmail.com>
Thu, 04 Aug 2011 20:52:39 +0300
changeset 5801 9f53e634c622
parent 5800 21f2e4d6fb01
child 5802 ca0c0d5e56c6
Added empty test suite for render tests.
test/test-automation/Makefile.am
test/test-automation/build-scripts/install-tests.sh
test/test-automation/configure.ac
test/test-automation/testrender/Makefile.am
test/test-automation/testrender/testrender.c
--- a/test/test-automation/Makefile.am	Thu Aug 04 20:45:12 2011 +0300
+++ b/test/test-automation/Makefile.am	Thu Aug 04 20:52:39 2011 +0300
@@ -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
--- a/test/test-automation/build-scripts/install-tests.sh	Thu Aug 04 20:45:12 2011 +0300
+++ b/test/test-automation/build-scripts/install-tests.sh	Thu Aug 04 20:52:39 2011 +0300
@@ -16,7 +16,7 @@
 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
--- a/test/test-automation/configure.ac	Thu Aug 04 20:45:12 2011 +0300
+++ b/test/test-automation/configure.ac	Thu Aug 04 20:52:39 2011 +0300
@@ -38,7 +38,9 @@
 				 testplatform/Makefile
 				 testaudio/Makefile
 				 testsurface/Makefile
-				 testrwops/Makefile])
+				 testrwops/Makefile
+				 testrender/Makefile])
+
 AC_OUTPUT
 
 echo ""
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/test-automation/testrender/Makefile.am	Thu Aug 04 20:52:39 2011 +0300
@@ -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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/test-automation/testrender/testrender.c	Thu Aug 04 20:52:39 2011 +0300
@@ -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 <stdio.h>
+
+#include <SDL/SDL.h>
+
+#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("");
+}