Added simple test for perl bindings.

This commit is contained in:
Ryan C. Gordon 2010-02-01 23:04:25 -05:00
parent 6116683f5e
commit bdd4d3ebe3
1 changed files with 20 additions and 0 deletions

20
test/test_physfs.pl Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/perl -w
use strict;
use warnings;
use physfs;
print "testing PhysicsFS Perl bindings...\n";
print "init...\n";
physfs::init("$0") or die("physfs::init('$0'): ".physfs::getLastError()."\n");
print "user dir: ", physfs::getUserDir(), "\n";
print "base dir: ", physfs::getBaseDir(), "\n";
print "deinit...\n";
physfs::deinit();
print "done!\n";
exit 0;