From d38feb6936783a37631c444d62fe74a78dd41824 Mon Sep 17 00:00:00 2001 From: TamasBakai Date: Thu, 28 Feb 2019 09:06:19 +0000 Subject: Mass PNF simulator for benchmark purposes Change-Id: I8a5ead57d0347fa34f048c7bfc5352ba045b1b62 Issue-ID: DCAEGEN2-1225 Signed-off-by: TamasBakai --- test/mocks/mass-pnf-sim/setup.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 test/mocks/mass-pnf-sim/setup.sh (limited to 'test/mocks/mass-pnf-sim/setup.sh') diff --git a/test/mocks/mass-pnf-sim/setup.sh b/test/mocks/mass-pnf-sim/setup.sh new file mode 100755 index 000000000..4e49a7e3e --- /dev/null +++ b/test/mocks/mass-pnf-sim/setup.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +virtualenv --version > /dev/null || { echo 'Virtualenv command is not available, exiting' ; sleep 10; exit 1; } +pip3 --version > /dev/null || { echo 'python3-pip package is not available, exiting' ; sleep 10; exit 1; } + + +if [ -d ".env" ]; then + echo ".env is prepared" +else + virtualenv --no-site-packages --distribute -p python3 .env +fi + +source .env/bin/activate && pip3 install -r requirements.txt \ No newline at end of file -- cgit 1.2.3-korg