Opened 14 years ago

Last modified 10 years ago

#965 new task

IZ24: new check for -notify option

Reported by: joga Owned by:
Priority: normal Milestone:
Component: testsuite Version: current
Severity: Keywords: tests


[Imported from gridengine issuezilla]

        Issue #:      24              Platform:     All           Reporter: joga (joga)
       Component:     testsuite          OS:        All
     Subcomponent:    tests           Version:      current          CC:    None defined
        Status:       STARTED         Priority:     P3
      Resolution:                    Issue type:    TASK
                                  Target milestone: milestone 1
      Assigned to:    issues@testsuite
      QA Contact:     joga
       * Summary:     new check for -notify option
   Status whiteboard:

     Issue 24 blocks:
   Votes for issue 24:     Vote for this issue

   Opened: Mon Nov 13 02:08:00 -0700 2006 

This was IZ 622 in project gridengine.

The -notify option has to be tested.
It is available for qsub and qrsh with command.
For qsh, qlogin and qrsh without command it has to
be rejected.

The following script can help to write the test:
#$ -notify -S /bin/sh


trap "echo notification SIGUSR1" 16
trap "echo notification SIGUSR2" 17

echo "starting to sleep for $SLEEP seconds"
while [ $x -lt $SLEEP ]; do
   sleep 1
   x=`expr $x + 1`

echo "finished sleeping, exiting"
exit 0

   ------- Additional comments from dagru Fri Aug 8 01:14:07 -0700 2008 -------
-notify test is integrated in qrsh test

The qsub test can do it in the same way.

Change History (0)

Note: See TracTickets for help on using tickets.