about summary refs log tree commit diff
path: root/t/1000-basic.t
blob: 016ba6f51e524792390322a7ee9742999f319625 (plain) (blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/sh
. ./t/lib.sh

plan 6

check 'no arguments' <<'EOF'
treegen
lr
<<<
f:a
f:b
f:c
>>>
.
a
b
c
EOF

check 'no arguments, recurse' <<'EOF'
treegen
lr
<<<
f:a/b/c
>>>
.
a
a/b
a/b/c
EOF

check 'simple argument' <<'EOF'
treegen
lr a
<<<
f:a/b/c
>>>
a
a/b
a/b/c
EOF

check 'simple arguments' <<'EOF'
treegen
lr a d
<<<
f:a/b/c
f:d/e/f
>>>
a
a/b
a/b/c
d
d/e
d/e/f
EOF

check 'breadth first' <<'EOF'
treegen
lr -B
<<<
f:a/b/c
f:a/d
>>>
.
a
a/b
a/d
a/b/c
EOF

check 'unsorted' <<'EOF'
treegen
lr -U | sort
<<<
f:a/b/c
f:a/d
>>>
.
a
a/b
a/b/c
a/d
EOF