usertools/dpdk-setup: ask user the name of build directory if RTE_TARGET is empty
diff mbox series

Message ID 20200330082304.17655-1-sarosh.arif@emumba.com
State Not Applicable
Delegated to: Thomas Monjalon
Headers show
Series
  • usertools/dpdk-setup: ask user the name of build directory if RTE_TARGET is empty
Related show

Checks

Context Check Description
ci/iol-testing success Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/travis-robot success Travis build: passed
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Sarosh Arif March 30, 2020, 8:23 a.m. UTC
Bugzilla ID: 423
Cc: stable@dpdk.org
Signed-off-by: Sarosh Arif <sarosh.arif@emumba.com>
---
 usertools/dpdk-setup.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

Patch
diff mbox series

diff --git a/usertools/dpdk-setup.sh b/usertools/dpdk-setup.sh
index e5bbe9fee..d7e4bc43d 100755
--- a/usertools/dpdk-setup.sh
+++ b/usertools/dpdk-setup.sh
@@ -366,6 +366,10 @@  run_test_app()
 	echo "  Example: to execute app on cores 0 to 7, enter 0xff"
 	echo -n "bitmask: "
 	read Bitmask
+	if [ -z "$RTE_TARGET" ]; then
+    	echo -n "build directory: "
+		read RTE_TARGET
+	fi
 	echo "Launching app"
 	sudo ${RTE_TARGET}/app/test -c $Bitmask $EAL_PARAMS
 }
@@ -380,6 +384,10 @@  run_testpmd_app()
 	echo "  Example: to execute app on cores 0 to 7, enter 0xff"
 	echo -n "bitmask: "
 	read Bitmask
+	if [ -z "$RTE_TARGET" ]; then
+    	echo -n "build directory: "
+		read RTE_TARGET
+	fi
 	echo "Launching app"
 	sudo ${RTE_TARGET}/app/testpmd -c $Bitmask $EAL_PARAMS -- -i
 }