Opened 13 years ago

Last modified 9 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
Cc:

Description

[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=24]

        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
          URL:
       * Summary:     new check for -notify option
   Status whiteboard:
      Attachments:

     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:
#!/bin/sh
#$ -notify -S /bin/sh


SLEEP=300


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


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


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.