aboutsummaryrefslogtreecommitdiffstats
path: root/extras/vcl-ldpreload/test/curl_test.sh
blob: 24b0c6e06d152ed772c9bc351b820ad736e46c88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/bash
#
# curl_test.sh - VCL-LDPRELOAD curl test.
#
#   Run curl using LD_PRELOAD to fetch a page from
#   nginx running in vpp1 net-namespace.
#
# 

# Verify Environment.
if [ -z "$WS_ROOT" ] ; then
    echo "ERROR: WS_ROOT environment variable not set!" >&2
    echo "       Please set WS_ROOT to VPP workspace root directory." >&2
    exit 1
fi

LDP_DIR="${WS_ROOT}/extras/vcl-ldpreload"
LDP_TEST_DIR="${LDP_TEST_DIR:-${LDP_DIR}/test}"
VCL_LDPRELOAD_LIB_DIR="${VCL_LDPRELOAD_LIB_DIR:-${WS_ROOT}/build-root/install-vpp_debug-native/vpp/lib64}"

TEST_APP="${TEST_APP:-curl}"
source $LDP_TEST_DIR/common/nginx_test.sh