Added new test suites testvideo, testsyswm and testclipboard.
authorMarkus Kauppila <markus.kauppila@gmail.com>
Tue, 09 Aug 2011 18:20:48 +0300
changeset 5816 594229a23ec5
parent 5815 216d12fb365d
child 5817 d8fee59aec80
Added new test suites testvideo, testsyswm and testclipboard.
test/test-automation/Makefile.am
test/test-automation/README
test/test-automation/build-scripts/install-tests.sh
test/test-automation/configure.ac
test/test-automation/tests/testclipboard/Makefile.am
test/test-automation/tests/testclipboard/testclipboard.c
test/test-automation/tests/testsyswm/Makefile.am
test/test-automation/tests/testsyswm/testsyswm.c
test/test-automation/tests/testvideo/Makefile.am
test/test-automation/tests/testvideo/testvideo.c
--- a/test/test-automation/Makefile.am	Sat Aug 06 13:52:48 2011 -0700
+++ b/test/test-automation/Makefile.am	Tue Aug 09 18:20:48 2011 +0300
@@ -8,7 +8,10 @@
 		  tests/testaudio \
 		  tests/testsurface \
 		  tests/testrwops \
-		  tests/testrender
+		  tests/testrender \
+		  tests/testvideo \
+		  tests/testsyswm \
+		  tests/testclipboard
 
 ##all-local: install
 install: install-runner install-tests
--- a/test/test-automation/README	Sat Aug 06 13:52:48 2011 -0700
+++ b/test/test-automation/README	Tue Aug 09 18:20:48 2011 +0300
@@ -1,6 +1,6 @@
 /*! \mainpage Documentation for SDL test harness
 
-\section Brief introduction
+\section Introduction
 
 This is doxygen-generated docs for SDL test harness. 
 
--- a/test/test-automation/build-scripts/install-tests.sh	Sat Aug 06 13:52:48 2011 -0700
+++ b/test/test-automation/build-scripts/install-tests.sh	Tue Aug 09 18:20:48 2011 +0300
@@ -15,7 +15,7 @@
 fi
 
 # TODO: put the test in an array
-for suite in "testdummy" "testplatform" "testrect" "testaudio" "testsurface" "testrwops" "testrender"
+for suite in "testdummy" "testplatform" "testrect" "testaudio" "testsurface" "testrwops" "testrender" "testvideo" "testsyswm" "testclipboard"
 do
 	cp -f "$DIRECTORY/$suite/.libs/lib$suite.$EXT" $DIRECTORY
 done
--- a/test/test-automation/configure.ac	Sat Aug 06 13:52:48 2011 -0700
+++ b/test/test-automation/configure.ac	Tue Aug 09 18:20:48 2011 +0300
@@ -41,6 +41,9 @@
 				 tests/testaudio/Makefile
 				 tests/testsurface/Makefile
 				 tests/testrwops/Makefile
+ 				 tests/testvideo/Makefile
+ 				 tests/testsyswm/Makefile
+ 				 tests/testclipboard/Makefile
 				 tests/testrender/Makefile])
 
 AC_OUTPUT
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/test-automation/tests/testclipboard/Makefile.am	Tue Aug 09 18:20:48 2011 +0300
@@ -0,0 +1,4 @@
+lib_LTLIBRARIES = libtestclipboard.la
+libtestclipboard_la_SOURCES = testclipboard.c 
+libtestclipboard_la_CLAGS = -fPIC -g
+libtestclipboard_la_LDFLAGS = `sdl-config --libs` -I ../../src/libSDLtest/.libs/libSDLtest.la
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/test-automation/tests/testclipboard/testclipboard.c	Tue Aug 09 18:20:48 2011 +0300
@@ -0,0 +1,34 @@
+#include <stdio.h>
+
+#include <SDL/SDL.h>
+
+#include "../../include/SDL_test.h"
+
+
+
+/*!
+ * Note: Add test for clipboard here
+ *
+ */
+
+/* Test cases */
+static const TestCaseReference test1 =
+		(TestCaseReference){ "clipboard_test", "description", TEST_DISABLED, 0, 0 };
+
+/* Test suite */
+extern const TestCaseReference *testSuite[] =  {
+	&test1, NULL
+};
+
+TestCaseReference **QueryTestSuite() {
+	return (TestCaseReference **)testSuite;
+}
+
+/**
+ * @brief Document test case here
+ */
+int
+clipboard_test(void *arg)
+{
+	AssertPass("");
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/test-automation/tests/testsyswm/Makefile.am	Tue Aug 09 18:20:48 2011 +0300
@@ -0,0 +1,4 @@
+lib_LTLIBRARIES = libtestsyswm.la
+libtestsyswm_la_SOURCES = testsyswm.c 
+libtestsyswm_la_CLAGS = -fPIC -g
+libtestsyswm_la_LDFLAGS = `sdl-config --libs` -I ../../src/libSDLtest/.libs/libSDLtest.la
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/test-automation/tests/testsyswm/testsyswm.c	Tue Aug 09 18:20:48 2011 +0300
@@ -0,0 +1,34 @@
+#include <stdio.h>
+
+#include <SDL/SDL.h>
+
+#include "../../include/SDL_test.h"
+
+
+
+/*!
+ * Note: Add test for syswm here
+ *
+ */
+
+/* Test cases */
+static const TestCaseReference test1 =
+		(TestCaseReference){ "syswm_test", "description", TEST_DISABLED, 0, 0 };
+
+/* Test suite */
+extern const TestCaseReference *testSuite[] =  {
+	&test1, NULL
+};
+
+TestCaseReference **QueryTestSuite() {
+	return (TestCaseReference **)testSuite;
+}
+
+/**
+ * @brief Document test case here
+ */
+int
+syswm_test(void *arg)
+{
+	AssertPass("");
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/test-automation/tests/testvideo/Makefile.am	Tue Aug 09 18:20:48 2011 +0300
@@ -0,0 +1,4 @@
+lib_LTLIBRARIES = libtestvideo.la
+libtestvideo_la_SOURCES = testvideo.c 
+libtestvideo_la_CLAGS = -fPIC -g
+libtestvideo_la_LDFLAGS = `sdl-config --libs` -I ../../src/libSDLtest/.libs/libSDLtest.la
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/test-automation/tests/testvideo/testvideo.c	Tue Aug 09 18:20:48 2011 +0300
@@ -0,0 +1,34 @@
+#include <stdio.h>
+
+#include <SDL/SDL.h>
+
+#include "../../include/SDL_test.h"
+
+
+
+/*!
+ * Note: Add test for video here
+ *
+ */
+
+/* Test cases */
+static const TestCaseReference test1 =
+		(TestCaseReference){ "video_test", "video stuff", TEST_DISABLED, 0, 0 };
+
+/* Test suite */
+extern const TestCaseReference *testSuite[] =  {
+	&test1, NULL
+};
+
+TestCaseReference **QueryTestSuite() {
+	return (TestCaseReference **)testSuite;
+}
+
+/**
+ * @brief Document test case here
+ */
+int
+video_test(void *arg)
+{
+	AssertPass("");
+}