Added placeholder for manual tests. gsoc2009_unit_tests
authorEdgar Simo <bobbens@gmail.com>
Tue, 04 Aug 2009 18:07:11 +0000
branchgsoc2009_unit_tests
changeset 3749 1e277c40babe
parent 3748 9428ae743878
child 3750 cb75359d29bb
Added placeholder for manual tests.
test/automated/testsdl.c
--- 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;
 }