sapling/tests
Mateusz Kwapich dd16a02f8e sparse: remove the failed attempt to change watchman config during test
Summary:
I've seen the failures like https://phabricator.intern.facebook.com/P56599278
which were the result of "enforce_root_files" being set in our global watchman
config.

It appears that the global configs are being picked up only on server start.
Killing server during the test won't help because watchman is automagically
restarted in our dev environment.

The way to do it properly is to mimic
https://github.com/facebook/watchman/blob/master/tests/integration/WatchmanInstance.py
until we do that I've just put a .watchmanconfig to fix the test.

Test Plan: tests is passing now

Reviewers: #mercurial, ttung, durham, wez, zamsden

Reviewed By: wez, zamsden

Subscribers: mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3772968

Signature: t1:3772968:1472158987:0e08c5e9f862ba3d74d016d051b852512d06e399
2016-08-26 11:59:52 -07:00
..
blacklist-sqldirstate sqldirstate: call the registered callbacks on wd parent change 2016-08-15 03:46:52 -07:00
check-code.py checkcode: add check code test 2016-04-28 10:18:47 -07:00
check-foreignext.py check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
conduithttp.py tests: undo lint fix for conduithttp and replace with a suppression 2016-08-01 11:56:48 -07:00
dummyext1.py cleanup: make all the code compliant with the i18n rules for ui strings 2016-01-11 10:19:22 -08:00
dummyext2.py cleanup: make all the code compliant with the i18n rules for ui strings 2016-01-11 10:19:22 -08:00
dummyssh test: backout e221a52 (remove run-tests.py once again) 2015-12-16 16:42:17 +00:00
get-with-headers.py remotefilelog: pass modern check-code 2016-08-26 08:48:07 -07:00
getflogheads.py flogheads: add a test 2016-08-02 10:42:00 -07:00
heredoctest.py checkcode: fix tests 2016-04-26 13:00:31 -07:00
histedit-helpers.sh fb-histedit: Add a histedit extension that adds stop 2014-10-09 10:54:43 -07:00
killdaemons.py checkcode: fix tests 2016-04-26 13:00:31 -07:00
library.sh tests: skip tests if lz4 is missing 2015-07-16 11:28:28 -04:00
lint.py checkcode: add check code test 2016-04-28 10:18:47 -07:00
perftest.py remotefilelog: pass modern check-code 2016-08-26 08:48:07 -07:00
README spelling: fix numerous spelling errors 2016-04-04 12:48:01 -07:00
require-ext.sh hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
run-sqlitedirstate-test.py sqldirstate: the extension 2016-05-06 16:56:45 -07:00
silenttestrunner.py store: add unit tests for datapack classes 2016-04-28 15:00:34 -07:00
test-absorb-filefixupstate.py [tests] add missing PYTHONPATH changes 2016-08-25 17:42:23 +01:00
test-absorb.t [tests] add missing PYTHONPATH changes 2016-08-25 17:42:23 +01:00
test-arcconfig.t add arcconfig accessors 2016-04-27 09:27:56 -07:00
test-backup.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-catnotate.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-check-code-hg.t Fix check code test 2016-08-26 06:27:59 -07:00
test-commitextras.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-diff-since-last-arc-diff.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-dirsync.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-errorredirect.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-extorder.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-fastlog.t [fastlog-hg] More extensive fastlog test 2016-08-22 14:42:39 -07:00
test-fastmanifest-access.t [fastmanifest] split test-fastmanifest.t into multiple files 2016-06-03 17:03:55 -07:00
test-fastmanifest-blackbox.t [fastmanifest] prune the cache only when the revset is empty 2016-07-26 23:35:24 -07:00
test-fastmanifest-concurrency.t [fastmanifest] test to verify the behavior of the background cache worker 2016-06-24 16:17:40 -07:00
test-fastmanifest-permission.t fastmanifest: don't stop when we cannot get the lock 2016-06-13 15:26:55 -07:00
test-fastmanifest-pruning.t [fastmanifest] test to verify that a full cache can accept new data 2016-07-11 17:33:49 -07:00
test-fastmanifest-remotenames.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-fastmanifest-writepath.t [fastmanifest] fix incorrect table label 2016-06-24 16:13:39 -07:00
test-fastmanifest.py fastmanifest: fix broken assert 2016-08-24 11:31:06 -07:00
test-fastmanifest.t [fastmanifest] implement prune using makeroomfor 2016-07-12 17:09:15 -07:00
test-fbamend.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-fbconduit.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-fbhistedit-exec-obsolete.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-fbhistedit-exec.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-fbhistedit-rebase-interactive.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-fbhistedit-stop-obsolete.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-fbhistedit-stop.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-git-getmeta.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-githelp.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-grepdiff.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-inhibitwarn.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-linelog-random-edits.t [tests] add missing PYTHONPATH changes 2016-08-25 17:42:23 +01:00
test-mergedriver.t mergedriver: add a test for bug in merge action list 2016-08-25 12:20:07 -07:00
test-morestatus.t morestatus: rebase takes precedence over update 2016-08-10 22:19:30 +01:00
test-nointerrupt.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-ownercheck.t ownercheck: new extension to prevent operations on repos not owned 2016-07-26 13:10:15 +01:00
test-patchpython.py test-patchpython: do not rely on PYTHONPATH 2016-07-18 14:12:28 +01:00
test-perftweaks.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-phabdiff.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-phabstatus.t Add sync status and change the conduit call to differential.querydiffhashes 2016-08-05 11:33:36 -07:00
test-pull-createmarkers-hide-later.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-pull-createmarkers.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-pushrebase-protection.t store the pushvars in the bundle2 operation object 2016-02-18 21:32:11 -08:00
test-pushrebase-remotenames.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-pushrebase.t pushrebase: fix tests 2016-08-25 10:54:18 -07:00
test-pushvars-remotenames.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-pushvars.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-rage.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-remotefilelog-bad-configs.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-blame.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-bundle2-legacy.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-bundle2.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-bundles.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-cacheprocess.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-check-code-hg.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-clone.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-corrupt-cache.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-datapack.py remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-gc.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-histpack.py remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-http.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-linknodes.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-local.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-log.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-partial-shallow.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-permissions.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-prefetch.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-pull-noshallow.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-push-pull.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-repack-fast.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-repack.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-sparse.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-tags.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-remotefilelog-wireproto.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-reset-remotenames.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-reset.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-sampling.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-scm-prompt-compat.t scm-prompt: add compatiblity layer 2016-07-22 16:31:51 -07:00
test-scm-prompt-git.t scm-prompt: add test for git behavior 2016-04-29 10:49:36 -07:00
test-scm-prompt-hg.t fix scm-prompt test 2016-08-26 11:59:49 -07:00
test-show.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-simplecache.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-smartlog-remotenames.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-smartlog-tweakdefaults.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-smartlog.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-sparse-clone.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-sparse-extensions.t sparse: remove the failed attempt to change watchman config during test 2016-08-26 11:59:52 -07:00
test-sparse-merges.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-sparse-profiles.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-sparse.t remotefilelog: rename tests/test-* to tests/test-remotefilelog-* 2016-08-26 06:11:27 -07:00
test-sqldirstate-shelve.t tests: fix checkcode and simple test failures 2016-08-01 11:54:13 -07:00
test-sqldirstate-upgrade.t tests: fix checkcode and simple test failures 2016-08-01 11:54:13 -07:00
test-sshaskpass.py sshaskpass: enable ssh to ask password if running with chg 2016-07-17 20:35:34 +01:00
test-sshaskpass.py.out sshaskpass: enable ssh to ask password if running with chg 2016-07-17 20:35:34 +01:00
test-syncstatus.t Add sync status and change the conduit call to differential.querydiffhashes 2016-08-05 11:33:36 -07:00
test-tweakdefaults-blame.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-tweakdefaults-bookmarks.t test-tweakdefaults-bookmarks.t: fix typo 2016-08-15 18:45:19 +01:00
test-tweakdefaults-grep.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-tweakdefaults-histgrep.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-tweakdefaults-opawarecommands.t hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
test-tweakdefaults-ordering.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-tweakdefaults-remotenames.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-tweakdefaults.t check-code: enfore checking before using common foreign extensions 2016-07-12 20:39:34 +01:00
test-uncommit-bookmark.t Implement 'hg uncommit' 2016-08-17 13:43:25 -07:00
test-uncommit-merge.t Implement 'hg uncommit' 2016-08-17 13:43:25 -07:00
test-uncommit.t Implement 'hg uncommit' 2016-08-17 13:43:25 -07:00
waitforfile.py [fastmanifest] add the ability for waitforfile.py to wait for a file to materialize 2016-06-24 16:17:18 -07:00

How to run Facebook experimental extensions tests
=================================================

Running the tests
-----------------

To run the tests, `cd` into this directory (./tests/) and run the `run-tests.py`
script from the core Mercurial repository (tests directory too).

For example if you have a 'hg-crew' repository checked out next to this one,
use:

  ../../hg-crew/tests/run-tests.py

Obtaining the test runners
--------------------------

If you do not already have a copy of the Mercurial repository, you can obtains
one with:

  $ hg clone http://selenic.com/hg/

Running against various Mercurial versions
------------------------------------------

By default, the test runners will run against the version of Mercurial in the
repository it lives in. you can run against other version of Mercurial using
the --with-hg=PATH flag. For example to run against the installed version of
Mercurial you can use --with-hg=`which hg`