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

echo "Testing"

set -e

source /opt/confd/confdrc
cd src

CONFD_OPTS="--fail-on-warnings"
CONFD_OPTS=""
12 13 14 15

echo "Testing compilations of pkg."
confdc -c $CONFD_OPTS -o /opt/confd/etc/confd/etsi-nfv-pkg.fxs etsi-nfv-pkg.yang
echo "Testing compilations of descriptors."
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
16
confdc -c $CONFD_OPTS -o /opt/confd/etc/confd/etsi-nfv-descriptors.fxs etsi-nfv-descriptors.yang
17 18 19 20

echo "Starting ConfD"
confd

21 22 23 24
echo "Loading Data for pkg"
confd_load -l -m nfv-vnf-pkg.xml

echo "Loading Data for descriptors"
25 26
confd_load -l -m nfv.xml

27

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