File: 00-run.t

package info (click to toggle)
pangzero 1.4.1%2Bgit20121103-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,636 kB
  • sloc: perl: 4,105; makefile: 24
file content (16 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;
use Test::More;
use Games::PangZero;

$ENV{PANGZERO_TEST} = 1;

$ENV{SDL_VIDEODRIVER}                          = 'dummy';
Games::PangZero::Initialize();
$Games::PangZero::Game                         = Games::PangZero::PanicGame->new();
@Games::PangZero::Highscore::UnsavedHighScores = ();
$Games::PangZero::Game->Run();

delete $ENV{SDL_VIDEODRIVER};
pass('Game Ran!!');
done_testing();