blob: 5c8d2f4a9d40edcf028817b75d714b94d9435530 [file] [log] [blame]
Dave Wallace80b48a62017-10-17 04:00:50 -04001#! /bin/bash
2#
3# curl_test.sh - VCL-LDPRELOAD curl test.
4#
5# Run curl using LD_PRELOAD to fetch a page from
6# nginx running in vpp1 net-namespace.
7#
8#
9
10# Verify Environment.
11if [ -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
15fi
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040016
17LDP_DIR="${WS_ROOT}/extras/vcl-ldpreload"
18LDP_TEST_DIR="${LDP_TEST_DIR:-${LDP_DIR}/test}"
Damjan Marion79dcbc72018-09-12 14:01:10 +020019VCL_LDPRELOAD_LIB_DIR="${VCL_LDPRELOAD_LIB_DIR:-${WS_ROOT}/build-root/install-vpp_debug-native/vpp/lib}"
Dave Wallace80b48a62017-10-17 04:00:50 -040020
21TEST_APP="${TEST_APP:-curl}"
Dave Wallace80b48a62017-10-17 04:00:50 -040022source $LDP_TEST_DIR/common/nginx_test.sh