All of lore.kernel.org
 help / color / mirror / Atom feed
From: Garrett Cooper <yanegomi@gmail.com>
To: Iranna D Ankad <iranna.ankad@in.ibm.com>
Cc: Rishikesh K Rajak <risrajak@in.ibm.com>,
	"ltp-list@lists.sourceforge.net" <ltp-list@lists.sourceforge.net>,
	Serge E Hallyn <sergeh@us.ibm.com>
Subject: Re: [LTP] LTP's filecaps test gives false positive results
Date: Tue, 2 Mar 2010 08:39:11 -0800	[thread overview]
Message-ID: <BB670926-F9B2-4718-AD8B-B69985C39308@gmail.com> (raw)
In-Reply-To: <OF3DD1AE6A.65D45C56-ON652576DA.002F585D-652576DA.00384F54@in.ibm.com>


[-- Attachment #1.1: Type: text/plain, Size: 3338 bytes --]

On Mar 2, 2010, at 2:11 AM, Iranna D Ankad <iranna.ankad@in.ibm.com>  
wrote:

>
> Hello ..
> When I am trying to run LTP's filecaps test, it does not actually  
> run the test, but ltp-pan report test PASSED.
> This is happening in the latest LTP (ltp-full-20100228), including  
> couple of past LTP releases (ex. November, December releases)


> remove test cases which require the block device.
> You can specify it with option -b
> COMMAND:    /opt/ltp/bin/ltp-pan  -e -S   -a 12064     -n 12064  -p   
> -f /tmp/ltp-P00GfUUqLS/alltests -l /opt/ltp/results/ 
> LTP_RUN_ON-2010_Mar_02-04h_14m_57s.log  -C /opt/ltp/output/ 
> LTP_RUN_ON-2010_Mar_02-04h_14m_57s.failed
> LOG File: /opt/ltp/results/LTP_RUN_ON-2010_Mar_02-04h_14m_57s.log
> FAILED COMMAND File: /opt/ltp/output/ 
> LTP_RUN_ON-2010_Mar_02-04h_14m_57s.failed
> Running tests.......
> <<<test_start>>>
> tag=Filecaps stime=1267521297
> cmdline="filecapstest.sh"
> contacts=""
> analysis=exit
> <<<test_output>>>
> incrementing stop
> Filecaps 0 CONF : System doesn't support execution of the test
> setcap not installed. Please install libcap-2.11 or newer from
> ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2
> <<<execution_status>>>
> initiation_status="ok"
> duration=0 termination_type=exited termination_id=0 corefile=no
> cutime=0 cstime=0
> <<<test_end>>>
> INFO: ltp-pan reported all tests PASS
> LTP Version: LTP-20100131

The _libraries and apps_ are installed, not the _headers_.

> LTP reports setcap is installed, but actually, my system has setcap  
> installed, along with all required libcap related rpms.
>
> mx3950:/opt/ltp # setc
> setcap      setconsole  setctsid
> mx3950:/opt/ltp #
>
> mx3950:/opt/ltp # rpm -qa | grep cap
> libcap1-1.10-6.10
> libcap2-2.11-2.15
> libcap-progs-2.11-2.15
> libpcap0-0.9.8-50.4.32
> libcap2-32bit-2.11-2.15
> libcap1-32bit-1.10-6.10
> mx3950:/opt/ltp #
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> ---------------------------------------------------------------------
>
>
> Here is the false positive log, which shows test PASSED, without  
> actually running the test.

The problem is that TCONF should return 0 (in this case the library's  
functionality isn't available on the running system, so the tests  
can't be run).

I don't see a problem with this 'error' -- the problem I see that  
needs to be rectified is the -devel packages need to be installed on  
the machine.

> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> --- 
> ---------------------------------------------------------------------
>
> mx3950:/opt/ltp # cat results/LTP_RUN_ON-2010_Mar_02-04h_14m_57s.log
> Test Start Time: Tue Mar  2 04:14:57 2010
> -----------------------------------------
> Testcase                       Result     Exit Value
> --------                       ------     ----------
> Filecaps                       PASS       0
> -----------------------------------------------
> Total Tests: 1
> Total Failures: 0
> Kernel Version: 2.6.32.8-default
> Machine Architecture: x86_64
> Hostname: mx3950
>
> mx3950:/opt/ltp #

Thanks,
-Garrett

[-- Attachment #1.2: Type: text/html, Size: 7146 bytes --]

[-- Attachment #2: Type: text/plain, Size: 345 bytes --]

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

      parent reply	other threads:[~2010-03-02 16:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-02 10:11 [LTP] LTP's filecaps test gives false positive results Iranna D Ankad
2010-03-02 15:21 ` Serge E. Hallyn
2010-03-02 16:25   ` Garrett Cooper
2010-03-02 17:35     ` Serge E. Hallyn
2010-03-02 18:25       ` Garrett Cooper
2010-03-03  5:56         ` Rishikesh K Rajak
2010-03-03  9:14           ` Garrett Cooper
2010-03-03  9:23             ` Rishikesh K Rajak
2010-03-03 16:00             ` Serge E. Hallyn
2010-03-18  9:25             ` Rishikesh K Rajak
2010-03-18 14:55               ` Serge E. Hallyn
2010-03-18 19:13                 ` Garrett Cooper
2010-03-02 16:39 ` Garrett Cooper [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BB670926-F9B2-4718-AD8B-B69985C39308@gmail.com \
    --to=yanegomi@gmail.com \
    --cc=iranna.ankad@in.ibm.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=risrajak@in.ibm.com \
    --cc=sergeh@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.