physfs/test/test_physfs.pl

22 lines
444 B
Perl
Raw Normal View History

2010-02-02 05:04:25 +01:00
#!/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";
2012-03-22 04:30:50 +01:00
print "pref dir: ", physfs::getPrefDir("icculus.org", "test_physfs"), "\n";
2010-02-02 05:04:25 +01:00
print "deinit...\n";
physfs::deinit();
print "done!\n";
exit 0;