Added test suites testevent and testkeyboard.
authorMarkus Kauppila <markus.kauppila@gmail.com>
Tue, 09 Aug 2011 18:40:14 +0300
changeset 5817 d8fee59aec80
parent 5816 594229a23ec5
child 5818 598099cba0be
Added test suites testevent and testkeyboard.
test/test-automation/Makefile.am
test/test-automation/build-scripts/install-tests.sh
test/test-automation/configure.ac
test/test-automation/tests/testevents/Makefile.am
test/test-automation/tests/testevents/testevents.c
test/test-automation/tests/testkeyboard/Makefile.am
test/test-automation/tests/testkeyboard/testkeyboard.c
--- a/test/test-automation/Makefile.am	Tue Aug 09 18:20:48 2011 +0300
+++ b/test/test-automation/Makefile.am	Tue Aug 09 18:40:14 2011 +0300
@@ -11,8 +11,10 @@
 		  tests/testrender \
 		  tests/testvideo \
 		  tests/testsyswm \
-		  tests/testclipboard
-
+		  tests/testclipboard \
+		  tests/testevents \
+	  	  tests/testkeyboard 
+		
 ##all-local: install
 install: install-runner install-tests
 install-runner: 
--- a/test/test-automation/build-scripts/install-tests.sh	Tue Aug 09 18:20:48 2011 +0300
+++ b/test/test-automation/build-scripts/install-tests.sh	Tue Aug 09 18:40:14 2011 +0300
@@ -15,7 +15,7 @@
 fi
 
 # TODO: put the test in an array
-for suite in "testdummy" "testplatform" "testrect" "testaudio" "testsurface" "testrwops" "testrender" "testvideo" "testsyswm" "testclipboard"
+for suite in "testdummy" "testplatform" "testrect" "testaudio" "testsurface" "testrwops" "testrender" "testvideo" "testsyswm" "testclipboard" "testevents" "testkeyboard"
 do
 	cp -f "$DIRECTORY/$suite/.libs/lib$suite.$EXT" $DIRECTORY
 done
--- a/test/test-automation/configure.ac	Tue Aug 09 18:20:48 2011 +0300
+++ b/test/test-automation/configure.ac	Tue Aug 09 18:40:14 2011 +0300
@@ -44,6 +44,8 @@
  				 tests/testvideo/Makefile
  				 tests/testsyswm/Makefile
  				 tests/testclipboard/Makefile
+ 				 tests/testevents/Makefile
+ 				 tests/testkeyboard/Makefile
 				 tests/testrender/Makefile])
 
 AC_OUTPUT
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/test-automation/tests/testevents/Makefile.am	Tue Aug 09 18:40:14 2011 +0300
@@ -0,0 +1,4 @@
+lib_LTLIBRARIES = libtestevents.la
+libtestevents_la_SOURCES = testevents.c 
+libtestevents_la_CLAGS = -fPIC -g
+libtestevents_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/testevents/testevents.c	Tue Aug 09 18:40:14 2011 +0300
@@ -0,0 +1,34 @@
+#include <stdio.h>
+
+#include <SDL/SDL.h>
+
+#include "../../include/SDL_test.h"
+
+
+
+/*!
+ * Note: Add test for events here
+ *
+ */
+
+/* Test cases */
+static const TestCaseReference test1 =
+		(TestCaseReference){ "events_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
+events_test(void *arg)
+{
+	AssertPass("");
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/test-automation/tests/testkeyboard/Makefile.am	Tue Aug 09 18:40:14 2011 +0300
@@ -0,0 +1,4 @@
+lib_LTLIBRARIES = libtestkeyboard.la
+libtestkeyboard_la_SOURCES = testkeyboard.c 
+libtestkeyboard_la_CLAGS = -fPIC -g
+libtestkeyboard_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/testkeyboard/testkeyboard.c	Tue Aug 09 18:40:14 2011 +0300
@@ -0,0 +1,34 @@
+#include <stdio.h>
+
+#include <SDL/SDL.h>
+
+#include "../../include/SDL_test.h"
+
+
+
+/*!
+ * Note: Add test for keyboard here
+ *
+ */
+
+/* Test cases */
+static const TestCaseReference test1 =
+		(TestCaseReference){ "keyboard_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
+keyboard_test(void *arg)
+{
+	AssertPass("");
+}