xfstests: Gracefully fail aio tests if they weren't built
PATCH 1/1 xfstests: Gracefully fail aio tests if they weren't built
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 <[email protected]>
---
207 +3 -1
@@ -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
208 +3 -1
@@ -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
209 +3 -1
@@ -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
210 +3 -1
@@ -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
211 +3 -1
@@ -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
212 +3 -1
@@ -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
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 6 lines · Eric Sandeen
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 <[email protected]>
Maybe we should just add an _require_aio to check for libaio instead of needing different checks in each test?
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs