]> git.ipfire.org Git - thirdparty/git.git/blame - t/t0062-revision-walking.sh
Start the 2.46 cycle
[thirdparty/git.git] / t / t0062-revision-walking.sh
CommitLineData
bcc0a3ea
HV
1#!/bin/sh
2#
3# Copyright (c) 2012 Heiko Voigt
4#
5
6test_description='Test revision walking api'
7
7a98d9ab 8TEST_PASSES_SANITIZE_LEAK=true
bcc0a3ea
HV
9. ./test-lib.sh
10
11cat >run_twice_expected <<-EOF
121st
13 > add b
14 > add a
152nd
16 > add b
17 > add a
18EOF
19
20test_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
29test_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
34test_done