]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
Gracefully fail aio tests if they weren't built
authorEric Sandeen <sandeen@sandeen.net>
Wed, 10 Jun 2009 20:04:52 +0000 (15:04 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 10 Jun 2009 20:04:52 +0000 (15:04 -0500)
configure & make succeeds w/o aio headers or libs,
so tests should handle that.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
207
208
209
210
211
212

diff --git a/207 b/207
index 89f88d0c5df765a1b99b7714939b906c701e83d9..8e29e90e4ef497bf25ce724f7f64a02292617e6a 100755 (executable)
--- 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 6043df3418b7f330331e4db013b320f59266c85e..9848f2fa774af840837d84ad9c376a5a26900fb6 100755 (executable)
--- 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 8e42fad09c5bdea92f2177053f2443ea1e815dda..57cd4299248a922000127e505b9bdadac975c302 100755 (executable)
--- 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 d12be17739b1089773e2caedc34ad24619d03101..8db47b4a4a35d03e9a8e4b935eb4f34e82c9c017 100755 (executable)
--- 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 f7581c22c2e7e598002064fa44c28eb03d95c9a2..57ab2b449071e224d638f94804b2a39ad31ae68a 100755 (executable)
--- 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 44a23bfdc7dca12fcc746d1da368733d8019298e..f3e62ac8c78fa8b4ef94f1fca00be5112833bafd 100755 (executable)
--- 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