]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Collect merge-related tests to t64xx
authorElijah Newren <newren@gmail.com>
Mon, 10 Aug 2020 22:29:09 +0000 (22:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Aug 2020 22:59:00 +0000 (15:59 -0700)
The tests for the merge machinery are spread over several places.
Collect them into t64xx for simplicity.  Some notes:

t60[234]*.sh:
  Merge tests started in t602*, overgrew bisect and remote tracking
  tests in t6030, t6040, and t6041, and nearly overtook replace tests
  in t6050.  This made picking out relevant tests that I wanted to run
  in a tighter loop slightly more annoying for years.

t303*.sh:
  These started out as tests for the 'merge-recursive' toplevel command,
  but did not restrict to that and had lots of overlap with the
  underlying merge machinery.
t7405, t7613:
  submodule-specific merge logic started out in submodule.c but was
  moved to merge-recursive.c in commit 18cfc08866 ("submodule.c: move
  submodule merging to merge-recursive.c", 2018-05-15).  Since these
  tests are about the logic found in the merge machinery, moving these
  tests to be with the merge tests makes sense.

t7607, t7609:
  Having tests spread all over the place makes it more likely that
  additional tests related to a certain piece of logic grow in all those
  other places.  Much like t303*.sh, these two tests were about the
  underlying merge machinery rather than outer levels.

Tests that were NOT moved:

t76[01]*.sh:
  Other than the four tests mentioned above, the remaining tests in
  t76[01]*.sh are related to non-recursive merge strategies, parameter
  parsing, and other stuff associated with the highlevel builtin/merge.c
  rather than the recursive merge machinery.

t3[45]*.sh:
  The rebase testcases in t34*.sh also test the merge logic pretty
  heavily; sometimes changes I make only trigger failures in the rebase
  tests.  The rebase tests are already nicely coupled together, though,
  and I didn't want to mess that up.  Similar comments apply for the
  cherry-pick tests in t35*.sh.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
35 files changed:
t/t6400-merge-df.sh [moved from t/t6020-merge-df.sh with 100% similarity]
t/t6401-merge-criss-cross.sh [moved from t/t6021-merge-criss-cross.sh with 100% similarity]
t/t6402-merge-rename.sh [moved from t/t6022-merge-rename.sh with 100% similarity]
t/t6403-merge-file.sh [moved from t/t6023-merge-file.sh with 100% similarity]
t/t6404-recursive-merge.sh [moved from t/t6024-recursive-merge.sh with 100% similarity]
t/t6405-merge-symlinks.sh [moved from t/t6025-merge-symlinks.sh with 100% similarity]
t/t6406-merge-attr.sh [moved from t/t6026-merge-attr.sh with 100% similarity]
t/t6407-merge-binary.sh [moved from t/t6027-merge-binary.sh with 100% similarity]
t/t6408-merge-up-to-date.sh [moved from t/t6028-merge-up-to-date.sh with 100% similarity]
t/t6409-merge-subtree.sh [moved from t/t6029-merge-subtree.sh with 100% similarity]
t/t6411-merge-filemode.sh [moved from t/t6031-merge-filemode.sh with 100% similarity]
t/t6412-merge-large-rename.sh [moved from t/t6032-merge-large-rename.sh with 100% similarity]
t/t6413-merge-crlf.sh [moved from t/t6033-merge-crlf.sh with 100% similarity]
t/t6414-merge-rename-nocruft.sh [moved from t/t6034-merge-rename-nocruft.sh with 100% similarity]
t/t6415-merge-dir-to-symlink.sh [moved from t/t6035-merge-dir-to-symlink.sh with 100% similarity]
t/t6416-recursive-corner-cases.sh [moved from t/t6036-recursive-corner-cases.sh with 100% similarity]
t/t6417-merge-ours-theirs.sh [moved from t/t6037-merge-ours-theirs.sh with 100% similarity]
t/t6418-merge-text-auto.sh [moved from t/t6038-merge-text-auto.sh with 100% similarity]
t/t6419-merge-ignorecase.sh [moved from t/t6039-merge-ignorecase.sh with 100% similarity]
t/t6422-merge-rename-corner-cases.sh [moved from t/t6042-merge-rename-corner-cases.sh with 100% similarity]
t/t6423-merge-rename-directories.sh [moved from t/t6043-merge-rename-directories.sh with 100% similarity]
t/t6424-merge-unrelated-index-changes.sh [moved from t/t6044-merge-unrelated-index-changes.sh with 100% similarity]
t/t6425-merge-rename-delete.sh [moved from t/t6045-merge-rename-delete.sh with 100% similarity]
t/t6426-merge-skip-unneeded-updates.sh [moved from t/t6046-merge-skip-unneeded-updates.sh with 100% similarity]
t/t6427-diff3-conflict-markers.sh [moved from t/t6047-diff3-conflict-markers.sh with 100% similarity]
t/t6430-merge-recursive.sh [moved from t/t3030-merge-recursive.sh with 100% similarity]
t/t6431-merge-criscross.sh [moved from t/t3031-merge-criscross.sh with 100% similarity]
t/t6432-merge-recursive-space-options.sh [moved from t/t3032-merge-recursive-space-options.sh with 100% similarity]
t/t6433-merge-toplevel.sh [moved from t/t3033-merge-toplevel.sh with 100% similarity]
t/t6434-merge-recursive-rename-options.sh [moved from t/t3034-merge-recursive-rename-options.sh with 100% similarity]
t/t6435-merge-sparse.sh [moved from t/t3035-merge-sparse.sh with 100% similarity]
t/t6436-merge-overwrite.sh [moved from t/t7607-merge-overwrite.sh with 100% similarity]
t/t6437-submodule-merge.sh [moved from t/t7405-submodule-merge.sh with 100% similarity]
t/t6438-submodule-directory-file-conflicts.sh [moved from t/t7613-merge-submodule.sh with 100% similarity]
t/t6439-merge-co-error-msgs.sh [moved from t/t7609-merge-co-error-msgs.sh with 100% similarity]

similarity index 100%
rename from t/t6020-merge-df.sh
rename to t/t6400-merge-df.sh
similarity index 100%
rename from t/t6023-merge-file.sh
rename to t/t6403-merge-file.sh
similarity index 100%
rename from t/t6026-merge-attr.sh
rename to t/t6406-merge-attr.sh
similarity index 100%
rename from t/t6033-merge-crlf.sh
rename to t/t6413-merge-crlf.sh