summaryrefslogtreecommitdiffstats
path: root/debian/tests/run-ocft
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/tests/run-ocft19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/tests/run-ocft b/debian/tests/run-ocft
new file mode 100755
index 0000000..f820fce
--- /dev/null
+++ b/debian/tests/run-ocft
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+AGENT=$1
+
+cleanup () {
+ ocft clean $AGENT
+}
+
+trap "cleanup" 0 2 3 15
+
+mkdir -p /run/resource-agents
+
+echo "Running: ocft make $AGENT"
+ocft make $AGENT
+
+echo "Running: ocft test -v $AGENT"
+ocft test -v $AGENT