blob: f9f76d8e0a86bc9b31205cd832d5392caecfaab1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
#set -x
if [ $# -ne 0 ]; then
echo "usage: $0" >&2
exit 1
fi
cd "$(dirname "$0")"
cd ..
file=fordhcp/dhcpd.conf
expected=fordhcp/kea.json
out=/tmp/dans.out$$
./keama -4 -i $file -o $out >&2
status=$?
if [ $status -eq 255 ]; then
echo "Dan's config raised an error" >&2
exit 1
fi
diff --brief $out $expected
if [ $? -ne 0 ]; then
echo "Dan's config doesn't provide expected output" >&2
exit 1
fi
exit $status
|