From a0be700d20f4c361d0d0a91dfcd111969cf24bc8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 8 May 2008 18:47:49 +0000 Subject: [PATCH] svn path=/trunk/boinc/; revision=15150 --- needed_tests.php | 87 ----------- test.inc | 342 ----------------------------------------- test.sql | 17 -- test_action.php | 52 ------- test_details.php | 111 ------------- test_form.php | 36 ----- test_form2.php | 31 ---- test_instructions.php | 114 -------------- test_list.php | 72 --------- test_needscoverage.php | 52 ------- test_summary.php | 82 ---------- test_users.php | 56 ------- 12 files changed, 1052 deletions(-) delete mode 100644 needed_tests.php delete mode 100644 test.inc delete mode 100644 test.sql delete mode 100644 test_action.php delete mode 100644 test_details.php delete mode 100644 test_form.php delete mode 100644 test_form2.php delete mode 100644 test_instructions.php delete mode 100644 test_list.php delete mode 100644 test_needscoverage.php delete mode 100644 test_summary.php delete mode 100644 test_users.php diff --git a/needed_tests.php b/needed_tests.php deleted file mode 100644 index 84e65fbb0a..0000000000 --- a/needed_tests.php +++ /dev/null @@ -1,87 +0,0 @@ -3"); - $s = mysql_fetch_row($r); - return $s[0]; -} - -$r = mysql_query("select * from test_report"); -while ($tr = mysql_fetch_object($r)) { - $tarr[$tr->test_group][$tr->version][$tr->status]++; -} - -$max_versions = 1; -$message = ""; -$mail = new PHPMailer(); - -$html = "Testing status report -

- This report shows the tests for which more reports are needed. -

- Please visit http://boinc.berkeley.edu/trac/wiki/TestMatrix - to see descriptions of the various tests, - and submit reports as soon as possible. -

- Thanks for your time and effort in making BOINC - a great platform for volunteer computing. -

- The BOINC Development Team -

- Tests for which we need more reports: - -"; - -$message = "This report shows which test areas need more test coverage. - -Please visit http://boinc.berkeley.edu/trac/wiki/TestMatrix -to see descriptions of the various tests, -and submit reports as soon as possible. -Thanks for your time and effort in making BOINC -a great platform for volunteer computing. - -The BOINC Development Team - -Tests for which we need more reports: -"; - -for ($i=0; $i $x1) { - $html = $html.""; - $message = $message."$pl\t$x2\n"; - } - } -} - -$html = $html."
TestAdditional reports needed
$pl$x2
"; - -$mail->From = "boincadm@ssl.berkeley.edu"; -$mail->FromName = "BOINC Administrator"; -$mail->Host = "mail.ssl.berkeley.edu"; -$mail->Mailer = "smtp"; -$mail->Subject = "Testing status report"; -$mail->Body = $html; -$mail->AltBody = $message; -$mail->AddAddress("boinc_alpha@ssl.berkeley.edu", "BOINC Alpha Email List"); -$mail->Send(); - -echo "

