#! /bin/sh
set -xe
origin="$PWD"

#####
# This script is a convenience script for anyone using this tester manually
# This just helps set the correct environment for manual runs, nothing more, no automation
# I'm careful to not clean from this script because of what it could do to in-development work


# Set up virtualenv
if [ -d llcv6_feature_ahmo_env ]; then
    rm -rf llcv6_feature_ahmo_env
fi

virtualenv -p python3.6 llcv6_feature_ahmo_env
. llcv6_feature_ahmo_env/bin/activate
python -m pip install -r firmware/validation/llcv6_feature_ahmo/requirements.txt


# Run deploy tests first
python -m pytest --verbose firmware/validation/llcv6_feature_ahmo/test_deploy.py

# Run all tests in llcv6_feature_ahmo dir
python -m pytest firmware/validation/llcv6_feature_ahmo/ \
                 --ignore=firmware/validation/llcv6_feature_ahmo/test_deploy.py \
                 --verbose
