Changeset 1276


Ignore:
Timestamp:
Nov 16, 2008, 7:25:53 PM (17 years ago)
Author:
Gregg Young
Message:

Added 2 enviromental variables to allow the "test code" sections to kill fm/2 and call a cmd to copy files to test directory and change to the directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ReleaseTool.cmd

    r1153 r1276  
    1818 *    wpi filenames
    1919 *    warpin packageid/database version number(s)
     20 *
     21 * This program uses the following enviromental variables
     22 *    SVN_EDITOR to set the text editor that is called
     23 *    SVN_TESTER to call a cmd file that copies files to your test directory
     24 *               and changes to that directory
     25 *    SVN_KILL allows you to set a program to kill any running version of FM/2
     26 *             killpid is used as default (must be in path)
    2027 *
    2128*/
     
    3441
    3542
    36 globals = 'cmd prompt editor editorcmds'
     43globals = 'cmd prompt editor editorcmds killpid tester killtarget'
    3744
    3845parse arg ver next_ver
     
    133140         end
    134141      when action = 7 then
    135          do /* Test built code */
    136             call NotYet action
    137             say 'Test the built code.'
     142      do /* Test built code */
     143          if tester == '' then
     144              do
     145                  call NotYet action
     146                  say 'Test the built code.'
     147              end
     148          else
     149              do  /*kills FM/2 using killpid from FM/2 utils (must be in path) and run cmd to copy files
     150                    to test directory and change to that directory must type exit to return here*/
     151                  killpid killtarget
     152                  cmd tester
     153              end
    138154         end
    139155      when action = 8 then
     
    160176      when action = 11 then
    161177         do /* Test the binaries */
    162             call NotYet action
    163             say 'Test the binaries.'
    164             say
    165             say 'At a minimum you should run all the exes and do some'
    166             say 'basic file manipulation with each.'
    167             say
    168             say 'You should, where possible, also verify that any bugs'
    169             say 'that were fixed for the release are working as expected.'
     178            if tester == '' then
     179              do
     180                  call NotYet action
     181                  say 'Test the binaries.'
     182                  say
     183                  say 'At a minimum you should run all the exes and do some'
     184                  say 'basic file manipulation with each.'
     185                  say
     186                  say 'You should, where possible, also verify that any bugs'
     187                  say 'that were fixed for the release are working as expected.'
     188              end
     189          else
     190              do  /*kills FM/2 using killpid from FM/2 utils (must be in path) and run cmd to copy files
     191                    to test directory and change to that directory must type exit to return here*/
     192                  killpid killtarget
     193                  cmd tester
     194              end
    170195         end
    171196      when action = 12 then
     
    175200      when action = 13 then
    176201         do /* Test the release code */
    177             call NotYet action
    178             say 'Test the (compressed) release code.'
    179             say
    180             say 'Verify that all exe''s continue to load and run after being compressed.'
     202            if tester == '' then
     203              do
     204                  call NotYet action
     205                  say 'Test the (compressed) release code.'
     206                  say
     207                  say 'Verify that all exe''s continue to load and run after being compressed.'
     208              end
     209          else
     210              do  /*kills FM/2 using killpid from FM/2 utils (must be in path) and run cmd to copy files
     211                    to test directory and change to that directory must type exit to return here*/
     212                  killpid killtarget
     213                  cmd tester
     214              end
    181215         end
    182216      when action = 14 then
     
    302336   else
    303337      editorcmds = ""
    304                
     338
    305339   cmd          = value('COMSPEC',,'OS2ENVIRONMENT')
    306340   prompt       = value('PROMPT',,'OS2ENVIRONMENT')
     341   tester       = value('SVN_TESTER',,'OS2ENVIRONMENT')
     342   killpid      = value('SVN_KILL',,'OS2ENVIRONMENT')
     343   if killpid == '' then
     344       killpid      = 'killpid'
     345   killtarget  = ' FM/2'
    307346return
    308347
Note: See TracChangeset for help on using the changeset viewer.