Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4742121

TEST_BUG: REG-TESTS: hardcoded path to cc compiler

    XMLWordPrintable

Details

    • 02
    • x86, sparc
    • solaris_8, solaris_9

    Backports

      Description



        Name: icR10030 Date: 09/05/2002


        Filed By : J2SE-SQA [###@###.###
        JDK : jdk1.4.1-b21
        Testbase : Regression testsuite
        Platform[s] : Solaris x86
        Failing Test : CTE_REGTEST/Generic/4363638/Test4363638.sh
                         CTE_REGTEST/Generic/4418873/Test4418873.sh
                         CTE_REGTEST/Generic/4475963/Test4475963.sh

        Here is the part of the CTE_REGTEST/Generic/4363638/Test4363638.sh
        ..
        case "$OS" in
          SunOS )
            NULL=/dev/null
            PS=":"
            FS="/"
            if [ `uname -p` = 'sparc' ]
            then
                M_TYPE="sparc"
            else
                M_TYPE="i386"
            fi

            cp ${TESTSRC}${FS}sig_test.c .

            echo "INC=\"-I${TESTJAVA}${FS}include -I${TESTJAVA}${FS}include${FS}solaris\"" > t.ksh
            echo "LIB=\"-L${TESTJAVA}${FS}jre${FS}lib${FS}$M_TYPE\"" >> t.ksh
            echo "LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:${TESTJAVA}${FS}jre${FS}lib${FS}$M_TYPE" >> t.ksh
            echo "export LD_LIBRARY_PATH" >> t.ksh
            
            echo "PATH=/usr/ccs/bin:/usr/dist/pkgs/devpro,v4.2/5.x-`uname -p`/bin:/bin:/usr/bin:/usr/openwin/bin:/usr/dt/bin:/usr/sbin:/sbin:/usr/ucb:/usr/local/bin:/usr/dist/local/exe:/usr/dist/exe:/usr/lib/lp/postscript:.:$PATH:${TESTJAVA}${FS}bin" >> t.ksh
            
            echo "cc -mt \${INC} \${LIB} -o sig_test sig_test.c -ljvm" >> t.ksh
            
            ksh t.ksh

            LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${TESTJAVA}${FS}jre${FS}lib${FS}$M_TYPE
            export LD_LIBRARY_PATH
            ;;
        ..

        The tests supposes that cc compiler can be found in
        /usr/dist/pkgs/devpro,v4.2/5.x-`uname -p`/bin
        But this is not right outside of the SUN's network.
        Also, the LM_LICENSE_FILE var needs to be passed to test's script.

        jtr file location:
        ==================
        /net/jtgb4u4c.eng/export/sail15/results/hopper/b21/regtest/x86/sol8_x86_linux-10/workDir/cte/CTE_REGTEST/Generic/4363638/Test4363638.jtr

        How to reproduce:
        =================
        Run the test outside of the SUN.

        Test output:
        ============
        License Error : The license for this product(Sun WorkShop Compiler C Intel) has expired
        Feature has expired
        Feature:workshop.c.x86
        Expire date:15-jan-2002
        FLEXlm error:-10,32.
        cc: acomp failed for sig_test.c
        /net/linux-15/export/home/java/regtest/cte/CTE_REGTEST/Generic/4363638/Test4363638.sh: ./sig_test: not found
        result: Failed. Execution failed: exit code 1


        test result: Failed. Execution failed: exit code 1

        Specific Machine Info:
        ======================
        Hostname: linux-10
        Os: SunOS linux-10 5.8 Generic_108529-15 i86pc i386 i86pc

        ======================================================================

        Attachments

          Issue Links

            Activity

              People

                asaha Abhijit Saha
                ichesunw Iche Iche (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: