aboutsummaryrefslogtreecommitdiff
path: root/script/test-smoke.sh
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-03-03 13:34:20 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-03-03 14:29:10 +0100
commit2a3afcaf659bca7fa43501f6adb016626e6f29ed (patch)
tree8449770f71839a446c8f8fb617833daf5b5e0164 /script/test-smoke.sh
parent8a5bbc3b0b1c6ab252d0c98950456a9d4cc2e9fe (diff)
downloadgarage-2a3afcaf659bca7fa43501f6adb016626e6f29ed.tar.gz
garage-2a3afcaf659bca7fa43501f6adb016626e6f29ed.zip
Test WinSCPtest/winscp
Diffstat (limited to 'script/test-smoke.sh')
-rwxr-xr-xscript/test-smoke.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/script/test-smoke.sh b/script/test-smoke.sh
index 4483f65b..c992803e 100755
--- a/script/test-smoke.sh
+++ b/script/test-smoke.sh
@@ -116,6 +116,31 @@ if [ -z "$SKIP_DUCK" ]; then
done
fi
+if [ -z "$SKIP_WINSCP" ]; then
+ echo "🛠️ Testing with winscp"
+ source ${SCRIPT_FOLDER}/dev-env-winscp.sh
+ winscp <<EOF
+open $WINSCP_URL
+ls
+mkdir eprouvette/winscp
+EOF
+ for idx in {1..3}.{rnd,b64}; do
+ winscp <<EOF
+open $WINSCP_URL
+put Z:\\tmp\\garage.$idx eprouvette/winscp/garage.$idx.winscp
+ls eprouvette/winscp/
+get eprouvette/winscp/garage.$idx.winscp Z:\\tmp\\garage.$idx.dl
+rm eprouvette/winscp/garage.$idx.winscp
+EOF
+ diff /tmp/garage.$idx /tmp/garage.$idx.dl
+ rm /tmp/garage.$idx.dl
+ done
+ winscp <<EOF
+open $WINSCP_URL
+rm eprouvette/winscp
+EOF
+fi
+
# Advanced testing via S3API
if [ -z "$SKIP_AWS" ]; then
echo "🔌 Test S3API"