Dave Wallace | 80b48a6 | 2017-10-17 04:00:50 -0400 | [diff] [blame] | 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 |
Dave Wallace | 5c7cf1c | 2017-10-24 04:12:18 -0400 | [diff] [blame] | 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}" |
Dave Wallace | 80b48a6 | 2017-10-17 04:00:50 -0400 | [diff] [blame] | 20 | |
| 21 | TEST_APP="${TEST_APP:-wget}" |
Dave Wallace | 80b48a6 | 2017-10-17 04:00:50 -0400 | [diff] [blame] | 22 | source $LDP_TEST_DIR/common/nginx_test.sh |