[NEW BUG] Running jtreg tests on NetBSD

Alex Potanin Alex.Potanin at mcs.vuw.ac.nz
Wed Jun 25 01:51:56 UTC 2008


Hello,

I am working on the javac extension and I tried to run the javac tests 
in the OpenJDK's latest Mercurial repository.

I see that a few of them contain the following in the shell scripts:

# set platform-dependent variables
OS=`uname -s`
case "$OS" in
   SunOS | Linux )
     NULL=/dev/null
     PS=":"
     FS="/"
     ;;
   Windows* )
     NULL=NUL
     PS=";"
     FS="\\"
     ;;
   * )
     echo "Unrecognized system!"
     exit 1;
     ;;
esac

Since I use NetBSD, my 'uname -s' returns NetBSD.

I had to add "| NetBSD" to the "SunOS | Linux" line to fix the test 
scripts so that they don't return "Unrecognized system!".

Some of the affected scripts are:

tools/javac/4846262/Test.sh
tools/javac/6302184/T6302184.sh
tools/javac/ClassPathTest/ClassPathTest.sh

But there are others that I can find if required (I suspect grepping 
will do a good job).

I was wondering if it can please be fixed to take NetBSD into account or 
whether there is a better way of fixing this?

Thanks,
Alex.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Alex_Potanin.vcf
Type: text/x-vcard
Size: 375 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20080625/313e8447/Alex_Potanin.vcf>


More information about the build-dev mailing list