Skip to content
Newer
Older
100644 115 lines (89 sloc) 1.64 KB
0697d1d @kthakore Fixed use_ok bug for t/core_events.t. Made 00-load.t test for loading…
kthakore authored Nov 9, 2009
1 use strict;
2 use warnings;
3 use Test::Most 'bail';
85ffd21 @kthakore Using File::Spec instead
kthakore authored Nov 24, 2010
4 use File::Spec 'catfile';
0697d1d @kthakore Fixed use_ok bug for t/core_events.t. Made 00-load.t test for loading…
kthakore authored Nov 9, 2009
5
6 BEGIN {
4979eb1 @jtpalmer perltidy
jtpalmer authored Jul 30, 2010
7 my @modules = qw /
8 SDL
9 SDL::Video
10 SDL::Color
11 SDL::Surface
12 SDL::Config
13 SDL::Overlay
14 SDL::Rect
15 SDL::Time
16 SDL::Events
17 SDL::Event
18 SDL::Mouse
19 SDL::Joystick
20 SDL::Cursor
21 SDL::Audio
22 SDL::AudioCVT
23 SDL::AudioSpec
24 SDL::CDROM
25 SDL::CDTrack
26 SDL::CD
27 SDL::MultiThread
28 SDL::PixelFormat
29 SDL::VideoInfo
6626b9f no video-gfx unless SDL_RELEASE_TESTING
Tobias Leich authored Mar 22, 2010
30
4979eb1 @jtpalmer perltidy
jtpalmer authored Jul 31, 2010
31 SDL::GFX::BlitFunc
32 SDL::GFX::Framerate
33 SDL::GFX::FPSManager
34 SDL::GFX::ImageFilter
35 SDL::GFX::Primitives
36 SDL::GFX::Rotozoom
6626b9f no video-gfx unless SDL_RELEASE_TESTING
Tobias Leich authored Mar 22, 2010
37
4979eb1 @jtpalmer perltidy
jtpalmer authored Jul 31, 2010
38 SDL::Image
6626b9f no video-gfx unless SDL_RELEASE_TESTING
Tobias Leich authored Mar 22, 2010
39
4979eb1 @jtpalmer perltidy
jtpalmer authored Jul 31, 2010
40 SDL::Mixer
41 SDL::Mixer::Samples
42 SDL::Mixer::Channels
43 SDL::Mixer::Groups
44 SDL::Mixer::Music
45 SDL::Mixer::Effects
46 SDL::Mixer::MixChunk
47 SDL::Mixer::MixMusic
6626b9f no video-gfx unless SDL_RELEASE_TESTING
Tobias Leich authored Mar 22, 2010
48
4979eb1 @jtpalmer perltidy
jtpalmer authored Jul 31, 2010
49 SDL::Pango
50 SDL::Pango::Context
6626b9f no video-gfx unless SDL_RELEASE_TESTING
Tobias Leich authored Mar 22, 2010
51
4979eb1 @jtpalmer perltidy
jtpalmer authored Jul 31, 2010
52 SDL::TTF
53 SDL::TTF::Font
6626b9f no video-gfx unless SDL_RELEASE_TESTING
Tobias Leich authored Mar 22, 2010
54
4979eb1 @jtpalmer perltidy
jtpalmer authored Jul 31, 2010
55 SDL::Version
6e1f923 @kthakore Moved SDL::App to SDLx::App
kthakore authored Jun 22, 2010
56
4979eb1 @jtpalmer perltidy
jtpalmer authored Jul 31, 2010
57 SDLx::App
58 SDLx::Sprite
59 SDLx::Sprite::Animated
60 SDLx::FPS
61 SDLx::SFont
a44ce7d @jtpalmer merge
jtpalmer authored Jul 30, 2010
62 SDLx::Validate
4979eb1 @jtpalmer perltidy
jtpalmer authored Jul 31, 2010
63 SDLx::Surface
64 SDLx::Surface::TiedMatrix
65 SDLx::Surface::TiedMatrixRow
6626b9f no video-gfx unless SDL_RELEASE_TESTING
Tobias Leich authored Mar 22, 2010
66
0c99f56 @kthakore Added SDLx::Controller::Object
kthakore authored Aug 13, 2010
67 SDLx::Controller
5322259 @kthakore Renamed SDLx::Controller::Object to Interface
kthakore authored Sep 1, 2010
68 SDLx::Controller::Interface
0739b15 @kthakore MAde state an object
kthakore authored Aug 14, 2010
69 SDLx::Controller::State
0c99f56 @kthakore Added SDLx::Controller::Object
kthakore authored Aug 14, 2010
70 SDLx::Controller::Timer
a44ce7d @jtpalmer merge
jtpalmer authored Jul 31, 2010
71
116b863 @kthakore A better test case for file. Also adding strict and warnings to some …
kthakore authored Nov 24, 2010
72 SDLx::Sound
aa76782 @kthakore Clean up use_ok useage
kthakore authored Aug 19, 2010
73
4979eb1 @jtpalmer perltidy
jtpalmer authored Jul 31, 2010
74 /;
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored Jul 20, 2010
75
116b863 @kthakore A better test case for file. Also adding strict and warnings to some …
kthakore authored Nov 24, 2010
76 my $tests = scalar @modules;
a2ee301 @kthakore There is an upstream cock up in Test::Strict. So we only require it f…
kthakore authored Nov 28, 2010
77
78 my $load_test_strict = 0;
79
5a6fb77 @kthakore More clean up. We do strict testing only for release testing
kthakore authored Nov 28, 2010
80 if( $ENV{RELEASE_TESTING})
81 {
116b863 @kthakore A better test case for file. Also adding strict and warnings to some …
kthakore authored Nov 24, 2010
82
5a6fb77 @kthakore More clean up. We do strict testing only for release testing
kthakore authored Nov 28, 2010
83 eval 'require Test::Strict';
84 $load_test_strict = 1 unless $@;
85 }
116b863 @kthakore A better test case for file. Also adding strict and warnings to some …
kthakore authored Nov 24, 2010
86 foreach( @modules )
87 {
88 use_ok $_ ;
5a6fb77 @kthakore More clean up. We do strict testing only for release testing
kthakore authored Nov 28, 2010
89 if( $load_test_strict )
90 {
116b863 @kthakore A better test case for file. Also adding strict and warnings to some …
kthakore authored Nov 24, 2010
91
92
5a6fb77 @kthakore More clean up. We do strict testing only for release testing
kthakore authored Nov 28, 2010
93 my $file = $_;
85ffd21 @kthakore Using File::Spec instead
kthakore authored Nov 24, 2010
94
5a6fb77 @kthakore More clean up. We do strict testing only for release testing
kthakore authored Nov 28, 2010
95 my @files = split /::/, $file;
85ffd21 @kthakore Using File::Spec instead
kthakore authored Nov 24, 2010
96
5a6fb77 @kthakore More clean up. We do strict testing only for release testing
kthakore authored Nov 28, 2010
97 $file = File::Spec->catfile( 'lib', @files );
98
99 $file = $file.'.pm';
100
101 eval 'Test::Strict::syntax_ok $file';
102 pass unless $@;
103 eval 'Test::Stict::strict_ok $file';
104 pass unless $@;
105 eval 'Test::Strict::warnings_ok $file';
106 pass unless $@;
a2ee301 @kthakore There is an upstream cock up in Test::Strict. So we only require it f…
kthakore authored Nov 28, 2010
107
108 }
116b863 @kthakore A better test case for file. Also adding strict and warnings to some …
kthakore authored Nov 24, 2010
109 }
5a6fb77 @kthakore More clean up. We do strict testing only for release testing
kthakore authored Nov 28, 2010
110
111
6626b9f no video-gfx unless SDL_RELEASE_TESTING
Tobias Leich authored Mar 22, 2010
112 }
a2ee301 @kthakore There is an upstream cock up in Test::Strict. So we only require it f…
kthakore authored Nov 28, 2010
113
114 done_testing();
Something went wrong with that request. Please try again.