summaryrefslogtreecommitdiff
path: root/yarns/shell.lib
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2016-01-17 14:29:55 +0000
committerNeil Williams <codehelp@debian.org>2016-01-17 14:29:55 +0000
commit0c8cc8919c4bc7a6cea05315a364e09e7d448ce2 (patch)
tree224e7f0970fb68ddf54ed6e299688bfc5708f27d /yarns/shell.lib
parent81d03ab87cfabb5b9d8c7ae1a19bb7f3ff2338ac (diff)
downloadvmdebootstrap-0c8cc8919c4bc7a6cea05315a364e09e7d448ce2.tar.gz
Add checks for cmdtest and bc as the errors are otherwise confusing.
Diffstat (limited to 'yarns/shell.lib')
-rw-r--r--yarns/shell.lib16
1 files changed, 16 insertions, 0 deletions
diff --git a/yarns/shell.lib b/yarns/shell.lib
index 08835ab..69b7b06 100644
--- a/yarns/shell.lib
+++ b/yarns/shell.lib
@@ -34,6 +34,22 @@ test_requested()
fi
}
+support_required()
+{
+ if [ ! -x /usr/bin/cmdtest ]; then
+ echo "All tests need the cmdtest package."
+ return 1
+ fi
+}
+
+
+build_support_required()
+{
+ if [ ! -x /usr/bin/bc ]; then
+ echo "Build tests need the bc package."
+ return 1
+ fi
+}
# Convert a size with a unit, such a kB, to plain bytes.