Mercurial > sdl-ios-xcode
comparison test/automated/platform/platform.c @ 3744:216e258f2842 gsoc2009_unit_tests
Added more verbosity for platform test.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Mon, 03 Aug 2009 18:28:01 +0000 |
parents | 808fad5fb593 |
children | 5b48a529fd8a |
comparison
equal
deleted
inserted
replaced
3743:848b5263ab05 | 3744:216e258f2842 |
---|---|
144 { | 144 { |
145 #endif /* TEST_STANDALONE */ | 145 #endif /* TEST_STANDALONE */ |
146 | 146 |
147 SDL_ATinit( "Platform" ); | 147 SDL_ATinit( "Platform" ); |
148 | 148 |
149 /* Debug information. */ | |
150 SDL_ATprintVerbose( 1, "%s System detected\n", | |
151 #if __AIX__ | |
152 "AIX" | |
153 #elif __BEOS__ | |
154 "BeOS" | |
155 #elif __BSDI__ | |
156 "BSDI" | |
157 #elif __DREAMCAST__ | |
158 "Dreamcast" | |
159 #elif __FREEBSD__ | |
160 | |
161 "FreeBSD" | |
162 #elif __HPUX__ | |
163 "HP-UX" | |
164 #elif __IRIX__ | |
165 "Irix" | |
166 #elif __LINUX__ | |
167 "Linux" | |
168 #elif __MINT__ | |
169 "Atari MiNT" | |
170 #elif __MACOS__ | |
171 "MacOS Classic" | |
172 #elif __MACOSX__ | |
173 "Mac OS X" | |
174 #elif __NETBSD__ | |
175 "NetBSD" | |
176 #elif __OPENBSD__ | |
177 "OpenBSD" | |
178 #elif __OS2__ | |
179 "OS/2" | |
180 #elif __OSF__ | |
181 "OSF/1" | |
182 #elif __QNXNTO__ | |
183 "QNX Neutrino" | |
184 #elif __RISCOS__ | |
185 "RISC OS" | |
186 #elif __SOLARIS__ | |
187 "Solaris" | |
188 #elif __WIN32__ | |
189 #ifdef _WIN32_WCE | |
190 "Windows CE" | |
191 #else | |
192 "Windows" | |
193 #endif | |
194 #elif __IPHONEOS__ | |
195 "iPhone OS" | |
196 #else | |
197 "an unknown operating system! (see SDL_platform.h)" | |
198 #endif | |
199 ); | |
200 SDL_ATprintVerbose( 1, "System is %s endian\n", | |
201 #ifdef SDL_LIL_ENDIAN | |
202 "little" | |
203 #else | |
204 "big" | |
205 #endif | |
206 ); | |
207 SDL_ATprintVerbose( 1, "Available extensions:\n" ); | |
208 SDL_ATprintVerbose( 1, " RDTSC %s\n", SDL_HasRDTSC()? "detected" : "not detected" ); | |
209 SDL_ATprintVerbose( 1, " MMX %s\n", SDL_HasMMX()? "detected" : "not detected" ); | |
210 SDL_ATprintVerbose( 1, " MMX Ext %s\n", SDL_HasMMXExt()? "detected" : "not detected" ); | |
211 SDL_ATprintVerbose( 1, " 3DNow %s\n", SDL_Has3DNow()? "detected" : "not detected" ); | |
212 SDL_ATprintVerbose( 1, " 3DNow Ext %s\n", | |
213 SDL_Has3DNowExt()? "detected" : "not detected" ); | |
214 SDL_ATprintVerbose( 1, " SSE %s\n", SDL_HasSSE()? "detected" : "not detected" ); | |
215 SDL_ATprintVerbose( 1, " SSE2 %s\n", SDL_HasSSE2()? "detected" : "not detected" ); | |
216 SDL_ATprintVerbose( 1, " AltiVec %s\n", SDL_HasAltiVec()? "detected" : "not detected" ); | |
217 | |
149 plat_testTypes(); | 218 plat_testTypes(); |
150 plat_testEndian(); | 219 plat_testEndian(); |
151 | 220 |
152 return SDL_ATfinish(); | 221 return SDL_ATfinish(); |
153 } | 222 } |