On Tue, 2008-09-02 at 20:09 +0530, Rishikesh K. Rajak wrote:
> Hi Subrata,
>
> I am not sure someone has reported this problem or not, but i am
> getting this error while running connectors.
>
> Below i am providing the result for different kernel version and for
> different machine with last three month LTP released.
<snip>
> ==========================With Latest
> Release=========================================
>
>
> LOG
> File: /root/ltp-full-20080831/results/LTP_RUN_ON-2008_Sep_02-14h_23m_09s.log
> FAILED COMMAND
> File: /root/ltp-full-20080831/output/LTP_RUN_ON-2008_Sep_02-14h_23m_09s.failed
> Running tests.......
> <<<test_start>>>
> tag=Connectors stime=1220345590
> cmdline="connector_test.sh"
> contacts=""
> analysis=exit
> initiation_status="pan(13770): execvp of 'connector_test.sh' (tag
> Connectors) failed. errno:2 No such file or directory"
> <<<test_output>>>
> <<<execution_status>>>
> duration=0 termination_type=exited termination_id=2 corefile=no
> cutime=0 cstime=0
> <<<test_end>>>
> incrementing stop
> INFO: pan reported all tests PASS
> LTP Version: LTP-20080831
>
> =======================================================================
>
> Thanks
>
> Rishi
I'd guess LTPROOT is being setup by the connectors test scripts
improperly. Please give this patch a try -- I haven't tested it myself
yet.
The patch does some additional unrelated cleanup which should be ok for
testing purposes. It will need to be split up for submission...
Signed-off-by: Matt Helsley <[EMAIL PROTECTED]>
---
testcases/kernel/connectors/Makefile | 11 +++--------
testcases/kernel/connectors/connector_test.sh | 5 -----
testcases/kernel/connectors/pec/run_pec_test | 15 ++++-----------
3 files changed, 7 insertions(+), 24 deletions(-)
Index: ltp-intermediate-20080820/testcases/kernel/connectors/pec/run_pec_test
===================================================================
--- ltp-intermediate-20080820.orig/testcases/kernel/connectors/pec/run_pec_test
+++ ltp-intermediate-20080820/testcases/kernel/connectors/pec/run_pec_test
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/bin/bash
################################################################################
##
##
@@ -26,12 +26,6 @@ NUM_EVENTS=1
EVENT_TEST_CASES=( "fork" "exec" "exit" "uid" "gid" )
[EMAIL PROTECTED]
-if [ -z $LTPROOT ]; then
- LTPROOT="`cd ../../../.. && pwd`"
- PATH="$PATH:$LTPROOT/testcases/bin"
- mkdir $LTPROOT/output 2> /dev/null
-fi
-
cd $LTPROOT/testcases/bin
export TCID="pec01"
@@ -54,14 +48,14 @@ run_case()
export TST_COUNT=$1
log="$LTPROOT/output/log"
- mkdir $log 2> /dev/null
+ mkdir -p $log 2> /dev/null
- ./pec_listener > "$log/listener_$1.log" 2>&1 &
+ pec_listener > "$log/listener_$1.log" 2>&1 &
pid=$!
# Wait for pec_listener to start listening
sleep $((1*NUM_EVENTS))
- ./event_generator -e $2 > "$log/generator_$1.log"
+ event_generator -e $2 > "$log/generator_$1.log"
ret1=$?
# Sleep until pec_listener has seen and handled all of
@@ -100,4 +94,3 @@ for CASE in "[EMAIL PROTECTED]" ; d
done
exit $exit_status
-
Index: ltp-intermediate-20080820/testcases/kernel/connectors/connector_test.sh
===================================================================
--- ltp-intermediate-20080820.orig/testcases/kernel/connectors/connector_test.sh
+++ ltp-intermediate-20080820/testcases/kernel/connectors/connector_test.sh
@@ -1,10 +1,5 @@
#!/bin/bash
-if [ -z $LTPROOT ]; then
- export LTPROOT="`cd ../../.. && pwd`"
- export PATH="$PATH:$LTPROOT/testcases/bin"
-fi
-
tst_kvercmp 2 6 15
if [ $? -eq 0 ]; then
echo "Connectors 0 CONF : system doesn't support execution of the test"
Index: ltp-intermediate-20080820/testcases/kernel/connectors/Makefile
===================================================================
--- ltp-intermediate-20080820.orig/testcases/kernel/connectors/Makefile
+++ ltp-intermediate-20080820/testcases/kernel/connectors/Makefile
@@ -1,18 +1,13 @@
SUBDIRS = pec
all:
- @set -e; \
- if ../../bin/tst_kvercmp 2 6 15; then \
- echo "system does not support process event connector"; \
- else for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done; true; fi
+ @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
install:
@set -e; \
ln -f connector_test.sh ../../bin/connector_test.sh; \
chmod ugo+x connector_test.sh; \
- if ../../bin/tst_kvercmp 2 6 15; then \
- echo "system does not support process event connector"; \
- else for i in $(SUBDIRS); do $(MAKE) -C $$i install; done; true; fi
+ for i in $(SUBDIRS); do $(MAKE) -C $$i $@ ; done
clean:
- @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clean ; done
+ @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i $@ ; done
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list