summaryrefslogtreecommitdiffstats
path: root/configd/src/tests/configd/run-sentinel.sh
diff options
context:
space:
mode:
Diffstat (limited to 'configd/src/tests/configd/run-sentinel.sh')
-rwxr-xr-xconfigd/src/tests/configd/run-sentinel.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/configd/src/tests/configd/run-sentinel.sh b/configd/src/tests/configd/run-sentinel.sh
new file mode 100755
index 00000000000..97ba32d34e8
--- /dev/null
+++ b/configd/src/tests/configd/run-sentinel.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+if ../../apps/sentinel/config-sentinel > tmp.log 2>&1 ; then
+ echo "Should need argument"
+ exit 1
+fi
+if grep -q Usage tmp.log ; then
+ : ok
+else
+ echo "Missing usage in log:"
+ cat tmp.log
+ exit 1
+fi
+
+exit 0