From: Garrett C. <yan...@gm...> - 2010-01-13 18:02:30
|
On Wed, Jan 13, 2010 at 8:52 AM, Lucio Correia <lj...@br...> wrote: > Hi Garrett, > > I'm running on a ppc64 machine. > > >From ltp all tests run .log file: > > lchown02 7 TPASS : lchown() fails, Path contains regular file, > errno:20 > sh: run_libevent.sh: command not found > link01 1 TPASS : link(2) to a symbolic link, which is pointing > to an existing object file worked - file created and link count adjusted > > I searched for run_libevent.sh and found it > at /opt/ltp/testcases/bin/libevent dir. > > I'm running it manually by (same commands .failcmdfile gives): > > # export LTPROOT; run_libevent.sh > bash: run_libevent.sh: command not found > # export LTPROOT; ./testcases/bin/libevent/run_libevent.sh > Running tests: > KQUEUE > Skipping test > POLL > Skipping test > SELECT > Skipping test > RTSIG > Skipping test > EPOLL > Skipping test > libevent01 0 TINFO : Cleaning up. > > Thanks, What's your $PATH, and where do you expect it to be? I ask because the runtest file is doing the right thing today: optimus ltp # grep -r run_libevent.sh runtest/ runtest/syscalls:libevent01 export LTPROOT; $LTPROOT/testcases/bin/libevent/run_libevent.sh Thanks, -Garrett > On Tue, 2010-01-12 at 02:21 -0800, Garrett Cooper wrote: >> On Mon, Jan 11, 2010 at 10:41 AM, Lucio Correia <lj...@br...> wrote: >> > Hi Garrett, >> > >> > I'm still running into this issue with LTP-20091231 >> >> Hi Lucio, >> What's the error message and how are you trying to run the test? >> Thanks, >> -Garrett >> >> > On Fri, 2009-12-11 at 01:56 -0800, Garrett Cooper wrote: >> >> On Dec 10, 2009, at 3:57 PM, Mitani wrote: >> >> >> >> > Hi, >> >> > >> >> > I got following message when I ran test of "libevent01" with >> >> > ltp-2009-12-10 cvs. >> >> > >> >> > ------------ >> >> > sh: run_libevent.sh: command not found >> >> > ------------ >> >> > >> >> > This occured because "run_libevent.sh" was not installed under the >> >> > "/opt/ltp" directory, I think. >> >> > >> >> > Certainly, this test successed when I copied >> >> > "${LTPROOT}/testcases/kernel/syscalls/libevent/run_libevent.sh" file >> >> > to the "/opt/ltp/testcases/bin" directory. >> >> > >> >> > So, I want to suggest the following revision: >> >> > >> >> > 1. Install "run_libevent.sh" to under the "/opt/ltp/testcases/bin" >> >> > directory by default. >> >> > (I don't know how to revise Makefile etc.) >> >> > >> >> > 2. Apply the following patch to "run_libevent.sh". >> >> > >> >> > ============ >> >> > --- run_libevent.sh 2009-11-20 04:08:36.000000000 +0900 >> >> > +++ run_libevent.sh.new 2009-12-10 16:44:02.000000000 +0900 >> >> > @@ -31,7 +31,7 @@ >> >> > tst_resm TCONF "You need to be root to run these tests" >> >> > TST_EXIT=0 >> >> > else >> >> > - "$LTPROOT/testcases/bin/tests/test-libevent.sh" >> >> > + "$LTPROOT/testcases/bin/libevent/test/test-libevent.sh" >> >> > TST_EXIT=$? >> >> > fi >> >> > tst_cleanup >> >> > ============ >> >> >> >> Done -- thanks! > > |