From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1USWmB-0005LE-Q0 for ltp-list@lists.sourceforge.net; Wed, 17 Apr 2013 18:08:11 +0000 Date: Wed, 17 Apr 2013 20:09:01 +0200 From: chrubis@suse.cz Message-ID: <20130417180901.GA30553@rei> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [LTP] Is running from a read-only path supported? List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Ismael Farf??n Cc: ltp-list@lists.sourceforge.net 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