Skip to content

Commit

Permalink
Run servo-warc-tests as part of test-perf
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Jeffrey committed Jan 19, 2018
1 parent 726a185 commit c3e2ce0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions etc/ci/performance/.gitignore
Expand Up @@ -4,6 +4,7 @@ output/*
.cache/*
page_load_test/tp5n/*
page_load_test/tp5n.zip
servo-warc-tests/*
venv/*

__pycache__/
16 changes: 15 additions & 1 deletion etc/ci/performance/test_perf.sh
Expand Up @@ -26,13 +26,27 @@ else
echo "Found existing test cases, skipping download and unzip."
fi

WARC_DIR="./servo-warc-tests"
WARC_REPO="git@github.com:servo/servo-warc-tests.git"

# Clone the warc tests if they don't exist
if [[ ! -d ${WARC_DIR} ]]; then
git clone ${WARC_REPO}
fi

# Make sure we're running with an up-to-date warc test repo
git -C ${WARC_DIR} pull

virtualenv venv --python="$(which python3)"
PS1="" source venv/bin/activate
# `PS1` must be defined before activating virtualenv
pip install "boto3>=1.4.0"
pip install \
"boto3>=1.4.0" \
git+https://github.com/ikreymer/pywb.git

mkdir -p servo
mkdir -p output # Test result will be saved to output/perf-<timestamp>.json
./git_log_to_json.sh > servo/revision.json

./test_all.sh --servo ${*}
SERVO_DIR="../../.." ${WARC_DIR}/run-warc-tests.sh

0 comments on commit c3e2ce0

Please sign in to comment.