International Business Machines Corporation Appendix



AIX V5.2.0 and VSC5 Test Suite installation

  1. Install local test machine
        o Install AIX 5.2.0 base operating System.

          bos.adt                         5.2.0.0
          bos.net                         5.2.0.0
          bos.loc.adt.locale              5.2.0.0
          bos.terminfo.svprint.data       5.2.0.0
          vac.C                           6.0.0.0
          xlC.msg.en_US.rte               6.0.0.0
          xlC.rte                         6.0.0.0


        o create man keyword catalog using the command; catman -w
        o Create printer queue only, the tests do not need an actual
          physical printer.
             + Smit printer
             + Select "Print Spooling"
             + Select "Add a Print Queue"
             + Select "other User Defined Backend"
             + Fill in the following:

               * Name of QUEUE to add                               [lp0]
               * Name of QUEUE DEVICE to add                        [lp0]
               * BACKEND PROGRAM pathname                           [/usr/lib/lpd/piobe]

        o configure TCPIP using smit tcpip to setup hostname and address,
          where the hostname is "oscc6".
        o set up UUCP
             + Edit /etc/uucp/Systems file, add the following lines.

               oscc3 Any TCP,t - - in:--in: nuucp word: passw0rd  <==(remote system)
               oscc10 Any TCP,t - - in:--in: nuucp word: passw0rd   <==(local system)

             + Edit /etc/uucp/Permissions file, add the following lines.

               MACHINE=oscc3:oscc10 REQUEST=yes READ=/ WRITE=/  COMMANDS=ALL
               LOGNAME=nuucp:vsc0 REQUEST=yes SENDFILES=yes READ=/ WRITE=/

             + Edit /etc/uucp/Devices file, make sure the following line is
               uncommented.

               TCP - - - TCP

             + Edit /etc/uucp/Dialers file, make sure the following line is
               uncommented.

               TCP

             + Edit /etc/inetd.conf file, make sure the following line is
               uncommented.

               uucp   stream  tcp     nowait  root    /usr/sbin/uucpd        uucpd

             + Edit /var/spool/cron/crontabs/uucp, add the following line.

               * * * * * /bin/bsh -c "/usr/lib/uucp/uudemon.hour > /dev/null"

             + Set nuucp passwd to "passw0rd". Edit /etc/security/passwd
               remove the following line:

                       flags = ADMCHG

             + Reboot the machine.
  2. Install remote test machine
        o Install AIX 5.2.0 base operating System.
        o Install the following AIX 5.1.0 fileset.

          bos.net                   5.2.0.0

        o configure TCPIP using smit tcpip to setup hostname and address,
          where the hostname is "oscc10".
        o set up UUCP
             + Edit /etc/uucp/Systems file, add the following lines.

               oscc3 Any TCP,t - - in:--in: nuucp word: passw0rd  <==(local system)
               oscc10 Any TCP,t - - in:--in: nuucp word: passw0rd   <==(remote system)

             + Edit /etc/uucp/Permissions file, add the following lines.

               MACHINE=oscc3:oscc10 REQUEST=yes READ=/ WRITE=/  COMMANDS=ALL
               LOGNAME=nuucp:vsc0 REQUEST=yes SENDFILES=yes READ=/ WRITE=/

             + Edit /etc/uucp/Devices file, make sure the following line is
               uncommented.

               TCP - - - TCP

             + Edit /etc/uucp/Dialers file, make sure the following line is
               uncommented.

               TCP

             + Edit /etc/inetd.conf file, make sure the following line is
               uncommented.

               uucp   stream  tcp     nowait  root    /usr/sbin/uucpd        uucpd

             + Edit /var/spool/cron/crontabs/uucp, add the following line.

               * * * * * /bin/bsh -c "/usr/lib/uucp/uudemon.hour > /dev/null"

             + Set nuucp passwd to "passw0rd". Edit /etc/security/passwd
               remove the following line:

                       flags = ADMCHG

             + Reboot the machine.
  3. Install Testsuite on local system
        o Create filesystems with following parameters

             /tsuites/VSC5.1.3        262144 blocks  automount=yes
             /tsuites/testfs/vsc_rw   8192 blocks  automount=yes
             /tsuites/testfs/vsc_ro   8192 blocks  automount=yes
             /tsuites/testfs/LargeFileSystem  262144 automount=yes bf=true

        o set up link /tsuites/VSC-->/tsuites/VSC5.1.3
        o setup passwd and group files
             + add the following to the passwd file

               vsc0:!:3000:3000::/tsuites/VSC/vsc:/usr/bin/ksh
               vsc1:!:3001:3001::/tsuites/VSC/vsc:/usr/bin/ksh
               vsc2:!:3002:3002::/tsuites/VSC/vsc:/usr/bin/ksh
               vsc3:!:3003:3003::/tsuites/VSC/vsc:/usr/bin/ksh
               vsc4:!:3004:3004::/tsuites/VSC/vsc:/usr/bin/ksh

             + add the following to the group file

               vscg0:!:3000:vsc0
               vscg1:!:3001:vsc1
               vscg2:!:3002:vsc2
               vscg3:!:3003:vsc3
               vscg4:!:3004:vsc0,vsc4

        o mount all filesystems
        o Chown vsc0.vsg0 all file systems
        o Chmod u-s all file systems, chmod 777 all filesystems
        o create block and char devices

          mknod  /dev/vsc_ucd c 999 0
          mknod  /dev/vsc_ubd b 999 1
          chown  vsc0.vscg0 /dev/vsc_*
          chmod  777 /dev/vsc_*

        o Unpack test suite to /tsuites/VSC5.1.3
        o Copy makefiles to correct directories
             + Edit $TET_ROOT/src/posix_c/makefile

               change "SIG_LEAVE =" to "SIG_LEAVE = 28"

             + Edit $TET_ROOT/src/xpg3sh/api/makefile

               change "STD_SIGNALS =" to
               "STD_SIGNALS = 1 2 3 4 6 8 13 14 15 30 31 18 19 21 22"

               change "SPEC_SIGNALS =" to "SPEC_SIGNALS =  9 20 17"

        o Edit $TET_ROOT/src/posix_sh/api/makefile

          change "STD_SIGNALS =" to
          "STD_SIGNALS = 1 2 3 4 6 8 13 14 15 30 31 18 19 21 22"

          change "SPEC_SIGNALS =" to "SPEC_SIGNALS =  9 20 17"

        o Copy tetexec.cfg file to be used for testsuite run to
          /tsuites/VSC/vsc directory. File contents are in Section 2.2
        o Edit the buildexpect script, change the make line to

          make "CC=$TCL_CC"

        o Build the Test Suite

          run ./Build

          Answer the following:

          Do you wish to use the POSIX Shell version of the TET Shell API and
          tcm?  This version uses built-in shell arithmetic rather than calls
          to 'expr', with a consequent gain in performance.  The default is
          "no"; that is, if you do not respond, you will use the standard
          TET modules: [y/n]
          y

          What is the name of the command to be used to invoke the C compiler to
          build the TET and the implementation-specific C programs in the ImplSpec
          directory?  The default is "c89":
          c89

          What is the name of the command to be used to invoke the C compiler to
          build Tcl and expect?  The default is "c89":
          cc

                          VSC CONFIGURATION
                          -------------------

          Do you want to configure VSC5 to test conformance to
                  (1) XCU5        [answer 'x5']
                  (2) XCU4        [answer 'x4']
                  (3) POSIX.2     [answer 'p']
                  (4) FIPS 189    [not yet supported]

          Configuration type [x5/x4/p]:
          x5

          Do you want to use an existing VSC5 configuration file for this
          configuration? [y/n]
          y
          Enter the pathname of the file that you want to use, or press 
          to do a new configuration:
          /tsuites/VSC/vsc/tetexec.cfg.save
          The file /tsuites/VSC/vsc/tetexec.cfg.save contains the timestamp

                  # VSC5 configured on Sat Mar  7 08:10:08 CST 1998 by vsc0

          Do you want to use that file? [y/n]
          y

          Exiting configuration; will use a copy of 
                          /tsuites/VSC/vsc/tetexec.cfg.save.
          privscipt

          In order to give the ExecWithPriv utility the ability to execute
          commands with privileges, you must supply the superuser password.

                          WARNING!!!

          This creates a "Trojan Horse" security loophole on the system.  Such a
          loophole is a necessary evil on systems that run conformance tests, but
          take appropriate precautions.
          root's Password:
          passw0rd

     AIX paging space allocation method was set to early allocation in order
     to comply with the XPG 4 malloc specification. This is done by the
     executing the following command prior to issuing the scen.exec command:
     export PSALLOC=early.

     The UNIX 98 libraries are involved by executing the command; export
     XPG_SUS_ENV=ON prior to issuing the tcc command.

  4. Run test suites by using tcc -bec -p vsc all

