Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
c6bc7ef7
Commit
c6bc7ef7
authored
Aug 09, 2011
by
Markus Kauppila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new test suites testvideo, testsyswm and testclipboard.
parent
68633ef5
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
123 additions
and
3 deletions
+123
-3
Makefile.am
test/test-automation/Makefile.am
+4
-1
README
test/test-automation/README
+1
-1
install-tests.sh
test/test-automation/build-scripts/install-tests.sh
+1
-1
configure.ac
test/test-automation/configure.ac
+3
-0
Makefile.am
test/test-automation/tests/testclipboard/Makefile.am
+4
-0
testclipboard.c
test/test-automation/tests/testclipboard/testclipboard.c
+34
-0
Makefile.am
test/test-automation/tests/testsyswm/Makefile.am
+4
-0
testsyswm.c
test/test-automation/tests/testsyswm/testsyswm.c
+34
-0
Makefile.am
test/test-automation/tests/testvideo/Makefile.am
+4
-0
testvideo.c
test/test-automation/tests/testvideo/testvideo.c
+34
-0
No files found.
test/test-automation/Makefile.am
View file @
c6bc7ef7
...
@@ -8,7 +8,10 @@ SUBDIRS = src/libSDLtest \
...
@@ -8,7 +8,10 @@ SUBDIRS = src/libSDLtest \
tests/testaudio
\
tests/testaudio
\
tests/testsurface
\
tests/testsurface
\
tests/testrwops
\
tests/testrwops
\
tests/testrender
tests/testrender
\
tests/testvideo
\
tests/testsyswm
\
tests/testclipboard
##all-local: install
##all-local: install
install
:
install-runner install-tests
install
:
install-runner install-tests
...
...
test/test-automation/README
View file @
c6bc7ef7
/*! \mainpage Documentation for SDL test harness
/*! \mainpage Documentation for SDL test harness
\section
Brief i
ntroduction
\section
I
ntroduction
This is doxygen-generated docs for SDL test harness.
This is doxygen-generated docs for SDL test harness.
...
...
test/test-automation/build-scripts/install-tests.sh
View file @
c6bc7ef7
...
@@ -15,7 +15,7 @@ elif [[ $PLATFORM == "Darwin" ]]; then
...
@@ -15,7 +15,7 @@ elif [[ $PLATFORM == "Darwin" ]]; then
fi
fi
# TODO: put the test in an array
# 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
do
cp
-f
"
$DIRECTORY
/
$suite
/.libs/lib
$suite
.
$EXT
"
$DIRECTORY
cp
-f
"
$DIRECTORY
/
$suite
/.libs/lib
$suite
.
$EXT
"
$DIRECTORY
done
done
...
...
test/test-automation/configure.ac
View file @
c6bc7ef7
...
@@ -41,6 +41,9 @@ AC_CONFIG_FILES([Makefile
...
@@ -41,6 +41,9 @@ AC_CONFIG_FILES([Makefile
tests/testaudio/Makefile
tests/testaudio/Makefile
tests/testsurface/Makefile
tests/testsurface/Makefile
tests/testrwops/Makefile
tests/testrwops/Makefile
tests/testvideo/Makefile
tests/testsyswm/Makefile
tests/testclipboard/Makefile
tests/testrender/Makefile])
tests/testrender/Makefile])
AC_OUTPUT
AC_OUTPUT
...
...
test/test-automation/tests/testclipboard/Makefile.am
0 → 100644
View file @
c6bc7ef7
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
test/test-automation/tests/testclipboard/testclipboard.c
0 → 100644
View file @
c6bc7ef7
#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
(
""
);
}
test/test-automation/tests/testsyswm/Makefile.am
0 → 100644
View file @
c6bc7ef7
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
test/test-automation/tests/testsyswm/testsyswm.c
0 → 100644
View file @
c6bc7ef7
#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
(
""
);
}
test/test-automation/tests/testvideo/Makefile.am
0 → 100644
View file @
c6bc7ef7
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
test/test-automation/tests/testvideo/testvideo.c
0 → 100644
View file @
c6bc7ef7
#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
(
""
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment