summaryrefslogtreecommitdiffstats
path: root/debian/tests/run-ocft
blob: f820fcef9443b5bd17a3fe2f57f1656311a2b837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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