-# Temporarily download TLDK packages from nexus.fd.io
-SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
-if [ "${#}" -ne "0" ]; then
- arr=(${@})
- echo ${arr[0]}
-else
- ## we need to download the TLDK and DPDK test files to this local host, maybe use scp or wget
- ## download DPDK source code from the fast.dpdk.org
- ## download TLDK source code from the gerrit.fd.io
- ## download some pcap file and .deb packages from the nexus.fd.io
- wget -q "fast.dpdk.org/rel/${DPDK_PACKAGE}"
- git clone https://gerrit.fd.io/r/tldk
- wget -q "https://nexus.fd.io/tldk/test_ipv4_assemble_rx.pcap" -P ./TLDK-tests/tldk_testconfig
- wget -q "https://nexus.fd.io/tldk/test_ipv4_checksum_rx.pcap" -P ./TLDK-tests/tldk_testconfig
- wget -q "https://nexus.fd.io/tldk/test_ipv4_fragment_rx.pcap" -P ./TLDK-tests/tldk_testconfig
- wget -q "https://nexus.fd.io/tldk/test_ipv6_checksum_rx.pcap" -P ./TLDK-tests/tldk_testconfig
- wget -q "https://nexus.fd.io/tldk/test_ipv6_fragment_rx.pcap" -P ./TLDK-tests/tldk_testconfig
-fi