All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/11] runtests.sh: Make test bit more generic
@ 2010-01-29 20:28 Sukadev Bhattiprolu
       [not found] ` <20100129202842.GA25490-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Sukadev Bhattiprolu @ 2010-01-29 20:28 UTC (permalink / raw)
  To: serue-r/Jw6+rmf7HQT0dZR+AlfA; +Cc: Containers


From: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
Date: Fri, 22 Jan 2010 11:53:01 -0800
Subject: [PATCH 01/11] runtests.sh: Make test bit more generic

Remove hardcoding of test case name so it is a bit more generic
(although other test cases can't use this script as is).

Signed-off-by: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
---
 fileio/runtests.sh |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)
 mode change 100755 => 100644 fileio/runtests.sh

diff --git a/fileio/runtests.sh b/fileio/runtests.sh
old mode 100755
new mode 100644
index 88dcebd..69758f0
--- a/fileio/runtests.sh
+++ b/fileio/runtests.sh
@@ -4,21 +4,25 @@
 
 source ../common.sh
 
-dir=`mktemp -p . -d -t cr_fileio_XXXXXXX` || (echo "mktemp failed"; exit 1)
+# test_case could be a command-line-arg, but since only one test
+# uses this for now, hard code.
+test_case="fileio1"
+
+dir=`mktemp -p . -d -t cr_${test_case}_XXXXXXX` || (echo "mktemp failed"; exit 1)
 echo "Using output dir $dir"
 
 SLOW_DOWN="$dir/slow-down-fileio"
-CKPT_FILE="$dir/ckpt-fileio1";
+CKPT_FILE="$dir/checkpoint-${test_case}"
 CKPT_READY="$dir/checkpoint.ready"
 COPY_DONE="$dir/copy.done"
 SRC_FILE="$dir/input-data.1";
 DEST_FILE="$dir/output-data.1";
 DEST_FILE_SNAP="$dir/output-data.1.snap";
-TEST_LOG="$dir/log.fileio1"
-TEST_LOG_SNAP="$dir/log.fileio1.snap"
+TEST_LOG="$dir/log.${test_case}"
+TEST_LOG_SNAP="$dir/log.${test_case}.snap"
 
 LOG_FILE="$dir/f1-loop.log"
-TEST_CMD="./fileio1"
+TEST_CMD="./$test_case"
 NS_EXEC="../ns_exec"
 
 # Make sure no stray TEST_CMD from another run is still going
-- 
1.6.0.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-01-30  2:44 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-29 20:28 [PATCH 01/11] runtests.sh: Make test bit more generic Sukadev Bhattiprolu
     [not found] ` <20100129202842.GA25490-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-01-29 20:37   ` [PATCH 02/11] Make runtests.sh a wrapper for fileio tests Sukadev Bhattiprolu
2010-01-29 20:38   ` [PATCH 03/11] Check for failure while waiting for checkpoint-ready Sukadev Bhattiprolu
2010-01-29 20:42   ` [PATCH 04/11] Rename run-filelock1 to run-fcntltests.sh Sukadev Bhattiprolu
2010-01-29 20:42   ` [PATCH 05/11] Move event-notifications to libcrtest/common.c Sukadev Bhattiprolu
     [not found]     ` <20100129204228.GD26721-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-01-30  2:44       ` Serge E. Hallyn
2010-01-29 20:42   ` [PATCH 06/11] filelease1: Test restore of file leases Sukadev Bhattiprolu
2010-01-29 20:43   ` [PATCH 07/11] fsetown1: Test async I/O notification after restart Sukadev Bhattiprolu
2010-01-29 20:43   ` [PATCH 08/11] filelock1: Extend for mandatory locks Sukadev Bhattiprolu
2010-01-29 20:43   ` [PATCH 09/11] pthread1: Don't close stderr() before opening log Sukadev Bhattiprolu
2010-01-29 20:44   ` [PATCH 10/11] filelock2: Test restart of process in F_GETLK Sukadev Bhattiprolu
2010-01-29 20:44   ` [PATCH 11/11] filelease2: Test C/R during lease-break-interval Sukadev Bhattiprolu

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.