mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common: create _require_test_program to look for programs in src/
Create a helper that looks for a test program in src/ and fails the test if it doesn't exist. Refactor the existing testcases to use it. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
+1
-2
@@ -40,8 +40,7 @@ _supported_fs xfs
|
||||
_supported_os IRIX Linux
|
||||
|
||||
_require_scratch
|
||||
|
||||
[ $here/src/feature ] || _notrun "src/feature not built, skipping this test"
|
||||
_require_test_program "feature"
|
||||
|
||||
[ "$USE_EXTERNAL" = yes ] && _notrun "Cannot xfs_copy with external devices"
|
||||
[ -n "$XFS_COPY_PROG" ] || _notrun "xfs_copy binary not yet installed"
|
||||
|
||||
Reference in New Issue
Block a user