X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=tests%2Fdata_plane%2Fvpp_lite_topo%2Fconfig.sh;h=e4c3283a47151d987c26a17105dbd469508d3f05;hb=1df1d674eaace35d52973786403eb1dbe3c0d5eb;hp=1fa060a26b36d3ebff9a2e92861fc7b095f3df4f;hpb=4543d2821b1ab69579a525d83497ff84e9084bed;p=one.git diff --git a/tests/data_plane/vpp_lite_topo/config.sh b/tests/data_plane/vpp_lite_topo/config.sh index 1fa060a..e4c3283 100644 --- a/tests/data_plane/vpp_lite_topo/config.sh +++ b/tests/data_plane/vpp_lite_topo/config.sh @@ -5,6 +5,7 @@ ODL_PORT="8181" # path to vpp executable VPP_LITE_BIN=/vpp/build-root/install-vpp_lite_debug-native/vpp/bin/vpp +VPP_API_TEST=/vpp/build-root/install-vpp_lite_debug-native/vpp-api-test/bin/vpp_api_test # read user config file if exists if [ -f "${HOME}/.onerc" ] ; then @@ -18,6 +19,16 @@ if [ ! -f "${VPP_LITE_BIN}" ] ; then exit 1 fi +if [ ! -f "${VPP_API_TEST}" ] ; then + echo "Error: vpp_api_test not found. Either it's not built or environment \ + variable VPP_API_TEST is not set. You can build vpp_api_test with:" + echo "$ make build-vat" + echo "VPP_API_TEST can be set in config.sh or in ~/.onerc." + echo "Current value:" + echo "VPP_LITE_BIN=${VPP_API_TEST}" + exit 1 +fi + function clean_all { echo "Clearing all VPP instances.."