Skip to content
Snippets Groups Projects
Commit 8ce5b7ec authored by Boris Feld's avatar Boris Feld
Browse files

Extract environment checking in a separate script

We are about to add a bisect script that will need those checks.
parent 194a739a
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
set -euox pipefail
# Ensure asv now machine characteristics
asv machine --yes
echo check that system is ready for benchmark
echo "(use ASV_SKIP_SYSTEM_CHECK=1 to skip it)"
if [ -z "${ASV_SKIP_SYSTEM_CHECK:-}" ]; then
# Check that the machine is ready for benchmark
python -m perf system show
fi
# Ensure all repository are here
if [ ! -d mercurial ]; then
hg clone https://www.mercurial-scm.org/repo/hg mercurial
fi
mkdir -p repos/
mkdir -p repos/.cache
make MAKE_VERBOSE=1 -f repos.make
./repo-scripts/rename-reference-directories repos
python create_skip_file.py
./run-scripts/before-check.sh
target="${1-1.9:: and tagged()}"
if [ "$#" -ge 1 ]; then
......
#!/bin/bash
#
# Script used to check that the machine is ready for running benchmarks. This
# script assumes that the asv command is in the current PATH
set -eox pipefail
# Ensure asv now machine characteristics
asv machine --yes
echo check that system is ready for benchmark
echo "(use ASV_SKIP_SYSTEM_CHECK=1 to skip it)"
if [ -z "${ASV_SKIP_SYSTEM_CHECK:-}" ]; then
# Check that the machine is ready for benchmark
python -m perf system show
fi
# Ensure all repository are here
if [ ! -d mercurial ]; then
hg clone https://www.mercurial-scm.org/repo/hg mercurial
fi
mkdir -p repos/
mkdir -p repos/.cache
make MAKE_VERBOSE=1 -f repos.make
./repo-scripts/rename-reference-directories repos
python create_skip_file.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment