#256 Java test-suite Makefile requires csh

closed-works-for-me
java (79)
1
2003-02-19
2003-02-11
F. Postma
No

Makefile in Examples/test-suite/java , run_test
command tries to set LD_LIBRARY_PATH using 'env'.
This doesn't work for me on HPUX running ksh.

Changing 'env' to 'export' (see below) fixed that.
However to make it portable it should be something like:
\tLD_LIBRARY_PATH="$*:$$LD_LIBRARY_PATH"
\texport LD_LIBRARY_PATH

(i.e. two commands)

run_testcase = \ (cd $*; javac *.java; ); \ if [ -f $*\_runme.java ]; then ( \ javac $*\_runme.java; \ export
LD_LIBRARY_PATH="$*:$$LD_LIBRARY_PATH"
PATH="$*:$$PATH" java $*\_runme;) \ fi;

Discussion

  • David M. Beazley

    • status: open --> closed
     
  • David M. Beazley

    Logged In: YES
    user_id=7557

    Run the tests using csh or bash.

     
  • David M. Beazley

    • assigned_to: nobody --> beazley
    • status: closed --> closed-works-for-me
     
  • F. Postma

    F. Postma - 2003-02-19

    Logged In: YES
    user_id=708808

    Why not adapt the test scripts so they DO run properly under
    ALL standard shells including /bin/sh or ksh ? I don't have
    bash on our HP-UX systems and I don't want to run csh,
    preferring ksh here.

    It's a minor change after all.

     
  • David M. Beazley

    Logged In: YES
    user_id=7557

    Patch doesn't work on Solaris. Won't modify.

     
  • David M. Beazley

    • priority: 5 --> 1
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks