Skip to content
Snippets Groups Projects
Commit 74d8c88d4366 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

setup-repos: use the new script in the standard setup

parent b117eb61c67c
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,5 @@
hg clone https://www.mercurial-scm.org/repo/hg mercurial
fi
mkdir -p repos/
mkdir -p repos/partial-references
make MAKE_VERBOSE=1 -f repos.make
./script/setup-repos ./default.repos ./repos
......@@ -28,2 +26,2 @@
python create_skip_file.py
python ./create_skip_file.py
......@@ -56,7 +56,7 @@
refdata = read_yaml(refpath)
partial_sets = refdata.get("partial-sets")
if partial_sets is None:
msg = "not partials-sets declared: %s" % refdata
msg = "not partial-sets declared: %s" % refpath
raise SetupError(msg)
for variant in sorted(partial_sets):
......
......@@ -57,22 +57,10 @@
$ rsync --exclude 'repos' --exclude 'mercurial' -ra $TESTDIR/.. test-asv
$ cd test-asv
$ cat << EOF > repos.make
> SOURCE="$TESTTMP/references"
> all: repos/smoke-test-A-11eb1fef.benchrepo repos/smoke-test-B-4324509a.benchrepo
>
> repos/smoke-test-A-11eb1fef.benchrepo:
> (cd repos; tar xf \$(SOURCE)/smoke-test-A-11eb1fef-reference.tar --warning=no-timestamp; hg -R smoke-test-A-11eb1fef-reference update --quiet tip)
> (cd repos/partial-references/; tar xf \$(SOURCE)/smoke-test-A-11eb1fef-partial-last-hundred.tar --warning=no-timestamp )
> (cd repos/partial-references/; tar xf \$(SOURCE)/smoke-test-A-11eb1fef-partial-last-ten.tar --warning=no-timestamp )
> (cd repos/partial-references/; tar xf \$(SOURCE)/smoke-test-A-11eb1fef-partial-last-thousand.tar --warning=no-timestamp )
> (cd repos/partial-references/; tar xf \$(SOURCE)/smoke-test-A-11eb1fef-partial-same.tar --warning=no-timestamp )
> repos/smoke-test-B-4324509a.benchrepo:
> (cd repos; tar xf \$(SOURCE)/smoke-test-B-4324509a-reference.tar --warning=no-timestamp; hg -R smoke-test-B-4324509a-reference update --quiet tip)
> (cd repos/partial-references/; tar xf \$(SOURCE)/smoke-test-B-4324509a-partial-last-hundred.tar --warning=no-timestamp )
> (cd repos/partial-references/; tar xf \$(SOURCE)/smoke-test-B-4324509a-partial-last-ten.tar --warning=no-timestamp )
> (cd repos/partial-references/; tar xf \$(SOURCE)/smoke-test-B-4324509a-partial-last-thousand.tar --warning=no-timestamp )
> (cd repos/partial-references/; tar xf \$(SOURCE)/smoke-test-B-4324509a-partial-same.tar --warning=no-timestamp )
$ cat << EOF > default.repos
> smoke-test-A-11eb1fef
> # (second copy of the same repo, for testing)
> smoke-test-B-4324509a
> EOF
setup appropriate virtual env
......@@ -101,6 +89,32 @@
> EOF
$ export HGRCPATH="${TESTTMP}"/test-asv/test.hgrc
$ ./script/setup-repos default.repos repos "file://$TESTTMP/references/"
2 repositories to setup in $TESTTMP/test-asv/repos
Setting up reference repository: smoke-test-A-11eb1fef
main reference
downloading repo
updating repo
partial reference: last-hundred
downloading repo
partial reference: last-ten
downloading repo
partial reference: last-thousand
downloading repo
partial reference: same
downloading repo
Setting up reference repository: smoke-test-B-4324509a
main reference
downloading repo
updating repo
partial reference: last-hundred
downloading repo
partial reference: last-ten
downloading repo
partial reference: last-thousand
downloading repo
partial reference: same
downloading repo
$ ASV_SKIP_SYSTEM_CHECK=1 ./launch.py -q fe3ca1e6 -b track_commit
+ asv machine --yes
* (glob)
......@@ -139,20 +153,31 @@
* files updated, 0 files merged, 0 files removed, 0 files unresolved (glob) (?)
+ '[' '!' -d mercurial ']'
+ hg clone https://www.mercurial-scm.org/repo/hg mercurial
+ mkdir -p repos/
+ mkdir -p repos/partial-references
+ make MAKE_VERBOSE=1 -f repos.make
(cd repos; tar xf "$TESTTMP/references"/smoke-test-A-11eb1fef-reference.tar --warning=no-timestamp; hg -R smoke-test-A-11eb1fef-reference update --quiet tip)
(cd repos/partial-references/; tar xf "$TESTTMP/references"/smoke-test-A-11eb1fef-partial-last-hundred.tar --warning=no-timestamp )
(cd repos/partial-references/; tar xf "$TESTTMP/references"/smoke-test-A-11eb1fef-partial-last-ten.tar --warning=no-timestamp )
(cd repos/partial-references/; tar xf "$TESTTMP/references"/smoke-test-A-11eb1fef-partial-last-thousand.tar --warning=no-timestamp )
(cd repos/partial-references/; tar xf "$TESTTMP/references"/smoke-test-A-11eb1fef-partial-same.tar --warning=no-timestamp )
(cd repos; tar xf "$TESTTMP/references"/smoke-test-B-4324509a-reference.tar --warning=no-timestamp; hg -R smoke-test-B-4324509a-reference update --quiet tip)
(cd repos/partial-references/; tar xf "$TESTTMP/references"/smoke-test-B-4324509a-partial-last-hundred.tar --warning=no-timestamp )
(cd repos/partial-references/; tar xf "$TESTTMP/references"/smoke-test-B-4324509a-partial-last-ten.tar --warning=no-timestamp )
(cd repos/partial-references/; tar xf "$TESTTMP/references"/smoke-test-B-4324509a-partial-last-thousand.tar --warning=no-timestamp )
(cd repos/partial-references/; tar xf "$TESTTMP/references"/smoke-test-B-4324509a-partial-same.tar --warning=no-timestamp )
+ python create_skip_file.py
+ ./script/setup-repos ./default.repos ./repos
2 repositories to setup in $TESTTMP/test-asv/repos
Setting up reference repository: smoke-test-A-11eb1fef
main reference
already up to date
partial reference: last-hundred
already up to date
partial reference: last-ten
already up to date
partial reference: last-thousand
already up to date
partial reference: same
already up to date
Setting up reference repository: smoke-test-B-4324509a
main reference
already up to date
partial reference: last-hundred
already up to date
partial reference: last-ten
already up to date
partial reference: last-thousand
already up to date
partial reference: same
already up to date
+ python ./create_skip_file.py
- Fetching recent changes
- Creating environments
- Discovering benchmarks
......
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