]> khamidou — GitHub mirrors - arcanist.git/commit
Add git-repo-based bundle tests
authorepriestley <git@epriestley.com>
Fri, 21 Sep 2012 19:27:21 +0000 (12:27 -0700)
committerepriestley <git@epriestley.com>
Fri, 21 Sep 2012 19:27:21 +0000 (12:27 -0700)
commit95c663f461b588f817edfa529663ad8ce75491cb
treeb9ca094c212d084da93753eca6100c95d16f1328
parent22c51d0d71bc7e79accbb4ebe7a5bb4a8991a510
Add git-repo-based bundle tests

Summary:
Adds a test which goes through a git repository commit by commit and applies them (in effect) via "arc patch", verifying that the results match the actual commit.

See D3439 for the fixture stuff.

The git repo archive has a couple of trivial commits in it:

  $ ../libphutil/scripts/utils/directory_fixture.php src/parser/__tests__/bundle.git.tgz
  Spawning an interactive shell. Exit when complete.

  sh-3.2$ git log
  commit f19fb9fa1385c01b53bdb6d8842dd154e47151ec
  Author: epriestley <git@epriestley.com>
  Date:   Wed Sep 5 14:30:28 2012 -0700

      Edit a text file.

  commit 228d7be4840313ed805c25c15bba0f7b188af3e6
  Author: epriestley <git@epriestley.com>
  Date:   Wed Sep 5 14:30:11 2012 -0700

      Add a text file.

Test Plan: Ran tests.

Reviewers: edward

Reviewed By: edward

CC: aran
Maniphest Tasks: T866

Differential Revision: https://secure.phabricator.com/D3440
src/parser/__tests__/ArcanistBundleTestCase.php
src/parser/__tests__/bundle.git.tgz [new file with mode: 0644]