run-webdav-test.sh
1 #!/bin/bash 2 3 # Set the working directory to the project root 4 cd "$(dirname "$0")/../../../" || exit 1 5 6 # Build the test 7 echo "Building WebDAV provider test..." 8 go build -o bin/test-webdav-provider cmd/keepsync-cli-standalone/test-scripts/test-webdav-provider.go 9 10 # Check if the build was successful 11 if [ $? -ne 0 ]; then 12 echo "Build failed!" 13 exit 1 14 fi 15 16 # Run the test 17 echo "Running WebDAV provider test..." 18 bin/test-webdav-provider 19 20 # Clean up 21 echo "Cleaning up..." 22 rm bin/test-webdav-provider 23 24 echo "Test completed!"