summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"