aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/share/perl/test/SingleTest.pl
diff options
context:
space:
mode:
Diffstat (limited to 'share/perl/test/SingleTest.pl')
-rw-r--r--share/perl/test/SingleTest.pl21
1 files changed, 21 insertions, 0 deletions
diff --git a/share/perl/test/SingleTest.pl b/share/perl/test/SingleTest.pl
new file mode 100644
index 0000000..e6be081
--- /dev/null
+++ b/share/perl/test/SingleTest.pl
@@ -0,0 +1,21 @@
1#!/usr/bin/perl
2
3# usage:
4# ./SingleTest.pl $URL $METHOD @PARAMETERS
5# example
6# ./SingleTest.pl http://127.0.0.1/user.cgi get_user_by_name "Test User"
7# ./SingleTest.pl http://127.0.0.1/grid.cgi simulator_login 3507f395-88e5-468c-a45f-d4fd96a1c668 10.8.1.148 9000
8# ./SingleTest.pl http://127.0.0.1/grid.cgi map_block 999 999 1001 1001
9# ./SingleTest.pl http://127.0.0.1/asset.cgi get_asset 00000000000022223333000000000001
10#
11
12use strict;
13use Data::Dump;
14use OpenSimTest;
15
16&OpenSimTest::init();
17my $url = shift @ARGV;
18#my $url = "http://localhost:8002";
19my $result = &OpenSimTest::SingleTest($url, @ARGV);
20Data::Dump::dump($result);
21