From: Sage Weil Date: Tue, 27 Jul 2010 20:22:36 +0000 (-0700) Subject: qa: consistent snaptest-%d.sh naming X-Git-Tag: v0.21~24 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6bd40ac96ed800a1a447d2706035f9e4c46fb114;p=ceph.git qa: consistent snaptest-%d.sh naming --- diff --git a/qa/workunits/snap_simple_races.sh b/qa/workunits/snap_simple_races.sh deleted file mode 100755 index a074a3ef479..00000000000 --- a/qa/workunits/snap_simple_races.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -x - -set -e - -echo asdf > foo -mkdir .snap/foo -grep asdf .snap/foo/foo -rmdir .snap/foo - -echo asdf > bar -mkdir .snap/bar -rm bar -grep asdf .snap/bar/bar -rmdir .snap/bar diff --git a/qa/workunits/snaptest-0.sh b/qa/workunits/snaptest-0.sh new file mode 100755 index 00000000000..a074a3ef479 --- /dev/null +++ b/qa/workunits/snaptest-0.sh @@ -0,0 +1,14 @@ +#!/bin/sh -x + +set -e + +echo asdf > foo +mkdir .snap/foo +grep asdf .snap/foo/foo +rmdir .snap/foo + +echo asdf > bar +mkdir .snap/bar +rm bar +grep asdf .snap/bar/bar +rmdir .snap/bar diff --git a/qa/workunits/snaptest-1.sh b/qa/workunits/snaptest-1.sh new file mode 100755 index 00000000000..b898bce9cb0 --- /dev/null +++ b/qa/workunits/snaptest-1.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +set -e + +echo 1 > file1 +echo 2 > file2 +echo 3 > file3 +[ -e file4 ] && rm file4 +mkdir .snap/snap1 +echo 4 > file4 +now=`ls` +then=`ls .snap/snap1` +rmdir .snap/snap1 +if [ "$now" = "$then" ]; then + echo live and snap contents are identical? + false +fi + +# do it again +echo 1 > file1 +echo 2 > file2 +echo 3 > file3 +mkdir .snap/snap1 +echo 4 > file4 +rmdir .snap/snap1 diff --git a/qa/workunits/snaptest1.sh b/qa/workunits/snaptest1.sh deleted file mode 100755 index b898bce9cb0..00000000000 --- a/qa/workunits/snaptest1.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -set -e - -echo 1 > file1 -echo 2 > file2 -echo 3 > file3 -[ -e file4 ] && rm file4 -mkdir .snap/snap1 -echo 4 > file4 -now=`ls` -then=`ls .snap/snap1` -rmdir .snap/snap1 -if [ "$now" = "$then" ]; then - echo live and snap contents are identical? - false -fi - -# do it again -echo 1 > file1 -echo 2 > file2 -echo 3 > file3 -mkdir .snap/snap1 -echo 4 > file4 -rmdir .snap/snap1