summaryrefslogtreecommitdiff
path: root/test/librerelease-test.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-16 22:40:57 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-16 22:40:57 -0400
commit3d9850b56c77b51edcdb2697c74ba2d1761109dc (patch)
treee5fe03bcbf6cd4d72f7c31a3129156e6784c4325 /test/librerelease-test.sh
parent52cc0c3ff27d4c48d3461d9fd898367aa4a92631 (diff)
parent813bfa255a1e46f05e08dcb587b8f417b995b2d4 (diff)
Merge branch 'master' into lukeshu/xbs
Diffstat (limited to 'test/librerelease-test.sh')
-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"