annotate test/automated/README @ 3755:e04d9c69a6fd gsoc2009_unit_tests

Updated README a bit.
author Edgar Simo <bobbens@gmail.com>
date Thu, 06 Aug 2009 17:00:07 +0000
parents 09d4fa3a787a
children
rev   line source
3754
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
1
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
2
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
3 SDL Automated Testing Framework User Documentation
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
4 by Edgar Simo Serra
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
5
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
6
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
7
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
8 Abstract
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
9
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
10 The SDL Automated Testing Framework, hereby after called SDL_AT, is a meant
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
11 to test the SDL code for regressions and other possible failures. It can also
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
12 be used to display what your SDL set up supports.
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
13
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
14
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
15
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
16 Basics
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
17
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
18 The main way to use the framework is to compile it and run it, that can be
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
19 done with the following command:
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
20
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
21 $> make test
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
22
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
23 It should then display something like:
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
24
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
25 Platform : All tests successful (2)
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
26 SDL_RWops : All tests successful (5)
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
27 SDL_Surface : All tests successful (6)
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
28 Rendering with x11 driver : All tests successful (4)
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
29
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
30 Indicating that all tests were successful. If however a test fails output it
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
31 will report the failure to stderr indicating where and why it happened. This
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
32 output can then be sent to the developers so they can attempt to fix the
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
33 problem.
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
34
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
35
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
36
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
37 Advanced
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
38
3755
e04d9c69a6fd Updated README a bit.
Edgar Simo <bobbens@gmail.com>
parents: 3754
diff changeset
39 By passing the "-h" or "--help" parameter to testsdl you can get an overview
e04d9c69a6fd Updated README a bit.
Edgar Simo <bobbens@gmail.com>
parents: 3754
diff changeset
40 of all the possible options you can set to furthur tweak the testing. A sample
e04d9c69a6fd Updated README a bit.
Edgar Simo <bobbens@gmail.com>
parents: 3754
diff changeset
41 of the options would be the following:
e04d9c69a6fd Updated README a bit.
Edgar Simo <bobbens@gmail.com>
parents: 3754
diff changeset
42
3754
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
43 Usage: ./testsdl [OPTIONS]
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
44 Options are:
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
45 -m, --manual enables tests that require user interaction
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
46 --noplatform do not run the platform tests
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
47 --norwops do not run the rwops tests
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
48 --nosurface do not run the surface tests
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
49 --norender do not run the render tests
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
50 -v, --verbose increases verbosity level by 1 for each -v
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
51 -q, --quiet only displays errors
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
52 -h, --help display this message and exit
09d4fa3a787a Added README.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
53
3755
e04d9c69a6fd Updated README a bit.
Edgar Simo <bobbens@gmail.com>
parents: 3754
diff changeset
54
e04d9c69a6fd Updated README a bit.
Edgar Simo <bobbens@gmail.com>
parents: 3754
diff changeset
55
e04d9c69a6fd Updated README a bit.
Edgar Simo <bobbens@gmail.com>
parents: 3754
diff changeset
56 Developers
e04d9c69a6fd Updated README a bit.
Edgar Simo <bobbens@gmail.com>
parents: 3754
diff changeset
57
e04d9c69a6fd Updated README a bit.
Edgar Simo <bobbens@gmail.com>
parents: 3754
diff changeset
58 See SDL_at.h for developer information.
e04d9c69a6fd Updated README a bit.
Edgar Simo <bobbens@gmail.com>
parents: 3754
diff changeset
59