Olivier, I slightly modified your patch in order to simplify the code and it is in.
Thanks, ----- "Olivier LAHAYE" <olivier.lah...@cea.fr> a écrit : > Patch against trunk (svn 9147) > > 1st patch: SGE.pm (oscar/packages/sge/scripts/SGE.pm) > This patch fixes the search path for test_sge is $ENV{OSCAR_HOME} is > not defined (typicaly when installed from a linux distribution > package) > This fix may not be the good one, but it is the simplest one for now. > 2nd patch: fixes oscar/scripts/test_cluster so it can find test > programs. > > Problem: > if Oscar is installed from tarballs, package and test scripts are > located under the same tree: > PKG: OSCAR_HOME}/packages/$pkg > TEST: SCAR_HOME}/packages/$pkg/testing/ > if Oscar is installed from linux distribution packages, package and > test scripts are not located at the same place: > PKG: /var/lib/oscar/packages/$pkg > TEST: /var/lib/oscar/testing/$pkg/$test > > @OSCAR::PackagePath::PKG_SOURCE_LOCATIONS points to PGK repository and > cannot be used for fetching tests programs. If we redefine this > variable, then we need to path Oscar code at many places. > > Some test programs are also placed here: /usr/share/oscar/testing/ > > > So before committing this patch, it may be easier to decide were test > programs are and place all of them in a unique and logic location (and > patch once for all). > > Best regards, > > Olivier. > > PS: With this patch test_cluster can run the packages tests: > [r...@is005760 testing]# (cd /usr/share/oscar/testing ; > ./test_cluster) > Performing root tests... > /home mounts > > [PASSED] > > Preparing user tests... > Performing user tests... > SSH ping test > > [PASSED] > SSH server->node > > [PASSED] > SSH node->server > > [PASSED] > SGE test > > [PASSED] > X11 connection rejected because of wrong authentication. > X11 connection rejected because of wrong authentication. > X11 connection rejected because of wrong authentication. > LAM/MPI (via SGE) > > [PASSED] > X11 connection rejected because of wrong authentication. > X11 connection rejected because of wrong authentication. > X11 connection rejected because of wrong authentication. > MPICH (via SGE) > > [FAILED] > X11 connection rejected because of wrong authentication. > X11 connection rejected because of wrong authentication. > X11 connection rejected because of wrong authentication. > Open MPI (via SGE) > > [FAILED] > Ganglia setup test > > [FAILED] > PVM (via SGE) > > [FAILED] > oscartst has deleted job 9 > > now, I'm looking at tests failures. > > -- > Olivier LAHAYE > CEA Saclay > DRT-LIST-DETECS-SSTM > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > > _______________________________________________ > Oscar-devel mailing list > Oscar-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/oscar-devel ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Oscar-devel mailing list Oscar-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oscar-devel