mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-15 18:14:02 +00:00
75de7d47da
This matches `mlist` where it can take directories as arguments or via stdin. Closes: #244 [via git-merge-pr]
26 lines
360 B
Bash
26 lines
360 B
Bash
#!/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'
|
|
)
|