Mercurial > sdl-ios-xcode
diff test/automated/testsdl.c @ 3756:427f059bc814 gsoc2009_unit_tests
Added simple audio test.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Mon, 17 Aug 2009 17:52:42 +0000 |
parents | 5b48a529fd8a |
children |
line wrap: on
line diff
--- a/test/automated/testsdl.c Thu Aug 06 17:00:07 2009 +0000 +++ b/test/automated/testsdl.c Mon Aug 17 17:52:42 2009 +0000 @@ -14,6 +14,7 @@ #include "rwops/rwops.h" #include "surface/surface.h" #include "render/render.h" +#include "audio/audio.h" #include <stdio.h> /* printf */ #include <stdlib.h> /* exit */ @@ -32,6 +33,7 @@ static int run_rwops = 1; /**< Run RWops tests. */ static int run_surface = 1; /**< Run surface tests. */ static int run_render = 1; /**< Run render tests. */ +static int run_audio = 1; /**< Run audio tests. */ /* * Prototypes. @@ -52,6 +54,7 @@ printf(" --norwops do not run the rwops tests\n"); printf(" --nosurface do not run the surface tests\n"); printf(" --norender do not run the render tests\n"); + printf(" --noaudio do not run the audio tests\n"); printf(" -v, --verbose increases verbosity level by 1 for each -v\n"); printf(" -q, --quiet only displays errors\n"); printf(" -h, --help display this message and exit\n"); @@ -69,6 +72,7 @@ { "norwops", no_argument, 0, 0 }, { "nosurface", no_argument, 0, 0 }, { "norender", no_argument, 0, 0 }, + { "noaudio", no_argument, 0, 0 }, { "verbose", no_argument, 0, 'v' }, { "quiet", no_argument, 0, 'q' }, { "help", no_argument, 0, 'h' }, @@ -96,6 +100,8 @@ run_surface = 0; else if (strcmp(str,"norender")==0) run_render = 0; + else if (strcmp(str,"noaudio")==0) + run_audio = 0; break; /* Manual. */ @@ -154,6 +160,8 @@ failed += test_surface(); if (run_render) failed += test_render(); + if (run_audio) + failed += test_audio(); /* Manual tests. */ if (run_manual) {