diff test/automated/testsdl.c @ 3749:1e277c40babe gsoc2009_unit_tests

Added placeholder for manual tests.
author Edgar Simo <bobbens@gmail.com>
date Tue, 04 Aug 2009 18:07:11 +0000
parents f0b89cf4bffc
children cb75359d29bb
line wrap: on
line diff
--- a/test/automated/testsdl.c	Tue Aug 04 17:53:20 2009 +0000
+++ b/test/automated/testsdl.c	Tue Aug 04 18:07:11 2009 +0000
@@ -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.
@@ -43,6 +46,7 @@
 {
    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");
@@ -59,6 +63,7 @@
 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 },
@@ -121,6 +126,7 @@
 {
    parse_options( argc, argv );
 
+   /* Automatic tests. */
    if (run_platform)
       test_platform();
    if (run_rwops)
@@ -130,6 +136,10 @@
    if (run_render)
       test_render();
 
+   /* Manual tests. */
+   if (run_manual) {
+   }
+
    return 0;
 }