summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-15 15:46:25 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-15 15:46:25 +0000
commitdd2bb1e138d8519f7cd6f3f772f55345f56644ec (patch)
treed26ddda2b543e691e4599602b1dae26ffcbb3296 /bin
parentb8078b2424965c815e7418ceb89848f112c4feb1 (diff)
Added --test flag
Diffstat (limited to 'bin')
-rwxr-xr-xbin/custodian-enqueue6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue
index 5f8c5fa..fefed04 100755
--- a/bin/custodian-enqueue
+++ b/bin/custodian-enqueue
@@ -8,6 +8,7 @@
# [ -m | --manual]
# [ -f | --file FILE]
# [ -d | --dump ]
+# [ | --test ]
# [ -t | --timeout N ]
#
# OPTIONS
@@ -18,6 +19,8 @@
#
# -d, --dump Dump the generated JSON to the console; don't insert in the queue.
#
+# --test Test the parsing of the given file, alert on errors.
+#
# -f, --file FILE Parse the given configuration file.
#
# -t, --timeout N Specify the timeout period for the tests.
@@ -64,6 +67,7 @@ if __FILE__ == $0 then
begin
opts = GetoptLong.new(
[ "--dump", "-d", GetoptLong::NO_ARGUMENT ],
+ [ "--test", GetoptLong::NO_ARGUMENT ],
[ "--file", "-f", GetoptLong::REQUIRED_ARGUMENT ],
[ "--help", "-h", GetoptLong::NO_ARGUMENT ],
[ "--manual","-m", GetoptLong::NO_ARGUMENT ],
@@ -73,6 +77,8 @@ if __FILE__ == $0 then
case opt
when "--dump":
ENV["DUMP"] = "1"
+ when "--test":
+ ENV["TEST"] = "1"
when "--file":
ENV["FILE"] = arg
when "--timeout":