Index: openacs-4/packages/acs-automated-testing/www/doc/usage.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/www/doc/usage.adp,v diff -u -N -r1.3 -r1.4 --- openacs-4/packages/acs-automated-testing/www/doc/usage.adp 7 Aug 2017 23:47:46 -0000 1.3 +++ openacs-4/packages/acs-automated-testing/www/doc/usage.adp 30 Apr 2018 08:13:40 -0000 1.4 @@ -3,10 +3,10 @@ Usage -
+ leftLink="install" leftLabel="Prev" + title="" + rightLink="requirements" rightLabel="Next"> +

Usage

by Joel @@ -27,16 +27,13 @@ up a dedicated user and automated install script.

  • To run automated testing automatically each time the server is rebuilt, add this to /home/service1/install/install.tcl:

    -       set do_tclapi_testing "yes"
    -
    +set do_tclapi_testing "yes"
  • Get the results of the automated tests dumped where the master server can see them - in this example, the same directory as above, /var/log/openacs-install, by adding this to install.tcl (requires 5.1):

    -          set install_xml_file          "/var/lib/aolserver/service0/packages/acs-core-docs/www/files/install-autotest.xml"
    -

    This will copy in the file install-autotest.xml:

    -<?xml version="1.0"?>
    +set install_xml_file          "/var/lib/aolserver/service0/packages/acs-core-docs/www/files/install-autotest.xml"

    This will copy in the file install-autotest.xml:

    <?xml version="1.0"?>
     
     <!-- This is an install.xml which can be used to configure servers for reporting their automated test results.  Requires acs-automated-testing 5.1.0b2 or better -->
     
    @@ -54,8 +51,7 @@
     
  • To enable the 'rebuild server' link, edit the file -/usr/local/bin/rebuild-server.sh:

    -#!/bin/sh
    +/usr/local/bin/rebuild-server.sh:

    #!/bin/sh
     # script to trigger a server rebuild
     
     # hard-coding the valid server names here for some minimal security
    @@ -67,18 +63,16 @@
             exit;;
     esac
     
    -sudo /home/$1/install/install.sh 2>&1
    -

    and allow the master user to +sudo /home/$1/install/install.sh 2>&1

    and allow the master user to execute this file as root (this is a limitation of the automatic install script, which must be root). In /etc/sudoers, include a line:

    -master ALL = NOPASSWD: /usr/local/bin/rebuild-server.sh
    -
    +master ALL = NOPASSWD: /usr/local/bin/rebuild-server.sh
  • - \ No newline at end of file + leftLink="install" leftLabel="Prev" leftTitle="Installation" + rightLink="requirements" rightLabel="Next" rightTitle="Requirements" + homeLink="index" homeLabel="Home" + upLink="index" upLabel="Up"> + \ No newline at end of file