Procházet zdrojové kódy

Added simple test for perl bindings.

Ryan C. Gordon před 16 roky
rodič
revize
bdd4d3ebe3
1 změnil soubory, kde provedl 20 přidání a 0 odebrání
  1. 20 0
      test/test_physfs.pl

+ 20 - 0
test/test_physfs.pl

@@ -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;
+