mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
51ab84156e
Summary: Previously this code was completely untested. This diff adds a simple test that checks that warmup has at least finished Reviewed By: farnz Differential Revision: D8611295 fbshipit-source-id: bf55d3b8953660040b4f9a934094fb688683c7ba
30 lines
534 B
Perl
30 lines
534 B
Perl
$ . $TESTDIR/library.sh
|
|
|
|
setup configuration
|
|
$ export CACHE_WARMUP_BOOKMARK="master_bookmark"
|
|
$ setup_common_config
|
|
$ cd $TESTTMP
|
|
|
|
setup repo
|
|
|
|
$ hg init repo-hg
|
|
|
|
setup hg server repo
|
|
$ cd repo-hg
|
|
$ setup_hg_server
|
|
$ echo a > a && hg add a && hg ci -m a
|
|
|
|
create master bookmark
|
|
|
|
$ hg bookmark master_bookmark -r tip
|
|
|
|
blobimport them into Mononoke storage and start Mononoke
|
|
$ cd ..
|
|
$ blobimport repo-hg/.hg repo
|
|
|
|
start mononoke
|
|
|
|
$ mononoke
|
|
$ wait_for_mononoke $TESTTMP/repo
|
|
$ wait_for_mononoke_cache_warmup
|