File: 08-multi-collapse-2-test

package info (click to toggle)
tig 2.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,188 kB
  • sloc: ansic: 36,941; sh: 10,934; makefile: 394
file content (38 lines) | stat: -rwxr-xr-x 838 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
30
31
32
33
34
35
36
37
38
#!/bin/sh
#
# Graph test: multi collapse 2

. libtest.sh

test_graph <<EOF
commit A Z B C D E F
    Commit A - merge Z, B, C, D, E, and F
commit C B
    Commit C - after B
commit B H
    Commit B - after H
commit F G
    Commit F - after G
commit H D
    Commit H - after D
commit D E
    Commit D - after E
commit E G
    Commit E - after G
commit G Z
    Commit G - after Z
commit Z
    Commit Z
EOF

assert_equals stdout <<EOF
●─┬─┬─┬─┬─╮ Commit A - merge Z, B, C, D, E, and F
│ │ ∙ │ │ │ Commit C - after B
│ ∙─╯ │ │ │ Commit B - after H
│ │ ╭─╯ │ ∙ Commit F - after G
│ ∙ │ ╭─╯ │ Commit H - after D
│ ∙─╯ │ ╭─╯ Commit D - after E
│ ∙───╯ │ Commit E - after G
│ ∙─────╯ Commit G - after Z
◎─╯ Commit Z
EOF