Add automated tests on function-type FSCommand parameter passing.
[gnash.git] / testsuite / actionscript.all / testreport.php
blob08c925a0fb6c583f25841592243f49d1792bdd17
1 <?php
3 # This simple script is intended for use with the online
4 # ActionScript testcases of Gnash. The testcases will POST
5 # to this file for logging run results
7 # Set the log filename
8 $filename = "/tmp/gnashtestreport.txt";
10 # Set the url corrisponding to the log filename
11 $url = "file:///tmp/gnashtestreport.txt";
13 function print_it($msg)
15 global $logfile;
16 fwrite($logfile, $msg);
19 function report()
21 global $HTTP_POST_VARS;
22 global $logfile;
24 print_it("\n[".gmdate("M d Y H:i:s")."]\n");
25 print_it($HTTP_POST_VARS{'traced'});
28 $logfile = fopen($filename, "a+");
29 # todo: check return from fopen()
30 report();
32 echo "<B>Your tests results have been <A HREF=".$url.">logged</A>, thanks a lot.</B>"