Added test suites testevent and testkeyboard.
This commit is contained in:
parent
c6bc7ef7af
commit
04ff51483f
7 changed files with 83 additions and 3 deletions
4
test/test-automation/tests/testevents/Makefile.am
Normal file
4
test/test-automation/tests/testevents/Makefile.am
Normal file
|
@ -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
|
34
test/test-automation/tests/testevents/testevents.c
Normal file
34
test/test-automation/tests/testevents/testevents.c
Normal file
|
@ -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("");
|
||||
}
|
4
test/test-automation/tests/testkeyboard/Makefile.am
Normal file
4
test/test-automation/tests/testkeyboard/Makefile.am
Normal file
|
@ -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
|
34
test/test-automation/tests/testkeyboard/testkeyboard.c
Normal file
34
test/test-automation/tests/testkeyboard/testkeyboard.c
Normal file
|
@ -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("");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue