~ubuntu-branches/ubuntu/karmic/git-core/karmic

« back to all changes in this revision

Viewing changes to t/t2200-add-update.sh

  • Committer: Package Import Robot
  • Author(s): Kees Cook
  • Date: 2008-11-13 15:11:17 UTC
  • mfrom: (1.1.30) (18.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20081113151117-1z51cdgqzhun6e6x
Tags: 1:1.6.0.4-1ubuntu1
* Merge from debian experimental, remaining changes:
  - debian/control:
    - Drop recently introduced cvsps build dependency; it's only necessary
      or some self tests, but is in universe (Ubuntu specific).
    - Added libauthen-sasl-perl on Recommends and libnet-smtp-ssl-perl on
      Depends for git-email (debian bug 505636).

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        echo initial >dir2/sub3 &&
27
27
        git add check dir1 dir2 top foo &&
28
28
        test_tick
29
 
        git-commit -m initial &&
 
29
        git commit -m initial &&
30
30
 
31
31
        echo changed >check &&
32
32
        echo changed >top &&
40
40
'
41
41
 
42
42
test_expect_success 'update noticed a removal' '
43
 
        test "$(git-ls-files dir1/sub1)" = ""
 
43
        test "$(git ls-files dir1/sub1)" = ""
44
44
'
45
45
 
46
46
test_expect_success 'update touched correct path' '
47
 
        test "$(git-diff-files --name-status dir2/sub3)" = ""
 
47
        test "$(git diff-files --name-status dir2/sub3)" = ""
48
48
'
49
49
 
50
50
test_expect_success 'update did not touch other tracked files' '
51
 
        test "$(git-diff-files --name-status check)" = "M       check" &&
52
 
        test "$(git-diff-files --name-status top)" = "M top"
 
51
        test "$(git diff-files --name-status check)" = "M       check" &&
 
52
        test "$(git diff-files --name-status top)" = "M top"
53
53
'
54
54
 
55
55
test_expect_success 'update did not touch untracked files' '
56
 
        test "$(git-ls-files dir2/other)" = ""
 
56
        test "$(git ls-files dir2/other)" = ""
57
57
'
58
58
 
59
59
test_expect_success 'cache tree has not been corrupted' '