Newer
Older
#!/bin/bash
echo "Testing"
set -e
source /opt/confd/confdrc
cd src
CONFD_OPTS="--fail-on-warnings"
CONFD_OPTS=""
confdc -c $CONFD_OPTS -o /opt/confd/etc/confd/etsi-nfv-vnfd.fxs etsi-nfv-vnfd.yang
echo "Testing compilations of descriptors."
confdc -c $CONFD_OPTS -o /opt/confd/etc/confd/etsi-nfv-descriptors.fxs etsi-nfv-descriptors.yang
echo "Starting ConfD"
confd
# Don't do this in the actual test, just waste of cycles
# echo "Stopping ConfD"
# confd --stop