Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added placeholder for manual tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Aug 4, 2009
1 parent 5ff988f commit 7cb5511
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions test/automated/testsdl.c
Expand Up @@ -24,10 +24,13 @@
/*
* Tests to run.
*/
static int run_platform = 1;
static int run_rwops = 1;
static int run_surface = 1;
static int run_render = 1;
static int run_manual = 0; /**< Run manual tests. */
/* Manual. */
/* Automatic. */
static int run_platform = 1; /**< Run platform tests. */
static int run_rwops = 1; /**< Run RWops tests. */
static int run_surface = 1; /**< Run surface tests. */
static int run_render = 1; /**< Run render tests. */

/*
* Prototypes.
Expand All @@ -43,6 +46,7 @@ static void print_usage( const char *name )
{
printf("Usage: %s [OPTIONS]\n", name);
printf("Options are:\n");
printf(" --manual enables tests that require user interaction\n");
printf(" --noplatform do not run the platform tests\n");
printf(" --norwops do not run the rwops tests\n");
printf(" --nosurface do not run the surface tests\n");
Expand All @@ -59,6 +63,7 @@ static void print_usage( const char *name )
static void parse_options( int argc, char *argv[] )
{
static struct option long_options[] = {
{ "manual", no_argument, 0, 0 },
{ "noplatform", no_argument, 0, 0 },
{ "norwops", no_argument, 0, 0 },
{ "nosurface", no_argument, 0, 0 },
Expand Down Expand Up @@ -121,6 +126,7 @@ int main( int argc, char *argv[] )
{
parse_options( argc, argv );

/* Automatic tests. */
if (run_platform)
test_platform();
if (run_rwops)
Expand All @@ -130,6 +136,10 @@ int main( int argc, char *argv[] )
if (run_render)
test_render();

/* Manual tests. */
if (run_manual) {
}

return 0;
}

0 comments on commit 7cb5511

Please sign in to comment.