~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-security

« back to all changes in this revision

Viewing changes to t/t3000-ls-files-others.sh

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-10-04 08:27:01 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20071004082701-rsd058ontoqz4i30
Tags: 1:1.5.3.4-1
new upstream point release (closes: #445188).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Copyright (c) 2005 Junio C Hamano
4
4
#
5
5
 
6
 
test_description='git-ls-files test (--others should pick up symlinks).
 
6
test_description='git ls-files test (--others should pick up symlinks).
7
7
 
8
 
This test runs git-ls-files --others with the following on the
 
8
This test runs git ls-files --others with the following on the
9
9
filesystem.
10
10
 
11
11
    path0       - a file
23
23
date >path2-junk
24
24
date >path3/file3
25
25
date >path3-junk
26
 
git-update-index --add path3-junk path3/file3
 
26
git update-index --add path3-junk path3/file3
27
27
 
28
28
cat >expected1 <<EOF
29
29
expected1
37
37
sed -e 's|path2/file2|path2/|' <expected1 >expected2
38
38
 
39
39
test_expect_success \
40
 
    'git-ls-files --others to show output.' \
41
 
    'git-ls-files --others >output'
 
40
    'git ls-files --others to show output.' \
 
41
    'git ls-files --others >output'
42
42
 
43
43
test_expect_success \
44
 
    'git-ls-files --others should pick up symlinks.' \
 
44
    'git ls-files --others should pick up symlinks.' \
45
45
    'diff output expected1'
46
46
 
47
47
test_expect_success \
48
 
    'git-ls-files --others --directory to show output.' \
49
 
    'git-ls-files --others --directory >output'
 
48
    'git ls-files --others --directory to show output.' \
 
49
    'git ls-files --others --directory >output'
50
50
 
51
51
 
52
52
test_expect_success \
53
 
    'git-ls-files --others --directory should not get confused.' \
 
53
    'git ls-files --others --directory should not get confused.' \
54
54
    'diff output expected2'
55
55
 
56
56
test_done