diff options
author | 2019-02-15 08:38:16 +0000 | |
---|---|---|
committer | 2019-02-15 09:47:28 +0000 | |
commit | 9b780338eb8b85fc713f272a7cae865f1265f109 (patch) | |
tree | 864c1ba60eff8625f1f5c79567da0914e5e8ed65 /test/mocks/datafilecollector-testharness/mr-sim/setup.sh | |
parent | 01c69ab28550d775239697067588e3b2063188a1 (diff) |
Simulator scripts for datafile-collector
Change-Id: Idff5fb9e4406f42208367860b3d02fc2ed4a9bad
Issue-ID: DCAEGEN2-1225
Signed-off-by: TamasBakai <tamas.bakai@est.tech>
Diffstat (limited to 'test/mocks/datafilecollector-testharness/mr-sim/setup.sh')
-rwxr-xr-x | test/mocks/datafilecollector-testharness/mr-sim/setup.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/mocks/datafilecollector-testharness/mr-sim/setup.sh b/test/mocks/datafilecollector-testharness/mr-sim/setup.sh new file mode 100755 index 000000000..6661d0bb8 --- /dev/null +++ b/test/mocks/datafilecollector-testharness/mr-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 |