diff options
author | Peter Mikus <pmikus@cisco.com> | 2019-09-10 08:09:43 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2019-09-11 10:54:32 +0000 |
commit | 891f932d2c0928038c7cb77f96ecad6e12c0e81f (patch) | |
tree | 706a3867e582b0a1f0b1436c94a6da4e1eb7f315 /resources/tools/trex | |
parent | 27cff25483728d50e0215b895c680fb88f6ffe99 (diff) |
Ansible: Trex installation
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I5ab8fe05074a842301a511bbd3ab5e67f8d1a9f0
Diffstat (limited to 'resources/tools/trex')
-rwxr-xr-x | resources/tools/trex/trex_installer.sh | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/resources/tools/trex/trex_installer.sh b/resources/tools/trex/trex_installer.sh deleted file mode 100755 index c0012a18cf..0000000000 --- a/resources/tools/trex/trex_installer.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -TREX_VERSION=$1 - -TREX_DOWNLOAD_REPO="https://github.com/cisco-system-traffic-generator/trex-core/archive/" -TREX_DOWNLOAD_PACKAGE="v${TREX_VERSION}.zip" -TREX_PACKAGE_URL="${TREX_DOWNLOAD_REPO}${TREX_DOWNLOAD_PACKAGE}" -TARGET_DIR="/opt/" -TREX_DIR="trex-core-${TREX_VERSION}/" -TREX_INSTALL_DIR="${TARGET_DIR}${TREX_DIR}" - -if test "$(id -u)" -ne 0 -then - echo "Please use root or sudo to be able to access target installation directory: ${TARGET_DIR}" - exit 1 -fi - -WORKING_DIR=$(mktemp -d) -test $? -eq 0 || exit 1 - -cleanup () { - rm -r ${WORKING_DIR} -} - -trap cleanup EXIT - -test -d ${TREX_INSTALL_DIR} && echo "T-REX aleready installed: ${TREX_INSTALL_DIR}" && exit 0 - -wget -P ${WORKING_DIR} ${TREX_PACKAGE_URL} -test $? -eq 0 || exit 1 - -unzip ${WORKING_DIR}/${TREX_DOWNLOAD_PACKAGE} -d ${TARGET_DIR} -test $? -eq 0 || exit 1 - -cd ${TREX_INSTALL_DIR}/linux_dpdk/ && ./b configure && ./b build || exit 1 -cd ${TREX_INSTALL_DIR}/scripts/ko/src && make && make install || exit 1 |