sapling/tests
2005-10-29 13:45:01 -07:00
..
fish-merge Remove "export FOO=bar" bashism. 2005-07-29 14:54:36 +01:00
README Adapted README to new needs. 2005-07-29 15:11:34 +01:00
run-tests Cleanup of tabs and trailing spaces. 2005-09-21 07:56:19 +02:00
test-archive hgweb: use ui:username rather than web:contact 2005-09-15 14:05:48 -05:00
test-archive.out Added test case for zip/gz/bz2 archive downloads. 2005-08-30 19:17:05 +02:00
test-backwards-remove Don't use 'set -x', fix exports, sed and hexdump usage for Solaris. 2005-07-29 15:19:43 +01:00
test-backwards-remove.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-bad-pull Don't use 'set -x', fix exports, sed and hexdump usage for Solaris. 2005-07-29 15:19:43 +01:00
test-bad-pull.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-basic Don't use 'set -x', fix exports, sed and hexdump usage for Solaris. 2005-07-29 15:19:43 +01:00
test-basic.out [PATCH] Print timezone offset when outputting dates 2005-08-19 23:23:42 -08: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-clone Use sh instead of bash in tests. 2005-08-04 18:20:40 +01:00
test-clone-failure Use sh instead of bash in tests. 2005-08-04 18:20:40 +01:00
test-clone-failure.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-clone-r Added a test for clone -r. 2005-10-16 16:24:40 -07:00
test-clone-r.out Added a test for clone -r. 2005-10-16 16:24:40 -07:00
test-clone.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-commit Get test-commit to exit cleanly. 2005-09-04 14:48:33 -07:00
test-commit.out Commit date validation: more stringent checks, more useful error messages. 2005-09-04 14:47:02 -07:00
test-conflict Don't use 'set -x', fix exports, sed and hexdump usage for Solaris. 2005-07-29 15:19:43 +01:00
test-conflict.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-confused-revert Add test-confused-revert, fix permissions on test-revert 2005-10-25 15:54:44 -07:00
test-confused-revert.out Add test-confused-revert, fix permissions on test-revert 2005-10-25 15:54:44 -07:00
test-copy The copy tests don't need to invoke cp any longer. 2005-09-14 16:31:03 -07: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 Removed forgotten debug print statement from commands.py and tests. 2005-08-25 16:00:08 +02:00
test-diffdir test fixes for Solaris 2.6 2005-08-18 13:33:39 +01:00
test-diffdir.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-empty Add empty repo test 2005-09-23 17:52:15 -07:00
test-empty-dir Update tests to use commit -m and default -u 2005-07-21 15:05:17 -05:00
test-empty-dir.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-empty.out Add empty repo test 2005-09-23 17:52:15 -07:00
test-encode Add file encoding/decoding support 2005-09-15 02:59:16 -05:00
test-encode.out Add file encoding/decoding support 2005-09-15 02:59:16 -05:00
test-filebranch Clean up some merge logic 2005-08-23 02:19:38 -07:00
test-filebranch.out Update tests 2005-08-24 19:19:35 -07:00
test-flags Don't use 'set -x', fix exports, sed and hexdump usage for Solaris. 2005-07-29 15:19:43 +01:00
test-flags.out Update tests 2005-08-24 19:19:35 -07:00
test-grep Change grep -e to grep --all 2005-09-07 20:50:23 -07: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 Elevate parents to a "common" command in help 2005-10-27 13:49:15 -07:00
test-hgignore add a test for hgignore 2005-10-28 11:03:18 -07:00
test-hgignore.out add a test for hgignore 2005-10-28 11:03:18 -07: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 Change test-hook to test multiple hooks 2005-10-29 13:45:01 -07:00
test-hook.out Change test-hook to test multiple hooks 2005-10-29 13:45:01 -07:00
test-hup update test-hup permissions 2005-07-06 22:37:06 -08:00
test-hup.out test-hup: hgrc no longer created at init 2005-09-15 14:06:58 -05:00
test-merge1 Fix bug with co -C across branches, update tests 2005-09-13 18:38:27 -05:00
test-merge1.out Fix bug with co -C across branches, update tests 2005-09-13 18:38:27 -05:00
test-merge2 Don't use 'set -x', fix exports, sed and hexdump usage for Solaris. 2005-07-29 15:19:43 +01:00
test-merge2.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-merge3 Don't use 'set -x', fix exports, sed and hexdump usage for Solaris. 2005-07-29 15:19:43 +01:00
test-merge3.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-merge4 Don't use 'set -x', fix exports, sed and hexdump usage for Solaris. 2005-07-29 15:19:43 +01:00
test-merge4.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-merge5 Don't use 'set -x', fix exports, sed and hexdump usage for Solaris. 2005-07-29 15:19:43 +01:00
test-merge5.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-merge6 Don't use 'set -x', fix exports, sed and hexdump usage for Solaris. 2005-07-29 15:19:43 +01:00
test-merge6.out Update tests 2005-08-24 19:19:35 -07:00
test-merge7 Make test-merge7 repeatable 2005-09-27 14:53:11 -07:00
test-merge7.out Make test-merge7 repeatable 2005-09-27 14:53:11 -07:00
test-merge-revert Removed special FIXME handling in run-tests, added bug info to .out files. 2005-08-04 18:13:17 +01:00
test-merge-revert2 test fixes for Solaris 2.6 2005-08-18 13:33:39 +01:00
test-merge-revert2.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-merge-revert.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08: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-pull Make test-pull work on slow machines, where hg serve needs some time to start. 2005-07-23 17:09:37 +01:00
test-pull-permission clone: fall back to pull if we can't lock the source repo 2005-09-14 15:48:34 -05:00
test-pull-permission.out clone: fall back to pull if we can't lock the source repo 2005-09-14 15:48:34 -05:00
test-pull.out run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-push-warn Warn on pushing unsynced repo or adding new heads 2005-08-01 23:17:22 -08:00
test-push-warn.out Update tests 2005-08-24 19:19:35 -07:00
test-rawcommit1 Cleanup of tabs and trailing spaces. 2005-09-21 07:56:19 +02:00
test-rawcommit1.out Clean up some merge logic 2005-08-23 02:19:38 -07:00
test-remove Add a simple remove test 2005-08-17 12:26:06 -08:00
test-revert Add test-confused-revert, fix permissions on test-revert 2005-10-25 15:54:44 -07:00
test-revert-unknown Fix bug with co -C across branches, update tests 2005-09-13 18:38:27 -05:00
test-revert-unknown.out Fix bug with co -C across branches, update tests 2005-09-13 18:38:27 -05:00
test-revert.out revert added and removed files to their normal state before reverting 2005-10-25 15:51:28 -07:00
test-ro-message Fix +x permissions lost by export/import 2005-09-27 14:59:30 -07:00
test-ro-message.out Test case for the misleading message on bad permissions. 2005-09-27 14:59:02 -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 run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-ssh Fixed two tests to run with bourne shell. 2005-08-30 19:42:58 +02:00
test-ssh.out Fixed two tests to run with bourne shell. 2005-08-30 19:42:58 +02:00
test-static-http Fixed test-static-http with http_proxy variable set. 2005-08-28 16:41:16 +02:00
test-static-http.out Fix up static-http test 2005-09-23 19:46:43 -07:00
test-symlinks symlink unit test 2005-10-18 21:32:51 -07:00
test-symlinks.out rewrote changes function in dirstate to use generic walk code 2005-10-27 13:29:35 -07:00
test-tag Cleanup of tabs and trailing spaces. 2005-09-21 07:56:19 +02:00
test-tag.out Fix test-tag output for new abort message 2005-09-13 14:23:43 -05:00
test-tags run-tests: remove '+ hg' trick 2005-08-16 19:03:01 -08:00
test-tags.out Clean up some merge logic 2005-08-23 02:19:38 -07:00
test-undo Don't use 'set -x', fix exports, sed and hexdump usage for Solaris. 2005-07-29 15:19:43 +01:00
test-undo.out [PATCH] Print timezone offset when outputting dates 2005-08-19 23:23:42 -08:00
test-unrelated-pull Cleanup of tabs and trailing spaces. 2005-09-21 07:56:19 +02:00
test-unrelated-pull.out Update tests 2005-08-24 19:19:35 -07:00
test-up-local-change test fixes for Solaris 2.6 2005-08-18 13:33:39 +01:00
test-up-local-change.out Repair ancestor logic, fix up test cases 2005-09-26 16:52:47 -07:00
test-update-reverse Remove deprecated commit -t option 2005-10-24 20:42:20 -07:00
test-update-reverse.out Remove deprecated commit -t option 2005-10-24 20:42:20 -07:00
test-walk Do not use 'glob' expansion by default on OS != 'nt' 2005-10-19 00:02:41 -07:00
test-walk.out Make debugwalk strip trailing spaces and remove these from test-walk.out 2005-09-21 08:07:38 +02:00

A simple testing framework

To run the tests, do:

cd tests/
./run-tests

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 up -m want user interaction

  for commit use -m "text"
  for hg up -m, 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 "0 0"

- diff will show the current time

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