";
-echo "$message";
-echo "
"; - -?> diff --git a/test.inc b/test.inc deleted file mode 100644 index 744230ce5f..0000000000 --- a/test.inc +++ /dev/null @@ -1,342 +0,0 @@ -3"); - while ($rep = mysql_fetch_object($r)) { - $rs[] = $rep; - } - return $rs; -} - -function test_count($x) { - $n = 0; - foreach($x as $y) { - $n += $y[2]; - } - return $n; -} - -function fraction_left($v) { - global $platforms; - global $test_groups; - $ps = $platforms; - $gs = $test_groups; - $total_tests = test_count($ps) + test_count($gs); - - $rs = reports_for_version($v); - foreach ($rs as $r) { - for ($i=0; $iplatform == $ps[$i][0]) { - if ($ps[$i][2]>0) { - $ps[$i][2]--; - } - break; - } - } - for ($i=0; $itest_group == $gs[$i][0]) { - if ($gs[$i][2]>0) { - $gs[$i][2]--; - } - break; - } - } - } - $tests_left = test_count($ps) + test_count($gs); - return $tests_left/$total_tests; -} - -function platform_name($short_name) { - global $platforms; - for ($i=0; $istatus==0) $ch0 = "checked"; - if ($tr->status==1) $ch1 = "checked"; - if ($tr->status==2) $ch2 = "checked"; - if ($tr->status==3) $ch3 = "checked"; - $comment = $tr->comment; - } else { - $ch3 = "checked"; - } - - echo " - - - - - - "; -} - -function show_test_groups($user, $v, $p) { - global $test_groups; - echo " - - - - - - - - "; - for ($i=0; $i\n"; - show_status_select($t, $user, $v, $p); - echo "\n"; - } - echo "
Test groupNot
tested
No
bugs
found
Minor
bugs
found
Major
bugs
found
Comments (include BOINC trac ticket number if applicable)
$t[1]
\n"; -} - -function show_version_select() { - global $versions; - echo "\n"; -} - -function show_platform_select() { - global $platforms; - for ($i=0; $i$p[1]\n"; - } -} - - -function show_platform_summary() { - global $versions; - global $platforms; - for ($i=0; $i".$v." "; - } - echo "
\n"; - } -} - -function show_platform_details($platform) { - echo $platform->platform, $platform->version, $platform->status; -} - -?> diff --git a/test.sql b/test.sql deleted file mode 100644 index 99840416fb..0000000000 --- a/test.sql +++ /dev/null @@ -1,17 +0,0 @@ -use alpha; - -create table test_report ( - id integer not null auto_increment, - userid integer not null, - version varchar(64) not null, - platform varchar(64) not null, - test_group varchar(64) not null, - status integer not null, - comment text, - mod_time timestamp, - primary key (id) -); - -alter table test_report - add unique (userid, version, platform, test_group), - add index tr_vers (version); diff --git a/test_action.php b/test_action.php deleted file mode 100644 index 627e151e32..0000000000 --- a/test_action.php +++ /dev/null @@ -1,52 +0,0 @@ -id and version='$version' and platform='$platform' and test_group='$t[0]'"; - $result = mysql_query($query); - $tr = mysql_fetch_object($result); - if ($tr) { - $query = "update test_report set status=$status, comment='$comment' where userid=$user->id and version='$version' and platform='$platform' and test_group='$t[0]'"; - $retval = mysql_query($query); - echo "
$t[1]: updating existing report\n"; - } else { - echo "inserting"; - $query = "insert into test_report (userid, version, platform, test_group, status, comment) values ($user->id, '$version', '$platform', '$t[0]', $status, '$comment')"; - - $retval = mysql_query($query); - echo "
$t[1]: adding new report\n"; - } - if (!$retval) { - echo mysql_error(); - error_page("db error"); - } -} - -echo " -

- Test report accepted - thank you. -

- Submit more test results -"; -?> diff --git a/test_details.php b/test_details.php deleted file mode 100644 index e6fd958428..0000000000 --- a/test_details.php +++ /dev/null @@ -1,111 +0,0 @@ - - "; - for ($i=0; $i<3; $i++) { - if ($counts[$i]) { - $w = $counts[$i]*20; - echo " - - $counts[$i] - - "; - } else { - echo "
\n"; - } - } - echo " - - "; -} - -page_head("Test status of version $version"); - -$n = array(); -$n[0] = 0; -$n[1] = 0; -$n[2] = 0; - -$tr = array(); -$query = "select * from test_report where version='$version'"; -$result = mysql_query($query); -if (!$result) { - echo mysql_error(); - error_page("db error"); -} -while ($r = mysql_fetch_object($result)) { - array_push($tr, $r); - $n[$r->status]++; -} -mysql_free_result($result); - -start_table(); -row1("OVERALL STATUS"); -echo "\n"; -show_status($n, "test_list.php?version=$version"); -$fl = fraction_left($version); -$pd = number_format(100*(1-$fl), 0); - -echo " -
- $pd% of target testing has been done. - -"; -end_table(); - -start_table(); -row1("PLATFORMS"); - -for ($i=0; $iplatform != $p[0]) continue; - $n[$r->status]++; - } - - row1($p[1]); - echo "\n"; - show_status($n, "test_list.php?version=$version&platform=$p[0]"); - echo "\n"; -} -end_table(); - -start_table(); -row1("TEST GROUPS"); - -for ($i=0; $itest_group != $tg[0]) continue; - $n[$r->status]++; - } - - row1($tg[1]); - echo "\n"; - show_status($n, "test_list.php?version=$version&test_group=$tg[0]"); - echo "\n"; -} -end_table(); -?> diff --git a/test_form.php b/test_form.php deleted file mode 100644 index d79cf9e596..0000000000 --- a/test_form.php +++ /dev/null @@ -1,36 +0,0 @@ - - To report bugs with public releases of BOINC, - use the BOINC Trac bug database. -

-

- Version: -"; - show_version_select(); -echo " -

- Which platform did you test on? -"; - show_platform_select(); -echo " -

- -

-"; - -page_tail(); -?> diff --git a/test_form2.php b/test_form2.php deleted file mode 100644 index be367e046a..0000000000 --- a/test_form2.php +++ /dev/null @@ -1,31 +0,0 @@ - -
- - -"; -show_test_groups($user, $version, $platform); -echo " -

- -

-"; -page_tail(); - -?> - diff --git a/test_instructions.php b/test_instructions.php deleted file mode 100644 index 432856e42b..0000000000 --- a/test_instructions.php +++ /dev/null @@ -1,114 +0,0 @@ -Becoming a tester -

-The BOINC testing program helps us find and fix bugs -in the BOINC software before we release it to the public. -Testing is vital to the success of BOINC. -If you're a tester, then: -

    -
  • -You'll need to spend about 1 hour per week doing testing; -
  • -Some of your computer power will be spent running test work, -and you may receive no credit for it. -
  • -You must have enough computer experience to -write clear descriptions of problems. -
  • -You may be asked to assist, via phone or email, -in troubleshooting. -
-If you are OK with all this and want to help test BOINC, -send email to -David Anderson or Rom Walton, -and if we need more testers we'll set up an account for you. - -

-Testers must subscribe to the -boinc_alpha email list. -(You don't need to be a tester to subscribe to this list). - - - -

When to test

-

-Periodically (every couple of weeks, sometimes more) -we'll send an announcement on the email list, -asking alpha testers to download and test a specific new release of BOINC. -These releases can be downloaded from -here. -Please try to report test results within two days of receiving the email. - -

How to test

-

-The client software under test may have bugs that wipe out tasks in progress. -Therefore we recommend that you install the test software -in a different BOINC directory than the one you normally use for BOINC. -

-The set of test cases is -here. -For each release, please try to do all the General tests. -Please try to do as many of the other tests -as your time and computer environment permit. -

-Depending on what you're testing, -you can select which project(s) to attach to: -

    -
  • The BOINC Alpha project (this one) has tasks -with large input and output files (4.5 MB each) -and that use about 1 minute of CPU time. -This is useful for testing file upload/download, -and for testing things that happen on task completion. -You don't need to attach to this project to be an Alpha Tester. -Please do not stay attached to this project for long periods. - -
  • You can use the Cunning Plan project -(http://isaac.ssl.berkeley.edu/cplan) for tests -that involve creating accounts. - -
  • You can use other projects (SETI@home, Einstein@home, CPDN) -for other purposes. -
-

-If at any time you experienced problems with BOINC that are not -exercised by any of these tests, -please post to the boinc_alpha@ssl.berkeley.edu email list. - - -

How to report test results

-

-The preferred way to report test results is through the -web-based interface. - -

-You can optionally also submit bug reports to the -BOINC bug database. -You may also send email to the relevant area owner, as listed -here. - -

-If you're not sure whether something is a bug, -post to the boinc_alpha@ssl.berkeley.edu email list. -

-Read about -Reporting Hard Bugs. - - -

Resources

-

-Windows users: if you have install/uninstall problems, -you may need to use the Windows Installer CleanUp Utility: see -here -and -here -"; - -page_tail(); -?> diff --git a/test_list.php b/test_list.php deleted file mode 100644 index 30bdaf2820..0000000000 --- a/test_list.php +++ /dev/null @@ -1,72 +0,0 @@ -userid); - $s = array(); - $s[0] = "OK"; - $s[1] = "minor bugs"; - $s[2] = "major bugs"; - $status = $s[$r->status]; - $p = platform_name($r->platform); - $tg = test_group_name($r->test_group); - $c = $r->comment; - if (!$c) $c = "
"; - echo " - - $user->name - $p - $tg - $status - $c - $r->mod_time - - "; -} - -db_init(); - -$tr = array(); -$query = "select * from test_report where version='$version'"; -$result = mysql_query($query); -if (!$result) { - echo mysql_error(); - error_page("db error"); -} -while ($r = mysql_fetch_object($result)) { - array_push($tr, $r); -} -mysql_free_result($result); - -echo " - - - - - - - - - -"; - -for ($i=0; $iplatform != $platform) continue; - if ($test_group && $r->test_group != $test_group) continue; - if ($status >= 0 && $r->status != $status) continue; - - show_report($r); -} - -echo "
UserPlatformTest groupStatusCommentTime
\n"; -?> diff --git a/test_needscoverage.php b/test_needscoverage.php deleted file mode 100644 index 47cad274bd..0000000000 --- a/test_needscoverage.php +++ /dev/null @@ -1,52 +0,0 @@ - - This report describes which platform a test groupings still need additional coverage. -

-"; - -echo " - -"; - -echo "\n"; -for ($i=0; $i3"); - $l = mysql_fetch_array($r, MYSQL_BOTH); - $result_count = intval($l[0]); - if ( $result_count < $result_target ) { - echo "\n"; - } -} - -echo "\n"; -for ($i=0; $i3"); - $l = mysql_fetch_array($r, MYSQL_BOTH); - $result_count = intval($l[0]); - if ( $result_count < $result_target ) { - echo "\n"; - } -} - -echo "
PLATFORMS
$pl$result_target$result_count
TESTS
$pl$result_target$result_count
"; - -page_tail(); -?> diff --git a/test_summary.php b/test_summary.php deleted file mode 100644 index 0be944c4ee..0000000000 --- a/test_summary.php +++ /dev/null @@ -1,82 +0,0 @@ - - This table shows the number of test reports that have been - submitted for each combination of (platform, version) - and (test, version). -

-"; - -function pcount($p, $v) { - $r = mysql_query("select count(*) from test_report where version='$v' and platform = '$p' and status<>3"); - $s = mysql_fetch_row($r); - return $s[0]; -} -function tcount($p, $v) { - $r = mysql_query("select count(*) from test_report where version='$v' and test_group = '$p' and status<>3"); - $s = mysql_fetch_row($r); - return $s[0]; -} - -$r = mysql_query("select * from test_report"); -while ($tr = mysql_fetch_object($r)) { - $parr[$tr->platform][$tr->version][$tr->status]++; - $tarr[$tr->test_group][$tr->version][$tr->status]++; -} - -echo " - - - - -"; - -$max_versions = 12; -for ($i=0; $i$versions[$i] - "; -} -echo ""; - -$nc = count($versions)+2; -echo "\n"; -for ($i=0; $i"; - for ($j=0; $j$x1\n"; - } - echo "\n"; -} -echo "\n"; -for ($i=0; $i"; - for ($j=0; $j$x1\n"; - } - echo "\n"; -} - -echo "
Version
click for details
Target
#results
PLATFORMS
$pl$tr
TESTS
$pl$tr
"; - -page_tail(); -?> diff --git a/test_users.php b/test_users.php deleted file mode 100644 index 351606ea4e..0000000000 --- a/test_users.php +++ /dev/null @@ -1,56 +0,0 @@ - - This table shows the alpha testers, - the platforms they have, - and the versions for which they have reported results. -

-"; - -function os_list($user) { - $r = mysql_query("select distinct os_name from host where userid=$user->id"); - while ($row = mysql_fetch_row($r)) { - if ($x) $x .= "
$row[0]"; - else $x = $row[0]; - } - if (!$x) $x='---'; - return $x; -} - -$r = mysql_query("select * from test_report where status<>3"); -while ($tr = mysql_fetch_object($r)) { - $uarr[$tr->userid][$tr->version]++; -} - -echo " - - -"; -for ($i=0; $i$versions[$i]\n"; -} -echo "\n"; -$r = mysql_query("select * from user"); -while ($user = mysql_fetch_object($r)) { - echo " - - "; - for ($i=0; $iid][$v]; - if (!$n) $n='---'; - echo "\n"; - } - echo ""; -} -echo "
UserOperating systems
$user->name".os_list($user)."$n
\n"; -page_tail(); - -?>