test-lib: check Bash version for '-x' without using shell arrays
[git/raj.git] / t / t0062-revision-walking.sh
blob113c728e676679f8e8e8eb0fce433a84bbee8050
1 #!/bin/sh
3 # Copyright (c) 2012 Heiko Voigt
6 test_description='Test revision walking api'
8 . ./test-lib.sh
10 cat >run_twice_expected <<-EOF
11 1st
12 > add b
13 > add a
14 2nd
15 > add b
16 > add a
17 EOF
19 test_expect_success 'setup' '
20 echo a > a &&
21 git add a &&
22 git commit -m "add a" &&
23 echo b > b &&
24 git add b &&
25 git commit -m "add b"
28 test_expect_success 'revision walking can be done twice' '
29 test-revision-walking run-twice >run_twice_actual &&
30 test_cmp run_twice_expected run_twice_actual
33 test_done