public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: chrubis@suse.cz
To: Ismael Farf??n <sulfurfff@gmail.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] Is running from a read-only path supported?
Date: Wed, 17 Apr 2013 20:09:01 +0200	[thread overview]
Message-ID: <20130417180901.GA30553@rei> (raw)
In-Reply-To: <CANXECd6HvF8LTCfkhjv_nn_gC1zgOJ_u_4401k_LptG9WUuzYA@mail.gmail.com>

Hi!
> First of, thanks for your effort writing all this bunch of tests, It's
> really helpful.
> 
> We are running LTP to test the correct behavior of a FileSystem
> mounted in /mnt, however I installed ltp in /read/only/NFS/export/ltp.
> 
> I've already changed ltprun [1] so that it writes the failed log in
> TMP (which should point to /mnt) instead of LTPBIN, but there are a
> bunch of tests creating files in "." instead of TMPDIR, and for what
> I've seen "." is actually LTPBIN for some tests which in our case is
> read-only.

Such tests are buggy and needs to be fixed.

Just send a patch against latest git with Signed-off-by line and I will
apply it right away.

> Also, I can't pass a base directory to run on to many of the tests,
> take [2] as example where I patched it to write to TMPDIR.

We have a interface that automatically setups temporary directory for
the test. All that is needed is that the test calls tst_tmpdir() at the
start and tst_rmdir() at the end and, if needed, in the cleanup().

See include/test.h for details.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2013-04-17 18:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-17 17:23 [LTP] Is running from a read-only path supported? Ismael Farfán
2013-04-17 18:09 ` chrubis [this message]
2013-04-23 14:08   ` 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=20130417180901.GA30553@rei \
    --to=chrubis@suse.cz \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=sulfurfff@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