
Also fixes the name of the VM image. Now points to the env var DEFAULT_IMAGE_NAME used by devstack. Change-Id: I627be09e275e02af1dba41d6b19426f3552719da
40 lines
904 B
Bash
40 lines
904 B
Bash
#!/bin/bash
|
|
|
|
source functions-gbp
|
|
|
|
set -x
|
|
|
|
trap prepare_logs ERR
|
|
|
|
# Run exercise scripts
|
|
$TOP_DIR/exercise.sh
|
|
exercises_exit_code=$?
|
|
|
|
# Check if exercises left any resources undeleted
|
|
check_residual_resources admin admin
|
|
check_residual_resources admin demo
|
|
check_residual_resources demo demo
|
|
|
|
# Run gbpfunc integration tests
|
|
echo "Running gbpfunc test suite"
|
|
cd $NEW_BASE
|
|
sudo git clone http://github.com/group-policy/gbpfunctests gbpfunctests
|
|
export PYTHONPATH="$NEW_BASE/gbpfunctests:${PYTHONPATH}"
|
|
cd gbpfunctests/testcases
|
|
python suite_run.py upstream
|
|
gbpfunc_exit_code=$?
|
|
|
|
# Run functional tests
|
|
cd $GBP_DIR
|
|
echo "Running group-based-policy dsvm-functional test suite"
|
|
sudo -H tox -e dsvm-functional
|
|
testr_exit_code=$?
|
|
|
|
# Collect and parse results
|
|
generate_testr_results
|
|
|
|
# Prepare the log files for Jenkins to upload
|
|
prepare_logs
|
|
|
|
exit $(($exercises_exit_code+$gbpfunc_exit_code+$testr_exit_code))
|