t5521: fix and modernize
[git/gitweb.git] / t / t5521-pull-options.sh
blobc18d82973fb75f3a17d4b7657f2168418c125457
1 #!/bin/sh
3 test_description='pull options'
5 . ./test-lib.sh
7 test_expect_success 'setup' '
8 mkdir parent &&
9 (cd parent && git init &&
10 echo one >file && git add file &&
11 git commit -m one)
14 test_expect_success 'git pull -q' '
15 mkdir clonedq &&
16 (cd clonedq && git init &&
17 git pull -q "../parent" >out 2>err &&
18 test ! -s err &&
19 test ! -s out)
22 test_expect_success 'git pull' '
23 mkdir cloned &&
24 (cd cloned && git init &&
25 git pull "../parent" >out 2>err &&
26 test -s err &&
27 test ! -s out)
30 test_expect_success 'git pull -v' '
31 mkdir clonedv &&
32 (cd clonedv && git init &&
33 git pull -v "../parent" >out 2>err &&
34 test -s err &&
35 test ! -s out)
38 test_expect_success 'git pull -v -q' '
39 mkdir clonedvq &&
40 (cd clonedvq && git init &&
41 git pull -v -q "../parent" >out 2>err &&
42 test ! -s out &&
43 test ! -s err)
46 test_expect_success 'git pull -q -v' '
47 mkdir clonedqv &&
48 (cd clonedqv && git init &&
49 git pull -q -v "../parent" >out 2>err &&
50 test ! -s out &&
51 test -s err)
54 test_done