about summary refs log tree commit diff
path: root/t/9000-minc.t
blob: 9b291943c4bad5aae7704f14a349920be063f4d1 (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
#!/bin/sh -e
cd ${0%/*}
. ./lib.sh
plan 2

rm -rf test.dir
mkdir test.dir
(
cd test.dir

mkdir -p inbox/cur inbox/new
while read f; do touch "$f"; done <<!
inbox/new/1:2,
inbox/new/2
!

check_test 'minc' -eq 2 'minc inbox | wc -l'

while read f; do touch "$f"; done <<!
inbox/new/3:2,
inbox/new/4
!

check_test 'minc stdin' -eq 2 'echo inbox | minc | wc -l'
)