summaryrefslogtreecommitdiff
path: root/yarns/shell.lib
diff options
context:
space:
mode:
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.