sapling/tests/integration/test-cache-warmup.t
Stanislau Hlebik 51ab84156e mononoke: add a simple test for cache warmup
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
2018-06-25 07:36:01 -07:00

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