
/*  README information  */
/* scrapIUT */

#if 0

    This DPS IUT scrap master is to run the desired IUT script in a REAL 
    environment, not in a development environment. Therefore, before 
    running this master file, we should have the following list checked:

    * DCE is installed;
    * DCE is setup for DPS configurations;
    * DPS has been compiled and installed;
    * lp file set has been installed;
    * fulcrum printer has been built.

    According to the DPS Filesystem Layout Design, the DPS is installed
    beneath /opt/pd:

    HP location                  Description
    -----------------------      --------------------------------------
    /opt/pd/bin                  Executables
    /opt/pd/lbin                 Backend executables
    /opt/pd/lib                  Libraries
    /opt/pd/lib/attr             Shipped attribute files
    /opt/pd/lib/fonts            Printer fonts
    /opt/pd/lib/ip               Fulcrum Interface Programs
    /opt/pd/lib/ipmap            Fulcrum IP-Map Files
    /opt/pd/lib/model            Fulcrum Printer Model Info
    /opt/pd/lib/nls/msg          NLS message catalogs
    /opt/pd/lib/oids             OID databases

    DPS IUT Environment Variables:

    Variable name                Description
    -----------------------      --------------------------------------
    PD_DEV			 fundamental DPS IUT directory
    PD_DIR			 DPS installation directory
    PD_ENV			 basic or extened DPS environment
    RTPATH			 DPS IUT utility/script directory
    PD_LBIN			 Backend executables in DPS IUT

    DPS Environment Variables(not set in IUT scripts):

    Variable name                Description
    -----------------------      --------------------------------------
    NLSPATH			 
    PDBASE
    LANG

    Comparison between SCRAP and DEVELOPMENT environment:

                        =============================================
                        SCRAP                   DEVELOPMENT
                        -----------------       ---------------------
    PD_DEV              $BLDDIR                 /pd/$LOGNAME
    PD_DIR              /opt/pd                 /pd/$LOGNAME
    RTPATH              $PD_DEV                 $PD_DEV/pdtest

#endif

/*  README information end  */

/* 
   set IUT required environment varibales:
*/


PD_DEV=$BLDDIR
PD_DIR=/opt/pd   /* we need to change PD_DIR=/pd/gkuo -> PD_DIR=/opt/pd */
RTPATH=$BLDDIR
NLSPATH=/opt/pd/lib/nls/msg/%L/%N
PD_LBIN=/opt/pd/lbin
PD_OIDS_PATH=/opt/pd/lib/oids
PD_ENV=extended
LANG=C
/*
   DPS IUT environment varibale:

   HMSDIR is the location we can get a copy of DPS IUT stuff;
   PATH should include /opt/dce/bin and exclude /pd development path;
   The /opt/pd/bin path will be included in IUT script file.

*/

#ifdef hpux
#undef hpux
#endif

HMSDIR=/hpux/pd/hp

PATH=/usr/sbin:/usr/bin:/sbin:/opt/dce/bin:/opt/pd/bin:/opt/pd/lbin

args ./bin/RunIUT -t $NAME

Palladium_IUT {


   source directory is $HMSDIR

/* the purpose of begin is to get a copy of pdtest stuff to current working
   directory from HMS source host. Such as supported commands in pdtest/bin 
   directory, general scripts RunIUT, runAlliut, and run_iut_man.new.
*/

   begin mkdir bin tc step; cd bin; \
	 echo Checking out files from HMS ... ;\
         /usr/local/bin/fupdate $HMSDIR/pdtest/bin $HMSDIR/utils/RunIUT ; \
         /usr/local/bin/fupdate $HMSDIR/tools/pdcellwipe ;\
         /usr/local/bin/fupdate $HMSDIR/tools/pdcellconfig ; \
         cd ../tc; /usr/local/bin/fupdate $HMSDIR/pdtest/tc ; \
         cd ../step; /usr/local/bin/fupdate $HMSDIR/pdtest/step ; \
	 cd .. ;\
	 echo Configuring DCE ... ;\
	 echo This takes a good amount of time. ;\
         /usr/bin/ksh bin/pdCellMgmnt4Scrap.ksh  2>&1 \
		 | tee /tmp/pdCellMgnt4Scrap.ksh.log \
                 | egrep "(COOKIE|Checking|Configuring|good|We must configure|This host is not|We just have to wipe|Exiting without cell config)" 
/*
# NOTE: The above filter is also maintained in doscrap.
#       Changes here have to be added there also.
*/

   name is basicPathTest.TC
   55 minute timeout
   expect exit 0
   run

   name is tracelog.TC
   55 minute timeout
   expect exit 0
   run

/*  the following will be added into Palladium_IUT scope once the testing
    processes done.
*/
#if 1 

    name is cleanNshutNow.tc
    55 minute timeout
    expect exit 0
    run

    name is disNen.tc
    55 minute timeout
    expect exit 0
    run

    name is dsfbase.TC
    55 minute timeout
    expect exit 0
    run

    name is dsfcanpa.tc
    55 minute timeout
    expect exit 0
    run

    name is dsfmisc.tc
    55 minute timeout
    expect exit 0
    run

    name is enq_gateway.TC
    55 minute timeout
    expect exit 0
    run

    name is errorlog.TC
    55 minute timeout
    expect exit 0
    run

    name is jobs.tc
    55 minute timeout
    expect exit 0
    run

    name is ivos.tc
    55 minute timeout
    expect exit 0
    run

    name is nls.tc
    55 minute timeout
    expect exit 0
    run

    name is nrjbehrs1.tc
    55 minute timeout
    expect exit 0
    run

    name is pauNres.s.tc
    55 minute timeout
    expect exit 0
    run

    name is testLp.tc
    55 minute timeout
    expect exit 0
    run

    name is testLs.tc
    55 minute timeout
    expect exit 0
    run

    name is testQ.tc
    55 minute timeout
    expect exit 0
    run

    name is testQ2.tc
    55 minute timeout
    expect exit 0
    run

#endif

} Palladium_IUT
