comparison test/automated/testsdl.c @ 3750:cb75359d29bb gsoc2009_unit_tests

Missed a few things in the last patch.
author Edgar Simo <bobbens@gmail.com>
date Tue, 04 Aug 2009 18:23:54 +0000
parents 1e277c40babe
children 5b48a529fd8a
comparison
equal deleted inserted replaced
3749:1e277c40babe 3750:cb75359d29bb
44 */ 44 */
45 static void print_usage( const char *name ) 45 static void print_usage( const char *name )
46 { 46 {
47 printf("Usage: %s [OPTIONS]\n", name); 47 printf("Usage: %s [OPTIONS]\n", name);
48 printf("Options are:\n"); 48 printf("Options are:\n");
49 printf(" --manual enables tests that require user interaction\n"); 49 printf(" -m, --manual enables tests that require user interaction\n");
50 printf(" --noplatform do not run the platform tests\n"); 50 printf(" --noplatform do not run the platform tests\n");
51 printf(" --norwops do not run the rwops tests\n"); 51 printf(" --norwops do not run the rwops tests\n");
52 printf(" --nosurface do not run the surface tests\n"); 52 printf(" --nosurface do not run the surface tests\n");
53 printf(" --norender do not run the render tests\n"); 53 printf(" --norender do not run the render tests\n");
54 printf(" -v, --verbose increases verbosity level by 1 for each -v\n"); 54 printf(" -v, --verbose increases verbosity level by 1 for each -v\n");
61 * @brief Handles the options. 61 * @brief Handles the options.
62 */ 62 */
63 static void parse_options( int argc, char *argv[] ) 63 static void parse_options( int argc, char *argv[] )
64 { 64 {
65 static struct option long_options[] = { 65 static struct option long_options[] = {
66 { "manual", no_argument, 0, 0 }, 66 { "manual", no_argument, 0, 'm' },
67 { "noplatform", no_argument, 0, 0 }, 67 { "noplatform", no_argument, 0, 0 },
68 { "norwops", no_argument, 0, 0 }, 68 { "norwops", no_argument, 0, 0 },
69 { "nosurface", no_argument, 0, 0 }, 69 { "nosurface", no_argument, 0, 0 },
70 { "norender", no_argument, 0, 0 }, 70 { "norender", no_argument, 0, 0 },
71 { "verbose", no_argument, 0, 'v' }, 71 { "verbose", no_argument, 0, 'v' },
95 run_surface = 0; 95 run_surface = 0;
96 else if (strcmp(str,"norender")==0) 96 else if (strcmp(str,"norender")==0)
97 run_render = 0; 97 run_render = 0;
98 break; 98 break;
99 99
100 /* Manual. */
101 case 'm':
102 run_manual = 1;
103 break;
100 104
101 /* Verbosity. */ 105 /* Verbosity. */
102 case 'v': 106 case 'v':
103 SDL_ATgeti( SDL_AT_VERBOSE, &i ); 107 SDL_ATgeti( SDL_AT_VERBOSE, &i );
104 SDL_ATseti( SDL_AT_VERBOSE, i+1 ); 108 SDL_ATseti( SDL_AT_VERBOSE, i+1 );