# Built-in tests?

**URL:** <https://discourse.libsdl.org/t/built-in-tests/15055>\
**Category:** SDL Development\
**Created:** [December 30, 2007, 8:54pm UTC](https://discourse.libsdl.org/t/built-in-tests/15055 "2007-12-30T20:54:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin\_Getz](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@Robin\_Getz](https://discourse.libsdl.org/u/Robin_Getz)\
**Post date:** [December 30, 2007, 8:54pm UTC](https://discourse.libsdl.org/t/built-in-tests/15055/1 "2007-12-30T20:54:27Z")

</div>

With the number of small form factor devices using SDL now, I was just  
noticing that some of the tests in ./trunk/SDL/test/ don’t want to run on  
anything that is not able of supporting 640x480.

I think it would be nice to support anything down to QVGA?

Some support -width & -height args, others do not.

Does anyone want to do this? Or should I start sending patches? If so, which  
is the preferred way?

- if 640x480 isn’t supported, usage() and die().
- if 640x480 isn’t supported, try something from SDL\_ListModes()

I noticed the same was true in some of the examples projects. (BTW - is there  
public svns for the things listed in [http://www.libsdl.org/projects/](http://www.libsdl.org/projects/) ?)

Thanks  
-Robin

---

<div class="post-metadata">

**Author:** ![Robin\_Getz](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@Robin\_Getz](https://discourse.libsdl.org/u/Robin_Getz)\
**Post date:** [January 11, 2008, 8:27pm UTC](https://discourse.libsdl.org/t/built-in-tests/15055/2 "2008-01-11T20:27:54Z")

</div>

On Sun 30 Dec 2007 15:54, Robin Getz pondered:

> With the number of small form factor devices using SDL now, I was just  
> noticing that some of the tests in ./trunk/SDL/test/ don’t want to run  
> on anything that is not able of supporting 640x480.
> 
> I think it would be nice to support anything down to QVGA?
> 
> Some support -width & -height args, others do not.
> 
> Does anyone want to do this? Or should I start sending patches? If so,  
> which  
> is the preferred way?
> 
> - if 640x480 isn’t supported, usage() and die().
> - if 640x480 isn’t supported, try something from SDL\_ListModes()
> 
> I noticed the same was true in some of the examples projects.
> 
> (BTW - is there public svns for the things listed in  
> [Index of /projects](http://www.libsdl.org/projects/) ?)

ping

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [January 15, 2008, 5:23am UTC](https://discourse.libsdl.org/t/built-in-tests/15055/3 "2008-01-15T05:23:43Z")

</div>

> I think it would be nice to support anything down to QVGA?

Sure!

> Some support -width & -height args, others do not.

> Does anyone want to do this? Or should I start sending patches? If so, which  
> is the preferred way?
> 
> - if 640x480 isn’t supported, usage() and die().
> - if 640x480 isn’t supported, try something from SDL\_ListModes()

Go for it. The preferred way would be the second method - if 640x480  
isn’t supported, try something from SDL\_ListModes()

> I noticed the same was true in some of the examples projects. (BTW - is there  
> public svns for the things listed in [Index of /projects](http://www.libsdl.org/projects/) ?)

No, generally not.

See ya!  
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment
