summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/temporary/put_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/temporary/put_test.sh')
-rwxr-xr-xapps/dav/tests/temporary/put_test.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/dav/tests/temporary/put_test.sh b/apps/dav/tests/temporary/put_test.sh
new file mode 100755
index 00000000000..c3b64dee448
--- /dev/null
+++ b/apps/dav/tests/temporary/put_test.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+script_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+user='admin'
+pass='admin'
+server='localhost/owncloud'
+
+testfile2="$script_path/zombie.jpg"
+
+blackfire --samples 1 curl -X PUT -u $user:$pass --cookie "XDEBUG_SESSION=MROW4A;path=/;" --data-binary @"$testfile2" "http://$server/remote.php/webdav/test/zombie.jpg"
+#curl -X PUT -u $user:$pass --cookie "XDEBUG_SESSION=MROW4A;path=/;" --data-binary @"$testfile2" "http://$server/remote.php/webdav/test/zombie.jpg"