public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: chrubis@suse.cz
To: Sedat Dilek <sedat.dilek@gmail.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] How to run only a specific test series like for example IPC?
Date: Mon, 24 Jun 2013 13:53:14 +0200	[thread overview]
Message-ID: <20130624115313.GA1638@rei> (raw)
In-Reply-To: <CA+icZUXJ_PAUPTrJqF013yowkpDgGtrOgnTnDy0Qj_iNCokorA@mail.gmail.com>

Hi!
> I wanted to only run the IPC tests as I have troubles with IPC(-MSG)
> in Linux-Next.
> 
> This is what I did...
> 
> root# cd /opt/ltp/
> 
> root# ./runltp ./runtest/ipc
> 
> ...is that the correct way? Wrong?

I belive that the syntax is ./runltp -f ipc

Also there are additional tests for POSIX IPC in open_posix_testsuite
that are not executed by the runltp script.

> Unfortunately, this fails due to EXT4-fs troubles...
> ...
> mke2fs 1.42 (29-Nov-2011)
> Filesystem label=
> OS type: Linux
> Block size=1024 (log=0)
> Fragment size=1024 (log=0)
> Stride=0 blocks, Stripe width=0 blocks
> 32 inodes, 236 blocks
> 11 blocks (4.66%) reserved for the super user
> First data block=1
> 1 block group
> 8192 blocks per group, 8192 fragments per group
> 32 inodes per group
> 
> Allocating group tables: done
> Writing inode tables: done
> 
> Filesystem too small for a journal <--- ???
> Writing superblocks and filesystem accounting information: mount:
> /dev/loop1 already mounted or /tmp/ltp-p5uaFntNJE/mnt_pnt.u44xDV busy
> FATAL: can't mount block device /dev/loop1.
> root@fambox:/opt/ltp# done

There are certain testcases that needs a separate filesystem partition
to play with, if you don't pass physical disk partition to the runtest
script a loopback device is created, formatted and mounted.

> 10240+0 records in
> 10240+0 records out
> 10240000 bytes (10 MB) copied, 0.260004 s, 39.4 MB/s
> ^C
> 
> root# dmesg | tail
> 
> [   78.095907] EXT4-fs (loop1): VFS: Can't find ext4 filesystem <--- ???

This simply looks like the 10MB image is not enough for the ext4 journal
for some reason.

Try following patch that increases the size to 100MB.

diff --git a/runltp b/runltp
index a8bf404..7955f44 100755
--- a/runltp
+++ b/runltp
@@ -984,7 +984,7 @@ main()
 create_block()
 {
     #create a block device with ext4 filesystem.
-    dd if=/dev/zero of=${TMP}/test.img bs=1kB count=10240 &>/dev/null
+    dd if=/dev/zero of=${TMP}/test.img bs=1kB count=102400 &>/dev/null
     if [ $? -ne 0 ]; then
         echo "Failed to create loopback device image, please check disk space and re-run"
         return 1
-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  parent reply	other threads:[~2013-06-24 11:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-23 13:09 [LTP] How to run only a specific test series like for example IPC? Sedat Dilek
2013-06-24 11:34 ` Carlos Hernandez
2013-06-24 11:53 ` chrubis [this message]
     [not found]   ` <CA+icZUXgSW5Ha8ZQSepZXQzFx35nrR96AQ7SZun5zRrHFN_j-w@mail.gmail.com>
2013-06-25 12:48     ` chrubis
     [not found]       ` <CA+icZUUWAWObVLtPXug1YFFOUhB9P-5W88SbN4CebzOC-yGCwg@mail.gmail.com>
2013-06-25 13:11         ` chrubis
2013-06-25 13:24           ` chrubis
     [not found]             ` <CA+icZUUFx4+s3fdoqnU0JHQBRn-tth8Bh5AKO9BD83w8pRiMbA@mail.gmail.com>
     [not found]               ` <CA+icZUVfYPbvWG8ZaRnMVB3UFSU7QGpOz2DpssamP95f__rmtg@mail.gmail.com>
2013-06-25 13:33                 ` chrubis
     [not found]                   ` <CA+icZUUnuj1yS_bVULAUgGKvOMLYMMCp-UQ45hdUxiG03VYiBg@mail.gmail.com>
     [not found]                     ` <CA+icZUXAs1Sxni1EYKbHhm3cQwDCP4+sZ3OX2GjT6ZC5Og7e6A@mail.gmail.com>
     [not found]                       ` <CA+icZUW=ik31LeStPYYLCbf9dqguVN6GMG1+GMaRwgDcy=pCNw@mail.gmail.com>
2013-06-25 13:58                         ` chrubis
     [not found]           ` <CA+icZUUvJ6k8YD88t=ONv95hGBidrkXuzFtQfkS+Qq6=2Q=-bA@mail.gmail.com>
2013-06-25 13:31             ` chrubis
     [not found]   ` <CA+icZUU_kFw76obbvVHtiHNL0HK7D7avAZnbZcfSHZQECAZjCQ@mail.gmail.com>
2013-06-25 14:37     ` chrubis

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=20130624115313.GA1638@rei \
    --to=chrubis@suse.cz \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=sedat.dilek@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox