SingleTest.pl 636 B

123456789101112131415161718192021
  1. #!/usr/bin/perl
  2. # usage:
  3. # ./SingleTest.pl $URL $METHOD @PARAMETERS
  4. # example
  5. # ./SingleTest.pl http://127.0.0.1/user.cgi get_user_by_name "Test User"
  6. # ./SingleTest.pl http://127.0.0.1/grid.cgi simulator_login 3507f395-88e5-468c-a45f-d4fd96a1c668 10.8.1.148 9000
  7. # ./SingleTest.pl http://127.0.0.1/grid.cgi map_block 999 999 1001 1001
  8. # ./SingleTest.pl http://127.0.0.1/asset.cgi get_asset 00000000000022223333000000000001
  9. #
  10. use strict;
  11. use Data::Dump;
  12. use OpenSimTest;
  13. &OpenSimTest::init();
  14. my $url = shift @ARGV;
  15. #my $url = "http://localhost:8002";
  16. my $result = &OpenSimTest::SingleTest($url, @ARGV);
  17. Data::Dump::dump($result);