VCL-LDPRELOAD: statically link vppcom into libvcl-ldpreload.so
[vpp.git] / extras / vcl-ldpreload / test / wget_test.sh
1 #! /bin/bash
2 #
3 # wget_test.sh - VCL-LDPRELOAD wget test.
4 #
5 #   Run wget using LD_PRELOAD to fetch a page from
6 #   nginx running in vpp1 net-namespace.
7 #
8
9
10 # Verify Environment.
11 if [ -z "$WS_ROOT" ] ; then
12     echo "ERROR: WS_ROOT environment variable not set!" >&2
13     echo "       Please set WS_ROOT to VPP workspace root directory." >&2
14     exit 1
15 fi
16
17 LDP_DIR="${WS_ROOT}/extras/vcl-ldpreload"
18 LDP_TEST_DIR="${LDP_TEST_DIR:-${LDP_DIR}/test}"
19 VCL_LDPRELOAD_LIB_DIR="${VCL_LDPRELOAD_LIB_DIR:-$WS_ROOT/build-root/install-vpp_debug-native/vpp/lib64}"
20
21 TEST_APP="${TEST_APP:-wget}"
22 source $LDP_TEST_DIR/common/nginx_test.sh