xfstests: add aiodio helper functions

For 198, 239 and 240, use _require_aiodio to fail gracefully if
required program was not built.

For 207-212, use _run_aiodio that includes _require_aiodio and
kicks specified aio-dio program, to make code expressly simple.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Hidetoshi Seto
2011-11-23 11:39:08 +09:00
committed by Christoph Hellwig
parent b235a158b1
commit c61d37c072
10 changed files with 47 additions and 41 deletions
+1 -6
View File
@@ -46,11 +46,6 @@ _cleanup()
_supported_fs generic
_supported_os Linux
rm -f $TEST_DIR/aio-testfile
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
_run_aiodio aio-free-ring-with-bogus-nr-pages
exit $status