]>
Commit | Line | Data |
---|---|---|
bcc0a3ea HV |
1 | #!/bin/sh |
2 | # | |
3 | # Copyright (c) 2012 Heiko Voigt | |
4 | # | |
5 | ||
6 | test_description='Test revision walking api' | |
7 | ||
7a98d9ab | 8 | TEST_PASSES_SANITIZE_LEAK=true |
bcc0a3ea HV |
9 | . ./test-lib.sh |
10 | ||
11 | cat >run_twice_expected <<-EOF | |
12 | 1st | |
13 | > add b | |
14 | > add a | |
15 | 2nd | |
16 | > add b | |
17 | > add a | |
18 | EOF | |
19 | ||
20 | test_expect_success 'setup' ' | |
21 | echo a > a && | |
22 | git add a && | |
23 | git commit -m "add a" && | |
24 | echo b > b && | |
25 | git add b && | |
26 | git commit -m "add b" | |
27 | ' | |
28 | ||
29 | test_expect_success 'revision walking can be done twice' ' | |
77d4b8c8 | 30 | test-tool revision-walking run-twice >run_twice_actual && |
bcc0a3ea HV |
31 | test_cmp run_twice_expected run_twice_actual |
32 | ' | |
33 | ||
34 | test_done |