summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
Diffstat (limited to 'yarns')
-rw-r--r--yarns/900-implements.yarn3
-rw-r--r--yarns/shell.lib16
2 files changed, 19 insertions, 0 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn
index bf49b35..657101e 100644
--- a/yarns/900-implements.yarn
+++ b/yarns/900-implements.yarn
@@ -19,11 +19,14 @@ Scenarios can use the ASSUMING statements defined here to let the user
to allow them to run or not to run.
IMPLEMENTS ASSUMING (fast|build) tests are requested
+ support_required
test_requested "$MATCH_1"
if `MIRROR` is set, use the default http mirror
IMPLEMENTS ASSUMING (local|http) tests are requested
+ support_required
+ build_support_required
mirror_requested "$MATCH_1"
## Building an image, or attempting to
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.