Alex,
It is a long term goal to replace as many shell tests as possible in the
langtools
repository, typically with Java equivalents. For the short term,
Martin's suggestion
is a good one. I'd be happy to work with you on short or medium term changes
if you want to help.
-- Jon
Martin
Of course, the non-portable constructs in the shell scripts come from
a long term mindset of if it's not solaris or linux, it must be windows.
Better would be if it's not windows, it must be unix
Very compactly (untested):
case `uname -s` in
Windows* | CYGWIN*) NULL=NUL PS=; FS=\\ ;;
*)
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