          ================================================
               managed-job-globusrun FUNCTIONAL TESTS
          ================================================


A) To test simple job execution, no output at all
-------------------------------------------------

    test01, no options


B) To test output to remote file
--------------------------------

    test05, no options


C) To test internal GASS options
--------------------------------


    C.1) test stage-in of local paths relative to GASS server
    ---------------------------------------------------------
        
        test03 -server
        (GASS URL is automatically prepended to the file stage-in source path)

    C.2) test stage-out to a local path relative to GASS server
    -----------------------------------------------------------
    
        test04 -write-allow
        (GASS URL is automatically prepended to the file stage-out destination path)

    C.3) To test output redirection to the managed-job-globusrun process
    --------------------------------------------------------------------

        test01 -output
        (a special stdout path to the GASS server is be added automatically)

    C.4) To test writing to several kinds of output
    -----------------------------------------------

        C.4.1) To test writing stdout to remote file and 
               staging out to a local GASS path

               test02 -write-allow

        C.4.2) To test writing stdout to a remote file and 
               redirecting stdout to the m-j-g process

               test05 -output

        C.4.3) To test staging out to a local GASS path
               and redirecting stdout to m-j-g

               test04 -write-allow -output

        C.4.4) To test staging out to a local GASS path, 
               writing stdout to a remote file, 
               and redirecting stdout to m-j-g

               test02 -write-allow -output
               
        C.4.5) To test staging in to a remote file and
               redirecting stdout to m-j-g   
        
               test03 -server -output               
           
            
D) To test batch mode
---------------------

    D.1) Without output to GASS
    ---------------------------

       Generic steps:
       
            a) <rsl> -batch - read resolver key on stdout
            b) -status <key> --> "Done"
            
        D.1.1) Without any output

            test01

        D.1.2) With output to remote file

            test05

    D.3) With stdout redirected to stand-alone GASS
    -----------------------------------------------

        a) globus-gass-server -p 34375
        b) globusrun test06 -batch
            *Currenly FAILS* with InvalidPathFault??
            Should:
            --> exits w/o destroying job,
                which outputs to GASS.

    D.3) To test -status, -kill
    ---------------------------

        steps a) b) of D.1.1 then:
        b) -kill   <key>
        c) -status <key> --> "Error: could not find job
                              with handle: <key>"
    D.4) To test -list
    ------------------

        a) test01 -batch
        b) test05 -batch
        c) -list --> list of GSH with RSL


E) To test termination time options
-----------------------------------

    E.1) To test -duration
    ----------------------

        a) turn on logging at DEBUG severity for
           org.globus.exec.sync.client.GramJob
        b) test01 -batch -duration <HH:mm>
           where <HH:mm> == 02:30 for instance
           (that's 2 hours, 30 minutes)
           --> check in log
                "service termination time is planned:
                after   <date> and
                before  <date>"
                where <data> == <now> + <duration>

    E.2) To test -terminate-at
    --------------------------

        Same as E.1 but in b) do
           test01 -batch -terminate-at '<MM/dd/yyyy HH:mm>'
           where <MM/dd/yyyy HH:mm> == 08/15/2005 11:30
           for instance.

        
F) To test m-j-g in conjunction with an external GASS server 
------------------------------------------------------------
   Do not use internal GASS options. Just use GASS URL in your RSL
   --> test writing to local files via GASS URL in <stdout>https://localhost:1345/test/stdout
   See D.3)
           

G) To test default components of contact string
-----------------------------------------------
   Use the following options:
   -list -factory <contact string>
   
   The script contact_string_tests.sh tests every 
   allowed possibility for <contact string>.
   Have classpath and GLOBUS_LOCATION set, then:
   % sh contact_string_tests.sh > LOG
   If nothing on stderr, tests all ran OK.
