This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test suites testevent and testkeyboard.
- Loading branch information
Showing
7 changed files
with
83 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(""); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(""); | ||
} |