summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-05 21:20:04 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-05 21:20:04 -0500
commit7f3842777aeed4bd7b7ec28ef59c56c489a0831f (patch)
treece46a6cf441835e4a05d422eb06329ee80db9de0
parent9b235734a1810e415acfea2eefaeff008a8073a6 (diff)
update test/librerelease-test.shv20140106
-rw-r--r--test/librerelease-test.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/librerelease-test.sh b/test/librerelease-test.sh
index c395bc6..a44b150 100644
--- a/test/librerelease-test.sh
+++ b/test/librerelease-test.sh
@@ -34,20 +34,22 @@ it_displays_usage_text() {
it_lists_all_files() {
WORKDIR="$tmpdir/workdir"
- mkdir -p "$WORKDIR/staging/repo1" "$WORKDIR/staging/repo2"
+ mkdir -p "$WORKDIR/staging/repo1" "$WORKDIR/staging/repo2/sub"
touch \
"$WORKDIR/staging/repo1/file1" \
"$WORKDIR/staging/repo1/file2" \
- "$WORKDIR/staging/repo2/file with spaces"
+ "$WORKDIR/staging/repo2/file with spaces" \
+ "$WORKDIR/staging/repo2/sub/subfolder"
unset WORKDIR
LC_ALL=C librerelease -l &>"$tmpdir/list"
cat > "$tmpdir/list-correct" <<EOF
-> repo1
-file1
-file2
+ file1
+ file2
-> repo2
-file with spaces
+ file with spaces
+ sub/subfolder
EOF
diff "$tmpdir/list-correct" "$tmpdir/list"