[LTP] NFS testcase error
Hi, During the execution of NFS testcase in ARM architechture, 5 out of 8 tests are failing. There is very strange kind of error occuring in few tests which i am not able to track, actually what is happening is that, instead of looking for the file say /opt/ltp/testcases bin/nfs02 it is looking for /opt/ltp/testcases bin/nfs02493 or something like this kind of random file, which does not exists. Hence occurs Permission denied and test fails. This problem is also in few other tests, but here i am telling you this problem with reference to NFS testcase. I am also sending you the log of the testcase, please suggest ways to correct it and why this occurs. Ltp version Ltp-intermediate-20100228 Processorarmv7 processor Kernel version 2.6.32 (LSP3.0-alpha) INFO: creating /opt/ltp/results directory If some fields are empty or look unusual you may have an old version. Compare to the current minimal requirements in Documentation/Changes. Linux 192.168.1.10 2.6.32 #2 SMP Fri Aug 27 12:31:08 IST 2010 armv7l unknown unknown GNU/Linux Gnu C gcc (GCC) 4.5.0 Gnu make 3.81 util-linux ng 2.16.1) mount ng 2.16.1 (with libblkid support) modutils 3.1 e2fsprogs 1.41.9 PPP2.4.4 Linux C Library2.10.1 Dynamic linker (ldd) 2.10.1 Linux C++ Library 6.0.14 Procps 100. Net-tools 1.60 iproute2 iproute2-ss100224 Console-tools 0.2.3 Sh-utils 5.2.1 Modules Loaded free reports: total used free sharedbuffers cached Mem:26 58804 196752 0 0 45884 -/+ buffers/cache: 12920 242636 Swap:0 0 0 /proc/cpuinfo Processor : ARMv7 Processor rev 1 (v7l) processor : 0 BogoMIPS : 996.14 processor : 1 BogoMIPS : 996.14 Features : swp half thumb fastmult vfp edsp vfpv3 vfpv3d16 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x1 CPU part : 0xc09 CPU revision : 1 Hardware : ST-SPEAR1300-EVB Revision : Serial : remove test cases which require the block device. You can specify it with option -b COMMAND:/opt/ltp/bin/ltp-pan -e -S -a 375 -n 375 -p -f /tmp/ltp-aCaatAb381/alltests -l /opt/ltp/results/nfs.result -C /opt/ltp/output/LTP_RUN_ON-nfs.result.failed LOG File: /opt/ltp/results/nfs.result FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-nfs.result.failed Running tests... test_start tag=nfs01 stime=351719851 cmdline=export VERSION SOCKET_TYPE; TCbin=$LTPROOT/testcases/bin nfs01 contacts= analysis=exit test_output /opt/ltp/testcases/bin/nfs01: line 203: test_resm: command not found execution_status initiation_status=ok duration=1 termination_type=exited termination_id=0 corefile=no cutime=2 cstime=7 test_end test_start tag=nfs02 stime=351719852 cmdline=export VERSION SOCKET_TYPE; TCbin=$LTPROOT/testcases/bin nfs02 contacts= analysis=exit test_output do_setup nfs02 Test Options: VERSION: 2 RHOST: 192.168.1.10 SOCKET_TYPE: udp NFS_TYPE: nfs TESTDIR: /tmp/nfs02493.testdir Permission denied. do_cleanup nfs02 umount: /opt/ltp/testcases/bin/nfs02493: not found rmdir: `/opt/ltp/testcases/bin/nfs02493': No such file or directory Permission denied. Permission denied. Test Failed: Could not create /tmp/nfs02493.testdir from 192.168.1.10 execution_status initiation_status=ok duration=3 termination_type=exited termination_id=1 corefile=no cutime=6 cstime=15 test_end test_start tag=nfs03 stime=351719855 cmdline=export VERSION SOCKET_TYPE; TCbin=$LTPROOT/testcases/bin nfs03 contacts= analysis=exit test_output Test Options: VERSION: 2 SOCKET_TYPE: udp TESTDIR: /tmp/nfs03507.testdir RHOST: 192.168.1.10 NFS_TYPE: nfs Test Parameters: Number of Directories: 100 Number of Files per Directory: 100 Number of nfsds tested: 1 Setting up remote machine: 192.168.1.10 Permission denied. Cleaning up testcase umount: /opt/ltp/testcases/bin/nfs03507: not mounted Cannot umount /opt/ltp/testcases/bin/nfs03507 Permission denied. Permission denied. Permission denied. Test Failed: Could not create remote directory execution_status initiation_status=ok duration=2 termination_type=exited termination_id=1 corefile=no cutime=8 cstime=18 test_end test_start tag=nfs04 stime=351719857 cmdline=export VERSION SOCKET_TYPE; TCbin=$LTPROOT/testcases/bin nfs04 contacts= analysis=exit test_output Test Options: VERSION: 2 RHOST: 192.168.1.10 FILESIZE: 10 SOCKET_TYPE: udp TESTDIR: /tmp/nfs04525.testdir NFS_TYPE: nfs LOOPS: 1 nfs04 0 TINFO : Setting up remote machine: 192.168.1.10 Permission denied. umount: /tmp/nfs04525: not mounted nfs04 1 TBROK : Cannot umount /tmp/nfs04525 Permission denied. Permission denied. nfs04 1 TFAIL : Test Failed: Could not create remote directory
[LTP] [PATCH 1/1] securebits: fix running of testcases
Exit as soon as one breaks. Heck, clean it up by letting set -e do it for me. Signed-off-by: Serge Hallyn serge.hal...@canonical.com --- .../kernel/security/securebits/run_securebits.sh | 18 +- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/testcases/kernel/security/securebits/run_securebits.sh b/testcases/kernel/security/securebits/run_securebits.sh index 4d9e272..19df70c 100644 --- a/testcases/kernel/security/securebits/run_securebits.sh +++ b/testcases/kernel/security/securebits/run_securebits.sh @@ -1,20 +1,12 @@ #!/bin/sh +set -e + echo testing keepcaps check_keepcaps 1 -tmp=$? -if [ $tmp -ne 0 ]; then - exit_code=$tmp -fi + check_keepcaps 2 -tmp=$? -if [ $tmp -ne 0 ]; then - exit_code=$tmp -fi + check_keepcaps 3 -tmp=$? -if [ $tmp -ne 0 ]; then - exit_code=$tmp -fi -exit $exit_code +exit 0 -- 1.7.1 -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev ___ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] smack testcase
On Wed, Oct 20, 2010 at 5:55 AM, Serge E. Hallyn serge.hal...@canonical.com wrote: Quoting ARJIT SHARMA (joyar...@gmail.com): Hi, Inside the smack testcase, the sript smack_common.sh has a function named check_onlycap() , please tell me its functionality as every time this function is reporting that onlycap is not the expected . the log of the testcase is as follows--- Yeah the check seems backward. Does this patch help? From efe6116a6b284bb409b7fe9946cf990092183650 Mon Sep 17 00:00:00 2001 From: Serge Hallyn serge.hal...@canonical.com Date: Wed, 20 Oct 2010 07:54:21 -0500 Subject: [PATCH 1/1] Fix inverted logic testing for string which is NOT empty Signed-off-by: Serge Hallyn serge.hal...@canonical.com --- testcases/kernel/security/smack/smack_common.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/security/smack/smack_common.sh b/testcases/kernel/security/smack/smack_common.sh index eb339f3..25405fe 100755 --- a/testcases/kernel/security/smack/smack_common.sh +++ b/testcases/kernel/security/smack/smack_common.sh @@ -36,7 +36,7 @@ check_mounted() { check_onlycap() { onlycap=`cat $smackfsdir/onlycap 2/dev/null` - if [ -z $onlycap ]; then + if [ ! -z $onlycap ]; then cat EOM The smack label reported for $smackfsdir/onlycap is $onlycap, not the expected . EOM Yes, the logic was backwards. Please try the code I just pushed to git to see whether or not it works for you (its intent is like Serge's, but I improved the mount check as well, as it previously just checked to see whether or not the directory existed, which was silly). Thanks! -Garrett -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list