comparison test/automated/SDL_at.h @ 3741:808fad5fb593 gsoc2009_unit_tests

Added command line options. Added verbosity levels.
author Edgar Simo <bobbens@gmail.com>
date Sun, 02 Aug 2009 18:58:03 +0000
parents 6eca2af6a86b
children 9428ae743878
comparison
equal deleted inserted replaced
3740:e451d5d288e9 3741:808fad5fb593
36 36
37 #ifndef _SDL_AT_H 37 #ifndef _SDL_AT_H
38 # define _SDL_AT_H 38 # define _SDL_AT_H
39 39
40 40
41
42 enum {
43 SDL_AT_VERBOSE,
44 SDL_AT_QUIET
45 };
46
47
41 /* 48 /*
42 * Suite level actions. 49 * Suite level actions.
43 */ 50 */
44 /** 51 /**
45 * @brief Starts the testsuite. 52 * @brief Starts the testsuite.
50 /** 57 /**
51 * @brief Finishes the testsuite printing out global results if verbose. 58 * @brief Finishes the testsuite printing out global results if verbose.
52 * 59 *
53 * @param verbose Displays global results. 60 * @param verbose Displays global results.
54 */ 61 */
55 int SDL_ATfinish( int verbose ); 62 int SDL_ATfinish (void);
63 /**
64 * @brief Sets a global property value.
65 *
66 * @param property Property to set.
67 * @param value Value to set property to.
68 */
69 void SDL_ATseti( int property, int value );
70 /**
71 * @brief Gets a global property value.
72 *
73 * @param property Property to get.
74 * @param[out] value Value of the property.
75 */
76 void SDL_ATgeti( int property, int *value );
56 77
57 78
58 /* 79 /*
59 * Testcase level actions. 80 * Testcase level actions.
60 */ 81 */
92 113
93 /* 114 /*
94 * Misc functions. 115 * Misc functions.
95 */ 116 */
96 /** 117 /**
118 * @brief Prints an error.
119 *
120 * @param msg printf formatted string to display.
121 * @return Number of character printed.
122 */
123 int SDL_ATprintErr( const char *msg, ... );
124 /**
97 * @brief Prints some text. 125 * @brief Prints some text.
98 * 126 *
99 * @param msg printf formatted string to display. 127 * @param msg printf formatted string to display.
100 * @return Number of character printed. 128 * @return Number of character printed.
101 */ 129 */
102 int SDL_ATprint( const char *msg, ... ); 130 int SDL_ATprint( const char *msg, ... );
131 /**
132 * @brief Prints some verbose text.
133 *
134 * @param level Level of verbosity to print at.
135 * @param msg printf formatted string to display.
136 * @return Number of character printed.
137 */
138 int SDL_ATprintVerbose( int level, const char *msg, ... );
103 139
104 140
105 #endif /* _SDL_AT_H */ 141 #endif /* _SDL_AT_H */
106 142
107 143