Index: openacs-4/packages/acs-automated-testing/acs-automated-testing.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/acs-automated-testing.info,v diff -u -N -r1.9 -r1.10 --- openacs-4/packages/acs-automated-testing/acs-automated-testing.info 24 Feb 2004 13:45:47 -0000 1.9 +++ openacs-4/packages/acs-automated-testing/acs-automated-testing.info 24 Feb 2004 14:23:03 -0000 1.10 @@ -20,6 +20,9 @@ + Index: openacs-4/packages/acs-automated-testing/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/www/index.adp,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-automated-testing/www/index.adp 24 Feb 2004 14:15:01 -0000 1.1 @@ -0,0 +1,31 @@ + + @page_title@ + @context@ + + + + + + + + + + + + + + + + + + + + + + +
ServerDescriptionLast builtErrors
Could not parse XML file at @servers.path@: @servers.parse_errors@@servers.name@@servers.description@@servers.install_date@@servers.error_total_count@ errors
+
+ + + The XMLReportDir parameter is empty so a server listing cannot be generated. + Index: openacs-4/packages/acs-automated-testing/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/www/index.tcl,v diff -u -N -r1.1 -r1.2 --- openacs-4/packages/acs-automated-testing/www/index.tcl 25 Feb 2003 14:43:31 -0000 1.1 +++ openacs-4/packages/acs-automated-testing/www/index.tcl 24 Feb 2004 14:15:01 -0000 1.2 @@ -1 +1,37 @@ -ad_returnredirect admin \ No newline at end of file +ad_page_contract { + Typically redirects to the admin index page which displays information about test cases + on this server. However, if this is an install/test reporting server (see parameter IsInstallReportServer) then + show the list of installed servers here. +} + +if { ![parameter::get -boolean -parameter IsInstallReportServer] } { + ad_returnredirect admin + ad_script_abort +} + +set page_title "Test Servers Control Page" +set context [list] +multirow create servers path url name description install_date error_total_count parse_errors + +set xml_report_dir [aa_test::xml_report_dir] +if { ![empty_string_p $xml_report_dir] } { + foreach path [glob $xml_report_dir/*-installreport.xml] { + aa_test::parse_install_file -path $path -array service + + set test_path [aa_test::test_file_path -install_file_path $path] + if { [file exists $test_path] } { + aa_test::parse_test_file -path $test_path -array test + array set testcase_failure $test(testcase_failure) + set service(num_errors) [llength [array names testcase_failure]] + } + + multirow append servers \ + $service(path) \ + [export_vars -base server { path }] \ + $service(name) \ + $service(description) \ + $service(install_end_timestamp) \ + $service(num_errors) \ + $service(parse_errors) + } +} Index: openacs-4/packages/acs-automated-testing/www/server.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/www/server.adp,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-automated-testing/www/server.adp 24 Feb 2004 14:15:01 -0000 1.1 @@ -0,0 +1,83 @@ + + @page_title@ + @context@ + + + +

Rebuild

+ + Index: openacs-4/packages/acs-automated-testing/www/server.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/www/server.tcl,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-automated-testing/www/server.tcl 24 Feb 2004 14:15:01 -0000 1.1 @@ -0,0 +1,33 @@ +ad_page_contract { + Control page for an individual server. +} { + path:notnull +} + +aa_test::parse_install_file -path $path -array service + +set admin_p [permission::permission_p -object_id [ad_conn package_id] -privilege admin] + +set test_path [aa_test::test_file_path -install_file_path $path] +set has_test_report_p [file exists $test_path] + +multirow create testcase_failures testcase_id count + +if { $has_test_report_p } { + aa_test::parse_test_file -path $test_path -array test + + array set testcase_failure $test(testcase_failure) + foreach testcase_id [array names testcase_failure] { + multirow append testcase_failures $testcase_id $testcase_failure($testcase_id) + } +} + +set page_title "Control Page for Server $service(name)" +set context [list $page_title] + +set time [ns_time] +set token_id [sec_get_random_cached_token_id] +set token [sec_get_token $token_id] +set hash [ns_sha1 "$time$token_id$token"] + +set admin_login_url "[export_vars -base "$service(url)/register" {{email {$service(adminemail)}} {password {$service(adminpassword)}} {__confirmed_p 1} time hash token_id {return_url /admin}}]&form:id=login" Index: openacs-4/packages/acs-automated-testing/www/admin/install/report.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/www/admin/install/Attic/report.adp,v diff -u -N --- openacs-4/packages/acs-automated-testing/www/admin/install/report.adp 24 Feb 2004 13:13:13 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,19 +0,0 @@ - - @page_title@ - @context@ - -
    - -
  • - Could not parse XML file at @servers.path@: @servers.parse_errors@ - - @servers.name@ - (@servers.install_date@, @servers.error_total_count@ errors) - -
  • -
    -
- - - The XMLReportDir parameter is empty so a server listing cannot be generated. - \ No newline at end of file Index: openacs-4/packages/acs-automated-testing/www/admin/install/report.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/www/admin/install/Attic/report.tcl,v diff -u -N --- openacs-4/packages/acs-automated-testing/www/admin/install/report.tcl 24 Feb 2004 13:13:13 -0000 1.3 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,29 +0,0 @@ -ad_page_contract { - Test servers control page. -} - -set page_title "Test Servers Control Page" -set context [list] -multirow create servers path url name install_date error_total_count parse_errors - -set xml_report_dir [aa_test::xml_report_dir] -if { ![empty_string_p $xml_report_dir] } { - foreach path [glob $xml_report_dir/*-installreport.xml] { - aa_test::parse_install_file -path $path -array service - - set test_path [aa_test::test_file_path -install_file_path $path] - if { [file exists $test_path] } { - aa_test::parse_test_file -path $test_path -array test - array set testcase_failure $test(testcase_failure) - set service(num_errors) [llength [array names testcase_failure]] - } - - multirow append servers \ - $service(path) \ - [export_vars -base server { path }] \ - $service(name) \ - $service(install_end_timestamp) \ - $service(num_errors) \ - $service(parse_errors) - } -} \ No newline at end of file Index: openacs-4/packages/acs-automated-testing/www/admin/install/server.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/www/admin/install/Attic/server.adp,v diff -u -N --- openacs-4/packages/acs-automated-testing/www/admin/install/server.adp 24 Feb 2004 13:45:30 -0000 1.5 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,82 +0,0 @@ - - @page_title@ - @context@ - -
    -
  • Service: -
      -
    • Name: @service.name@
    • -
    • Description: @service.description@
    • -
    • URL: @service.url@ -
    -
  • -
  • Login: - -
  • - - -
  • Installation: -
      -
    • Installation completed at: @service.install_end_timestamp@ -
    • Duration: @service.install_duration_pretty@ -
    -
  • -
  • Sources -
      -
    • OS: @service.os@ -
    • DB: @service.dbtype@ @service.dbversion@ -
    • Webserver: : @service.webserver@ -
    • Openacs flag: @service.openacs_cvs_flag@ -
    -
  • -
  • Logs - -
  • -
  • Test failures - - - none - - - - - - - - - - - - - -
    Test caseFailure count
    @testcase_failures.testcase_id@@testcase_failures.count@
    -
    -
    - -

    - Unknown. Missing test report file at path @test_path@ -

    -
    -
  • -
- -

Rebuild

- -
    - To rebuild this server: -
      -
    1. - SSH to @service.hostname@ -
    2. -
    3. - Execute @service.rebuild_cmd@ -
    4. -
    - -
Index: openacs-4/packages/acs-automated-testing/www/admin/install/server.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/www/admin/install/Attic/server.tcl,v diff -u -N --- openacs-4/packages/acs-automated-testing/www/admin/install/server.tcl 24 Feb 2004 13:45:30 -0000 1.5 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,31 +0,0 @@ -ad_page_contract { - Control page for an individual server. -} { - path:notnull -} - -aa_test::parse_install_file -path $path -array service - -set test_path [aa_test::test_file_path -install_file_path $path] -set has_test_report_p [file exists $test_path] - -multirow create testcase_failures testcase_id count - -if { $has_test_report_p } { - aa_test::parse_test_file -path $test_path -array test - - array set testcase_failure $test(testcase_failure) - foreach testcase_id [array names testcase_failure] { - multirow append testcase_failures $testcase_id $testcase_failure($testcase_id) - } -} - -set page_title "Control Page for Server $service(name)" -set context [list $page_title] - -set time [ns_time] -set token_id [sec_get_random_cached_token_id] -set token [sec_get_token $token_id] -set hash [ns_sha1 "$time$token_id$token"] - -set admin_login_url "[export_vars -base "$service(url)/register" {{email {$service(adminemail)}} {password {$service(adminpassword)}} {__confirmed_p 1} time hash token_id {return_url /admin}}]&form:id=login"