Commit a20ff490 authored by Damien Lespiau's avatar Damien Lespiau

tests: Add a script to run all the tests

Signed-off-by: 's avatarDamien Lespiau <damien.lespiau@intel.com>
parent 80b68217
#!/bin/bash -e
script_dir=$(cd `dirname $0`; pwd)
root_dir=`dirname $script_dir`
tests_dir=$root_dir/tests
update_virtualenv()
{
directory=$1
requirements=$2
[ -d "$directory" ] || virtualenv "$directory"
source $directory/bin/activate
pip install -r $requirements
}
update_virtualenv venv $tests_dir/requirements.txt
tox --recreate
$tests_dir/test_js.sh
$tests_dir/test_pep8.sh
deactivate
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment