summaryrefslogtreecommitdiff
path: root/tests/common
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2016-06-03 10:34:25 +0800
committerDavid Sterba <dsterba@suse.com>2016-06-03 15:22:18 +0200
commitfde5ae2e49a9cd7091fb8db8d748d7687a544d23 (patch)
tree1e5f48af62d5000c3f180f862eabaaa5f497c319 /tests/common
parent97198cd75e15457360aba93a28af65458292694f (diff)
btrfs-progs: convert-tests: Add support for custom test scripts
Add support for custom convert test scripts, just like fsck tests. Instead of generic convert tests, we need more specifically created images for new convert tests. This patch provide the needed infrastructure for later convert test cases. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/common b/tests/common
index 8a626b6a..c50b661f 100644
--- a/tests/common
+++ b/tests/common
@@ -94,6 +94,14 @@ check_prereq()
fi
}
+check_global_prereq()
+{
+ which $1 &> /dev/null
+ if [ $? -ne 0 ]; then
+ _fail "Failed system wide prerequisities: $1";
+ fi
+}
+
check_image()
{
local image