public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: wysochanski@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/test t-pvcreate-operation.sh Date: Thu, 24 Jul 2008 17:33:00 -0000 [thread overview] Message-ID: <20080724173340.30965.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2008-07-24 17:33:40 Modified files: test : t-pvcreate-operation.sh Log message: Add pvcreate tests for uuid and restorefile. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-operation.sh.diff?cvsroot=lvm2&r1=1.2&r2=1.3 --- LVM2/test/t-pvcreate-operation.sh 2008/07/21 18:50:10 1.2 +++ LVM2/test/t-pvcreate-operation.sh 2008/07/24 17:33:40 1.3 @@ -80,6 +80,33 @@ "pvcreate (lvm2) fails writing LVM label at sector 4" \ 'pvcreate --labelsector 4 $d1' +backupfile=mybackupfile-$(this_test_) +uuid1=freddy-fred-fred-fred-fred-fred-freddy +uuid2=freddy-fred-fred-fred-fred-fred-fredie +bogusuuid=fred + +test_expect_failure \ + 'pvcreate rejects uuid option with less than 32 characters' \ + 'pvcreate --uuid $bogusuuid $d1' + +test_expect_success \ + 'pvcreate rejects uuid already in use' \ + 'pvcreate --uuid freddy-fred-fred-fred-fred-fred-freddy $d1 && + pvcreate --uuid freddy-fred-fred-fred-fred-fred-freddy $d2; + status=$?; echo status=$status; test $status != 0' + +test_expect_success \ + 'pvcreate rejects non-existent file given with restorefile' \ + 'pvcreate --uuid $uuid1 --restorefile $backupfile $d1; + status=$?; echo status=$status; test $status != 0' + +test_expect_success \ + 'pvcreate rejects restorefile with uuid not found in file' \ + 'pvcreate --uuid $uuid1 $d1 && + vgcfgbackup -f $backupfile && + pvcreate --uuid $uuid2 --restorefile $backupfile $d2; + status=$?; echo status=$status; test $status != 0' + test_done # Local Variables: # indent-tabs-mode: nil
next reply other threads:[~2008-07-24 17:33 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-07-24 17:33 wysochanski [this message] -- strict thread matches above, loose matches on Subject: below -- 2010-02-22 14:47 mornfall 2008-12-16 20:02 mbroz 2008-08-01 15:44 zkabelac 2008-07-21 18:50 wysochanski
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080724173340.30965.qmail@sourceware.org \ --to=wysochanski@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).