aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-06-25 11:02:27 -0400
committerFranklin Wei <me@fwei.tk>2018-06-25 11:02:27 -0400
commit51674fc424435b49e7538448276e1af509669e04 (patch)
tree528af3c4ea25bffc58ee8d9decacd29e0f401532
parent91d71b86d0d93e49c610baf01df593ec21752048 (diff)
downloadcsaa-51674fc424435b49e7538448276e1af509669e04.zip
csaa-51674fc424435b49e7538448276e1af509669e04.tar.gz
csaa-51674fc424435b49e7538448276e1af509669e04.tar.bz2
csaa-51674fc424435b49e7538448276e1af509669e04.tar.xz
Add some test scripts
-rwxr-xr-xtestall.sh3
-rwxr-xr-xtestcreate.sh5
-rwxr-xr-xtestmodify.sh6
3 files changed, 14 insertions, 0 deletions
diff --git a/testall.sh b/testall.sh
new file mode 100755
index 0000000..1416582
--- /dev/null
+++ b/testall.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+time ./testcreate.sh
+time ./testmodify.sh
diff --git a/testcreate.sh b/testcreate.sh
new file mode 100755
index 0000000..e95f04a
--- /dev/null
+++ b/testcreate.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+for i in $(seq 1 1000)
+do
+ ./client -u 1 -k a create > /dev/null
+done
diff --git a/testmodify.sh b/testmodify.sh
new file mode 100755
index 0000000..714f3a7
--- /dev/null
+++ b/testmodify.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+./client -u 1 -k a create > /dev/null
+for i in $(seq 1 1000)
+do
+ ./client -u 1 -k a modifyfile -f 1 -i container1/hello-world.tar > /dev/null
+done