The following is the complete VSC 5.1.3 configuration from the journal file.

        TET_VERSION          =  1.10
        TET_OUTPUT_CAPTURE   =  False
        TET_RESCODES_FILE    =  tet_code
        TET_EXEC_IN_PLACE    =  False
        TET_BUILD_TOOL       =  buildtool
        TET_VERSION          =  1.10
        TET_OUTPUT_CAPTURE   =  False
        TET_RESCODES_FILE    =  tet_code
        TET_EXEC_IN_PLACE    =  False
        PCTS_NAME_MAX        =  511
        PCTS_PATH_MAX        =  2047
        PCTS_LINK_MAX        =  255
        VSC_WINK             =  2
        VSC_NAP              =  10
        VSC_SNOOZE           =  30
        VSC_EXPECT_SUPPORT   =  TRUE
        VSC_ESC              =  033
        VSC_END_OF_FILE      =  004
        VSC_BS               =  010
        VSC_KILL             =  025
        VSC_NL               =  012
        VSC_LNEXT            =  026
        VSC_STOP             =  032
        VSC_REDRAW           =  014
        VSC_INTR             =  003
        VSC_CTLW             =  027
        VSC_CTLP             =  020
        VSC_PAX_BIG_FILE_SUPPORT =      TRUE
        VSC_CONFIG_TYPE      =  XPG5
        VSC_OPER             =  William Toth
        VSC_ORG              =  X/Open Conformance Lab - F006
        VSC_ADDR1            =  IBM Austin
        VSC_ADDR2            =  RS/6000 Division
        VSC_ADDR3            =  11400 Burnett Road
        VSC_ADDR4            =  Austin TX 78758
        VSC_SYS              =  RS/6000 PC850 running AIX 4.3.0
        VSC_TESTER           =  vsc0
        VSC_TESTER_UID       =  3000
        VSC_GRP_NAME_1       =  vscg0
        VSC_GRP_NAME_2       =  vscg4
        VSC_NON_MEMBER_GRP   =  vscg1
        VSC_NON_MEMBER_GID   =  3001
        VSC_NAMELESS_UID     =  9999
        VSC_NAMELESS_GID     =  9999
        VSC_GRP_ID_1         =  3000
        VSC_GRP_ID_2         =  3004
        POSIX1_SUPPORT       =  TRUE
        XPG4_SW_DEV          =  undefined
        VSC_XPG_SW_DEV       =  undefined
        VSC_XBS5_ILP32_OFF32_SUPPORT =  TRUE
        VSC_XBS5_ILP32_OFFBIG_SUPPORT = TRUE
        VSC_XBS5_LP64_OFF64_SUPPORT =   undefined
        VSC_XBS5_LPBIG_OFFBIG_SUPPORT = undefined
        VSC_DEFAULT_C89_PROG_ENV =      XBS5_ILP32_OFF32
        VSC_XOPEN_RT         =  undefined
        VSC_XOPEN_RTT        =  undefined
        VSC_XPG_FORT         =  undefined
        VSC_XPG_LEGACY       =  undefined
        VSC_DATE_CAN_SET     =  TRUE
        VSC_LOCALEDEF_OUTPUT_FTYPE =    file
        VSC_LOCALE_NAME      =  sample
        VSC_CHARMAP_FILE     =  /tsuites/VSC/AIX_config/nls/sample.char
        VSC_LOCALEDEF_FILE   =  /tsuites/VSC/AIX_config/nls/sample.src
        VSC_TRAP_NUMERIC_SIGS = TRUE
        VSC_IPC_KEY          =  0x0A000000
        VSC_OTHER_UID        =  3001
        VSC_OTHER_GID        =  3001
        VSC_UID0             =  3001
        VSC_UID1             =  3002
        VSC_UID2             =  3003
        VSC_GID0             =  3001
        VSC_GID1             =  3002
        VSC_GID2             =  3003
        VSC_OTHER_USER_NAME  =  vsc4
        VSC_OTHER_USER_UID   =  3004
        VSC_ASA_1            =  ^L
        VSC_ASA_P            =  ^H
        VSC_DOT_O_FILE       =  /tsuites/VSC/lib/posix_c/tcm.o
        VSC_EXE_FILE         =  /tsuites/VSC/bin/tcc
        VSC_FORT77_DLD       =  none
        VSC_TALKNAME         =  vsc4
        VSC_PS_SUPPORT       =  TRUE
        VSC_PRINTF_FLOAT_SUPPORT =      TRUE
        VSC_TERMIOS_SUPPORT  =  TRUE
        VSC_BYTE_SIZE        =  8
        VSC_LPDEST           =  lp0
        VSC_LPNODEST         =  bill
        VSC_LPSTAT           =  TRUE
        VSC_CANCEL           =  TRUE
        VSC_UULOG            =  TRUE
        VSC_UUNAME           =  TRUE
        VSC_UUPICK           =  TRUE
        VSC_UUTO             =  TRUE
        VSC_LP_MFLAG_SUPPORT =  TRUE
        VSC_LP_OFLAG_SUPPORT =  TRUE
        VSC_LP_TFLAG_SUPPORT =  TRUE
        VSC_LP_WFLAG_SUPPORT =  TRUE
        VSC_UUX_JFLAG_SUPPORT = TRUE
        VSC_MAIL_USER        =  vsc0
        VSC_MAIL_FILE        =  vsc0
        VSC_CHRDEV           =  YES
        VSC_BLKDEV           =  YES
        VSC_TEST_SUITE_FS    =  /dev/lv05
        VSC_TEST_SUITE_MOUNT_POINT =    /tsuites/VSC5.1.3
        VSC_OTHER_FS         =  /tsuites/testfs/vsc_rw
        VSC_RO_FS            =  /tsuites/testfs/vsc_ro
        VSC_LFS_MAX_FILE_SIZE = 2097151
        VSC_LFS_FS           =  /tsuites/testfs/LargeFileSystem
        VSC_CHR_DEV_FILE     =  /dev/vsc_ucd
        VSC_BLK_DEV_FILE     =  /dev/vsc_ubd
        VSC_STREAM_DEV       =  /dev/slog
        VSC_SXAF             =  Y
        VSC_MV_X_FS          =  TRUE
        VSC_LN_X_FS          =  undefined
        VSC_LINK_DIR_SUPPORT =  TRUE
        VSC_WPERM_TO_MV_DIR  =  undefined
        VSC_NO_MV_FILE_IN_USE = undefined
        VSC_LINK_MAX         =  32767
        VSC_DU_SZ            =  4096
        VSC_ICONV_FROM       =  ISO8859-1
        VSC_ICONV_TO         =  uucode
        VSC_ICONV_FROMFILE   =  /tsuites/VSC/AIX_config/README
        _L_SYS               =  oscc6
        _R_SYS               =  oscc10
        _R_SYS2              =  oscc6
        _L_PUBDIR            =  /var/spool/uucppublic
        _R_PUBDIR            =  /var/spool/uucppublic
        VSC_UUCP_XFER_DELAY  =  75
        VSC_UUCP_NOSUCH_SYS  =  nOsUcH_sYsTeM
        M_SPOOL_FILE         =  /usr/spool/mail/vsc0
        VSC_UUCP_JFLAG_SUPPORT =        TRUE
        VSC_SPACE            =  SPACE
        TET_VERSION          =  1.10
        TET_OUTPUT_CAPTURE   =  False
        TET_RESCODES_FILE    =  tet_code
        TET_EXEC_IN_PLACE    =  False
        TET_CLEAN_TOOL       =  cleantool


Copyright © 2001 International Business Machines Corporation.
All Rights Reserved.


Copyright © 2002 The Open Group. All Rights Reserved.

OSF/1, Motif, UNIX, and the "X" device are registered trademarks in the U.S. and other countries, and IT DialTone and The Open Group are trademarks of The Open Group.


[ Home ] [ Testing Home ] [ Send Feedback ]