public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: xfs-oss <xfs@oss.sgi.com>
Subject: [PATCH] xfstests: Gracefully fail aio tests if they weren't built
Date: Wed, 10 Jun 2009 12:57:35 -0500	[thread overview]
Message-ID: <4A2FF40F.1090808@sandeen.net> (raw)

Gracefully fail aio tests if they weren't built

configure & make succeeds w/o aio headers or libs,
so tests should handle that.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
---


diff --git a/207 b/207
index 89f88d0..8e29e90 100755
--- a/207
+++ b/207
@@ -47,7 +47,9 @@ _supported_fs generic
 _supported_os Linux
 
 rm -f $TEST_DIR/aio-testfile
-src/aio-dio-regress/aio-dio-extend-stat $TEST_DIR/aio-testfile 2>&1
+AIO_TEST=src/aio-dio-regress/aio-dio-extend-stat
+[ -x $AIO_TEST ] || _notrun "$AIO_TEST not built"
+$AIO_TEST $TEST_DIR/aio-testfile 2>&1
 status=$?
 rm -f $TEST_DIR/aio-testfile
 
diff --git a/208 b/208
index 6043df3..9848f2f 100755
--- a/208
+++ b/208
@@ -47,7 +47,9 @@ _supported_fs generic
 _supported_os Linux
 
 rm -f $TEST_DIR/aio-testfile
-src/aio-dio-regress/aio-dio-invalidate-failure  $TEST_DIR/aio-testfile 2>&1
+AIO_TEST=src/aio-dio-regress/aio-dio-invalidate-failure
+[ -x $AIO_TEST ] || _notrun "$AIO_TEST not built"
+$AIO_TEST $TEST_DIR/aio-testfile 2>&1
 status=$?
 rm -f $TEST_DIR/aio-testfile
 
diff --git a/209 b/209
index 8e42fad..57cd429 100755
--- a/209
+++ b/209
@@ -47,7 +47,9 @@ _supported_fs generic
 _supported_os Linux
 
 rm -f $TEST_DIR/aio-testfile
-src/aio-dio-regress/aio-dio-invalidate-readahead $TEST_DIR/aio-testfile 2>&1
+AIO_TEST=src/aio-dio-regress/aio-dio-invalidate-readahead
+[ -x $AIO_TEST ] || _notrun "$AIO_TEST not built"
+$AIO_TEST $TEST_DIR/aio-testfile 2>&1
 status=$?
 rm -f $TEST_DIR/aio-testfile
 
diff --git a/210 b/210
index d12be17..8db47b4 100755
--- a/210
+++ b/210
@@ -47,7 +47,9 @@ _supported_fs generic
 _supported_os Linux
 
 rm -f $TEST_DIR/aio-testfile
-src/aio-dio-regress/aio-dio-subblock-eof-read $TEST_DIR/aio-testfile 2>&1
+AIO_TEST=src/aio-dio-regress/aio-dio-subblock-eof-read
+[ -x $AIO_TEST ] || _notrun "$AIO_TEST not built"
+$AIO_TEST $TEST_DIR/aio-testfile 2>&1
 status=$?
 rm -f $TEST_DIR/aio-testfile
 
diff --git a/211 b/211
index f7581c2..57ab2b4 100755
--- a/211
+++ b/211
@@ -47,7 +47,9 @@ _supported_fs generic
 _supported_os Linux
 
 rm -f $TEST_DIR/aio-testfile
-src/aio-dio-regress/aio-free-ring-with-bogus-nr-pages $TEST_DIR/aio-testfile 2>&1
+AIO_TEST=src/aio-dio-regress/aio-free-ring-with-bogus-nr-pages
+[ -x $AIO_TEST ] || _notrun "$AIO_TEST not built"
+$AIO_TEST $TEST_DIR/aio-testfile 2>&1
 status=$?
 rm -f $TEST_DIR/aio-testfile
 
diff --git a/212 b/212
index 44a23bf..f3e62ac 100755
--- a/212
+++ b/212
@@ -48,7 +48,9 @@ _supported_fs generic
 _supported_os Linux
 
 rm -f $TEST_DIR/aio-testfile
-src/aio-dio-regress/aio-io-setup-with-nonwritable-context-pointer $TEST_DIR/aio-testfile 2>&1
+AIO_TEST=src/aio-dio-regress/aio-io-setup-with-nonwritable-context-pointer
+[ -x $AIO_TEST ] || _notrun "$AIO_TEST not built"
+$AIO_TEST $TEST_DIR/aio-testfile 2>&1
 status=$?
 rm -f $TEST_DIR/aio-testfile
 

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

             reply	other threads:[~2009-06-10 17:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-10 17:57 Eric Sandeen [this message]
2009-06-10 18:54 ` [PATCH] xfstests: Gracefully fail aio tests if they weren't built Christoph Hellwig

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=4A2FF40F.1090808@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=xfs@oss.sgi.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