btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests
[platform/upstream/btrfs-progs.git] / tests / convert-tests / 014-reiserfs-tail-handling / test.sh
index 58cfaa4..5714dc6 100755 (executable)
@@ -6,13 +6,19 @@
 # We use separate inputs for tails and real blocks so we can determine
 # if there was a failure in copying either.
 
-source "$TOP/tests/common"
-source "$TOP/tests/common.convert"
+source "$TEST_TOP/common"
+source "$TEST_TOP/common.convert"
+
+if ! check_kernel_support_reiserfs >/dev/null; then
+       _not_run "no reiserfs support"
+fi
 
 setup_root_helper
-prepare_test_dev 512M
+prepare_test_dev
 check_prereq btrfs-convert
 check_global_prereq md5sum
+check_global_prereq mkreiserfs
+check_global_prereq perl
 
 perl -e "print 'a'x8192;" > input
 perl -e "print 'b'x8192;" > input2