Skip to content

Commit

Permalink
Fix ./run.sh all
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Sep 24, 2021
1 parent 7a3bfae commit 20d0e03
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/run.sh
Expand Up @@ -20,10 +20,8 @@ source lib.sh

case "$1" in
all)
for file in source-*/*.sh; do
# shellcheck disable=SC1090
source "$file"
done
./run.sh http
./run.sh swift
;;
http)
for file in source-{any,http}/*.sh; do
Expand Down
21 changes: 21 additions & 0 deletions test/source-any/06-segmented-upload-of-large-files.sh
Expand Up @@ -9,6 +9,15 @@ fi

step 'Test 06: Segmented upload of large files'

upload_file_from_stdin just/some/files/1.txt <<-EOF
Hello World.
EOF
upload_file_from_stdin just/some/files/2.txt <<-EOF
Hello Second World.
EOF
upload_file_from_stdin just/another/file.txt <<-EOF
This is the new file!
EOF
upload_file_from_stdin largefile.txt <<-EOF
Line number 1
Line number 2
Expand All @@ -31,6 +40,12 @@ EOF
# segment, i.e. 5 segments.

expect test6 <<-EOF
>> just/another/file.txt
This is the new file!
>> just/some/files/1.txt
Hello World.
>> just/some/files/2.txt
Hello Second World.
>> largefile.txt
Line number 1
Line number 2
Expand Down Expand Up @@ -69,6 +84,12 @@ mirror <<-EOF
EOF

expect test6 <<-EOF
>> just/another/file.txt
This is the new file!
>> just/some/files/1.txt
Hello World.
>> just/some/files/2.txt
Hello Second World.
>> largefile.txt
Line number 1
Line number 2
Expand Down

0 comments on commit 20d0e03

Please sign in to comment.