run-test.sh 1.04 KB
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
echo "Testing compilations of VNFD."
14
confdc -c $CONFD_OPTS -o /opt/confd/etc/confd/etsi-nfv-vnfd.fxs etsi-nfv-vnfd.yang
15 16 17 18
echo "Testing compilations of PNFD."
confdc -c $CONFD_OPTS -o /opt/confd/etc/confd/etsi-nfv-pnfd.fxs etsi-nfv-pnfd.yang
echo "Testing compilations of NSD."
confdc -c $CONFD_OPTS -o /opt/confd/etc/confd/etsi-nfv-nsd.fxs etsi-nfv-nsd.yang
19
echo "Testing compilations of descriptors."
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
20
confdc -c $CONFD_OPTS -o /opt/confd/etc/confd/etsi-nfv-descriptors.fxs etsi-nfv-descriptors.yang
21 22 23 24

echo "Starting ConfD"
confd

25
echo "Loading Data for VNFD"
26
confd_load -l -m nfv-vnfd.xml
27

28 29 30 31 32 33
echo "Loading Data for PNFD"
confd_load -l -m nfv-pnfd.xml

echo "Loading Data for NSD"
confd_load -l -m nfv-nsd.xml

34
echo "Loading Data for descriptors"
35
confd_load -l -m nfv.xml
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
36 37
echo "Loading data for the complex Vnfd example"
confd_load -l -m complex-vnfd.xml
38

39

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