archive-zip.c: mark more strings for translation
[git/debian.git] / t / t9830-git-p4-symlink-dir.sh
blob3dc528bb1e0b90c17739b2702afcb8903f8cda10
1 #!/bin/sh
3 test_description='git p4 symlinked directories'
5 . ./lib-git-p4.sh
7 test_expect_success 'start p4d' '
8 start_p4d
11 test_expect_success 'symlinked directory' '
13 cd "$cli" &&
14 : >first_file.t &&
15 p4 add first_file.t &&
16 p4 submit -d "first change"
17 ) &&
18 git p4 clone --dest "$git" //depot &&
20 cd "$git" &&
21 mkdir -p some/sub/directory &&
22 mkdir -p other/subdir2 &&
23 : > other/subdir2/file.t &&
24 (cd some/sub/directory && ln -s ../../../other/subdir2 .) &&
25 git add some other &&
26 git commit -m "symlinks" &&
27 git config git-p4.skipSubmitEdit true &&
28 git p4 submit -v
29 ) &&
31 cd "$cli" &&
32 p4 sync &&
33 test -L some/sub/directory/subdir2
34 test_path_is_file some/sub/directory/subdir2/file.t
39 test_expect_success 'kill p4d' '
40 kill_p4d
43 test_done