xfs
[Top] [All Lists]

[PATCH] 198, 240: check presence of aiodio_sparce2

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: [PATCH] 198, 240: check presence of aiodio_sparce2
From: Hidetoshi Seto <seto.hidetoshi@xxxxxxxxxxxxxx>
Date: Tue, 22 Nov 2011 15:14:34 +0900
Cc: xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 6.0; rv:8.0) Gecko/20111105 Thunderbird/8.0
Use same trick with:
  commit 4e9072472fbc56b9d4c8ee8094cc62ce793df9b7
  Gracefully fail aio tests if they weren't built

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@xxxxxxxxxxxxxx>
---
 198 |    5 ++++-
 240 |    5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/198 b/198
index e46ec8d..60db6dc 100755
--- a/198
+++ b/198
@@ -45,13 +45,16 @@ _cleanup()
 _supported_fs generic
 _supported_os Linux
 
+AIO_TEST=src/aio-dio-regress/aiodio_sparse2
+[ -x $here/$AIO_TEST ] || _notrun "$AIO_TEST not built"
+
 echo "Silence is golden."
 
 # real QA test starts here
 rm -f $seq.full
 
 rm -f "$TEST_DIR/aiodio_sparse*"
-$here/src/aio-dio-regress/aiodio_sparse2 "$TEST_DIR/aiodio_sparse"
+$here/$AIO_TEST "$TEST_DIR/aiodio_sparse"
 
 status=$?
 exit
diff --git a/240 b/240
index 563449e..22c1756 100755
--- a/240
+++ b/240
@@ -53,6 +53,9 @@ _supported_os Linux
 
 _require_sparse_files
 
+AIO_TEST=src/aio-dio-regress/aiodio_sparse2
+[ -x $here/$AIO_TEST ] || _notrun "$AIO_TEST not built"
+
 echo "Silence is golden."
 
 # real QA test starts here
@@ -69,7 +72,7 @@ fi
 
 # 2 threads, fs block sized writes, 64k filesize, stride through file by
 # fs block size, start at logical block size offset
-$here/src/aio-dio-regress/aiodio_sparse2 -i 2 -w $fs_block_size -s 64k -n 
$fs_block_size -o $logical_block_size "$TEST_DIR/aiodio_sparse"
+$here/$AIO_TEST -i 2 -w $fs_block_size -s 64k -n $fs_block_size -o 
$logical_block_size "$TEST_DIR/aiodio_sparse"
 
 status=$?
 exit
-- 
1.7.7.3


<Prev in Thread] Current Thread [Next in Thread>