run-test.sh 413 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

echo "Testing"

set -e

source /opt/confd/confdrc
cd src

echo "Testing compilation"
CONFD_OPTS="--fail-on-warnings"
CONFD_OPTS=""
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
13
confdc -c $CONFD_OPTS -o /opt/confd/etc/confd/etsi-nfv-descriptors.fxs etsi-nfv-descriptors.yang
14
15
16
17
18
19
20
21
22
23

echo "Starting ConfD"
confd

echo "Loading Data"
confd_load -l -m nfv.xml

# Don't do this in the actual test, just waste of cycles
# echo "Stopping ConfD"
# confd --stop