Rename some test scripts and describe the naming convention
[git/gitweb.git] / t / t3000-ls-files-others.sh
blob7f93e1cce65f39ecfa69e7425ffd4a6fde5404b4
1 #!/bin/sh
3 # Copyright (c) 2005 Junio C Hamano
6 test_description='git-ls-files test (--others should pick up symlinks).
8 This test runs git-ls-files --others with the following on the
9 filesystem.
11 path0 - a file
12 path1 - a symlink
13 path2/file2 - a file in a directory
15 . ./test-lib.sh
17 date >path0
18 ln -s xyzzy path1
19 mkdir path2
20 date >path2/file2
21 test_expect_success \
22 'git-ls-files --others to show output.' \
23 'git-ls-files --others >.output'
24 cat >.expected <<EOF
25 path0
26 path1
27 path2/file2
28 EOF
30 test_expect_success \
31 'git-ls-files --others should pick up symlinks.' \
32 'diff .output .expected'
33 test_done