File: 1.20.0b/server/test/test.sh (View as HTML)

  1: #!/usr/bin/php -q
  2: <?php
  3: require("../base/tests.inc.php");
  4: if ($argc<3)
  5: 	{
  6: 	echo "Usage: test.sh test host/param [param]\n";
  7: 	exit();
  8: 	}
  9: $test=$argv[1];
 10: $host=$argv[2];
 11: if ($argc==4) $param=$argv[3];
 12: else $param=$host;
 13: echo "Doing ".$test."(".$param.") to ".$host.": ";
 14: $ptr=DoTest($test,$param,$host);
 15: echo $ptr."\n";
 16: 
 17: ?>
 18: