]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: We want to stop on errors. Add new scripts.
authorGreg Farnum <gregf@hq.newdream.net>
Fri, 13 Nov 2009 22:38:50 +0000 (14:38 -0800)
committerGreg Farnum <gregf@hq.newdream.net>
Tue, 17 Nov 2009 17:13:47 +0000 (09:13 -0800)
qa/runallonce.sh
qa/runonceph.sh [new file with mode: 0755]
qa/workunits/snaptest1.sh [new file with mode: 0644]

index 2d34faf1bf5c78d5ea9b38123708261e91de29a2..9d1dfca6bde27573fef7a8f89342ebc0e3cd3e95 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash -x
 
-#set -e
+set -e
 
 basedir=`pwd`
 testdir="${basedir}/testspace"
diff --git a/qa/runonceph.sh b/qa/runonceph.sh
new file mode 100755 (executable)
index 0000000..1e0aad5
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash -x
+
+mkdir -p testspace
+cfuse testspace -m $1
+
+./runallonce.sh
\ No newline at end of file
diff --git a/qa/workunits/snaptest1.sh b/qa/workunits/snaptest1.sh
new file mode 100644 (file)
index 0000000..7c29d01
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+echo 1 > file1
+echo 2 > file2
+echo 3 > file3
+mkdir .snap/snap1
+echo 4 > file4
+if [ `ls` -eq `ls .snap/snap1` ]
+    return -1
+fi
\ No newline at end of file