File: 00-simple-test

package info (click to toggle)
tig 2.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,388 kB
  • sloc: ansic: 32,985; sh: 10,118; makefile: 389
file content (29 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
#
# Graph test: simple

. libtest.sh

test_graph <<EOF
commit f e d
    Merge branch 'branch3'
commit e b c
    Merge branch 'branch2'
commit d a
    branch3
commit c a
    branch2
commit b a
    branch1
commit a
    init
EOF

assert_equals stdout <<EOF
●─╮ Merge branch 'branch3'
●─│─╮ Merge branch 'branch2'
│ ∙ │ branch3
│ │ ∙ branch2
∙ │ │ branch1
◎─┴─╯ init
EOF