sapling/tests
2006-05-14 21:07:34 -07:00
..
coverage.py Add code coverage to the python version of run-tests (inc. annotation) 2006-04-27 21:59:44 -07:00
fish-merge Remove "export FOO=bar" bashism. 2005-07-29 14:54:36 +01:00
md5sum.py clarify license on md5sum.py 2006-03-06 17:58:53 +01:00
README deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
run-tests.py catch KeyboardInterrupt in run-tests 2006-05-11 14:06:18 +02:00
test-addremove Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-addremove.out Corrected test output for deprecated addremove command. 2006-05-03 10:18:52 +02:00
test-archive tests: support older version of bunzip2 and, possibly, gunzip too 2006-05-03 11:25:36 +02:00
test-archive.out Corrected test output for deprecated addremove command. 2006-05-03 10:18:52 +02:00
test-backout tests: fix compatibility on Solaris 2006-05-03 11:25:25 +02:00
test-backout.out fix coding style of backout editor change. 2006-05-11 14:41:52 -07:00
test-backwards-remove Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-backwards-remove.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-bad-pull tests: more portability fix for the old systems 2006-03-15 11:09:24 +01:00
test-bad-pull.out Move empty local repo logic for pull into findincoming 2006-04-21 15:33:51 -05:00
test-basic Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-basic.out Show repo's revlog format on verify only if it doesn't match the default format. 2006-04-28 21:52:08 +02:00
test-bdiff Add a fast binary diff extension (not yet used) 2005-06-21 17:27:58 -08:00
test-bdiff.out Add a fast binary diff extension (not yet used) 2005-06-21 17:27:58 -08:00
test-bundle tests for bundles and bundlerepo 2006-05-12 18:39:37 +02:00
test-bundle.out tests for bundles and bundlerepo 2006-05-12 18:39:37 +02:00
test-cat Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-cat.out Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-clone changes by John Levon to standardize some erroroutput 2006-02-22 15:57:43 +01:00
test-clone-failure Use sh instead of bash in tests. 2005-08-04 18:20:40 +01:00
test-clone-failure.out Move empty local repo logic for pull into findincoming 2006-04-21 15:33:51 -05:00
test-clone-pull-corruption Added test cases for repo corruption fixed in e2b47039575f (issue132) 2006-02-22 07:45:14 +01:00
test-clone-pull-corruption.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-clone-r remove bashisms from tests 2006-03-12 08:08:22 +01:00
test-clone-r.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-clone.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-command-template Use timestamps without leading 0 in test-command-template for portable tests. 2006-03-13 18:33:33 +01:00
test-command-template.out Use timestamps without leading 0 in test-command-template for portable tests. 2006-03-13 18:33:33 +01:00
test-commit Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-commit.out Updated test-commit to match changed output caused by nested transactions. 2006-02-28 23:19:47 +01:00
test-committer Add tests/test-committer 2006-04-20 16:33:49 +02:00
test-committer.out Add tests/test-committer 2006-04-20 16:33:49 +02:00
test-conflict deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-conflict.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-confused-revert deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-confused-revert.out make test-confused-revert check working dir with two parents. 2006-05-05 10:45:08 -07:00
test-copy Update tests for revlogng 2006-05-08 14:32:43 -05:00
test-copy2 The copy tests don't need to invoke cp any longer. 2005-09-14 16:31:03 -07:00
test-copy2.out Fixed test-copy2 with only looking at copied files. 2005-08-28 16:37:24 +02:00
test-copy.out Update tests for revlogng 2006-05-08 14:32:43 -05:00
test-diff-newlines fix diffs containing embedded "\r". 2006-05-10 10:31:54 -07:00
test-diff-newlines.out fix diffs containing embedded "\r". 2006-05-10 10:31:54 -07:00
test-diffdir Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-diffdir.out Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-empty Add empty repo test 2005-09-23 17:52:15 -07:00
test-empty-dir Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-empty-dir.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-empty.out Show repo's revlog format on verify only if it doesn't match the default format. 2006-04-28 21:52:08 +02:00
test-encode Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-encode.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-excessive-merge deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-excessive-merge.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-filebranch deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-filebranch.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-flags deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-flags.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-grep use posix compliant option for head 2005-11-13 16:25:45 +01:00
test-grep.out Add test-grep.out file for now. 2005-08-29 11:28:48 -07:00
test-help Further help improvements: 2005-08-06 15:43:12 +01:00
test-help.out hide deprecated undo command by making it an alias for debugundo. 2006-05-09 20:56:13 -07:00
test-hgignore Fix broken hgignore tests due to full path showing up in output. 2006-03-26 22:54:05 +02:00
test-hgignore.out Adjusted test output to match new hgignore error messages. 2006-01-07 16:34:20 +01:00
test-hgrc make readconfig take a filename instead of a file pointer as argument 2005-10-27 13:40:56 -07:00
test-hgrc.out Add missing test output 2005-10-27 13:48:00 -07:00
test-hook deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-hook.out hooks: add preupdate and update hooks. 2006-05-11 10:14:48 -07:00
test-hup Exit test-hup only after the background process has died. 2006-04-19 07:09:15 +02:00
test-hup.out Update tests for revlogng 2006-05-08 14:32:43 -05:00
test-incoming-outgoing add tests for incoming and outgoing 2006-05-11 16:19:44 +02:00
test-incoming-outgoing.out add tests for incoming and outgoing 2006-05-11 16:19:44 +02:00
test-locate Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-locate.out Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-lock-badness fix backtrace printed when cannot get lock. 2006-03-28 09:01:07 -08:00
test-lock-badness.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-merge1 deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-merge1.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-merge2 Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-merge2.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-merge3 Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-merge3.out transitive copy/rename 2006-02-18 07:37:59 -08:00
test-merge4 deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-merge4.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-merge5 Don't require the "yes" command for test-merge5. 2006-03-15 11:26:57 +01:00
test-merge5.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-merge6 deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-merge6.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-merge7 deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-merge7.out deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-merge-revert Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-merge-revert2 rewrite revert command. fix issues 93, 123, 147. 2006-03-31 10:37:25 -08:00
test-merge-revert2.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-merge-revert.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-nested-repo mke test-nested-repo use "revert" instead of "forget" 2006-04-26 12:06:21 -07:00
test-nested-repo.out Fixed test output for not using the deprecated 'hg forget'. 2006-04-27 13:05:02 +02:00
test-notfound Addes test for error messages when operating on non-existing files. 2005-08-15 06:58:25 +01:00
test-notfound.out Fix up failing tests. 2005-09-01 07:37:49 -07:00
test-permissions Update tests for revlogng 2006-05-08 14:32:43 -05:00
test-permissions.out Show repo's revlog format on verify only if it doesn't match the default format. 2006-04-28 21:52:08 +02:00
test-pull Merging with crew. 2006-03-06 08:47:16 -08:00
test-pull-permission Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-pull-permission.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-pull-pull-corruption Added test cases for repo corruption fixed in e2b47039575f (issue132) 2006-02-22 07:45:14 +01:00
test-pull-pull-corruption2 add benoit's test for issue148. 2006-03-24 10:31:23 -08:00
test-pull-pull-corruption2.out Show repo's revlog format on verify only if it doesn't match the default format. 2006-04-28 21:52:08 +02:00
test-pull-pull-corruption.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-pull.out Corrected test output for deprecated addremove command. 2006-05-03 10:18:52 +02:00
test-push-hook-lock Create local ui object per repository, so .hg/hgrc don't get mixed. 2006-03-06 17:47:41 +01:00
test-push-hook-lock.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-push-r remove bashisms from tests 2006-03-12 08:08:22 +01:00
test-push-r.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-push-warn deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-push-warn.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-rawcommit1 Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-rawcommit1.out Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-remove make test-remove check some more cases. 2006-05-02 21:45:53 -07:00
test-remove.out make test-remove check some more cases. 2006-05-02 21:45:53 -07:00
test-rename Enable path validation for copy, rename, debugwalk and other canonpath users. 2006-03-19 14:53:58 +01:00
test-rename.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-revert revert: fix corner case found by faheem mitha. 2006-05-11 22:10:47 -07:00
test-revert-unknown Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-revert-unknown.out small changes to revert command. 2006-04-03 10:02:09 -07:00
test-revert.out revert: fix corner case found by faheem mitha. 2006-05-11 22:10:47 -07:00
test-ro-message deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-ro-message.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-rollback deprecate undo command, replace with rollback command. 2006-05-08 14:19:05 -07:00
test-rollback.out deprecate undo command, replace with rollback command. 2006-05-08 14:19:05 -07:00
test-simple-update Don't use 'set -x', fix exports, sed and hexdump usage for Solaris. 2005-07-29 15:19:43 +01:00
test-simple-update.out Corrected test output for deprecated addremove command. 2006-05-03 10:18:52 +02:00
test-ssh Added test for incoming via ssh. 2006-03-21 12:15:25 +01:00
test-ssh.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-static-http tests: more portability fix for the old systems 2006-03-15 11:09:24 +01:00
test-static-http.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-status Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-status.out Added test for relative paths and all status flags for 'hg status' 2006-01-17 16:00:55 +01:00
test-symlinks Fix issue 165: `hg status' with abs path containing a symlink-to-dir fails 2006-04-21 16:09:43 -07:00
test-symlinks.out Corrected test output for deprecated addremove command. 2006-05-03 10:18:52 +02:00
test-tag Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-tag.out Don't abort when backup files already exist. Don't allow alternative names. 2006-04-01 11:58:50 +02:00
test-tags deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-tags.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-unrelated-pull update test for unrelated repo. 2006-03-14 23:00:45 -08:00
test-unrelated-pull.out add merge command. means same thing as "update -m". 2006-03-29 10:27:16 -08:00
test-up-local-change deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-up-local-change.out deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
test-update-reverse Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. 2006-03-13 13:05:41 +01:00
test-update-reverse.out Make hg update more verbose by default (issue12) 2006-05-02 18:44:02 +02:00
test-walk Enable path validation for copy, rename, debugwalk and other canonpath users. 2006-03-19 14:53:58 +01:00
test-walk.out Corrected test output for deprecated addremove command. 2006-05-03 10:18:52 +02:00

A simple testing framework

To run the tests, do:

cd tests/
python run-tests.py

This finds all scripts in the test directory named test-* and executes
them. The scripts can be either shell scripts or Python. Each test is
run in a temporary directory that is removed when the test is complete.

A test-<x> succeeds if the script returns success and its output
matches test-<x>.out. If the new output doesn't match, it is stored in
test-<x>.err.

There are some tricky points here that you should be aware of when
writing tests:

- hg commit and hg merge want user interaction

  for commit use -m "text"
  for hg merge, set HGMERGE to something noninteractive (like true or merge)

- changeset hashes will change based on user and date which make
  things like hg history output change

  use commit -m "test" -u test -d "1000000 0"

- diff will show the current time

  use hg diff | sed "s/\(\(---\|+++\) [a-zA-Z0-9_/.-]*\).*/\1/" to strip
  dates