From: Eric Sandeen Date: Wed, 10 Jun 2009 20:04:52 +0000 (-0500) Subject: Gracefully fail aio tests if they weren't built X-Git-Tag: v1.1.0~265 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4e9072472fbc56b9d4c8ee8094cc62ce793df9b7;p=xfstests-dev.git 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 Reviewed-by: Christoph Hellwig --- diff --git a/207 b/207 index 89f88d0c..8e29e90e 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 6043df34..9848f2fa 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 8e42fad0..57cd4299 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 d12be177..8db47b4a 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 f7581c22..57ab2b44 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 44a23bfd..f3e62ac8 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