From: Zdenek Kabelac <zkabelac@redhat.com>
To: lvm-devel@redhat.com
Subject: master - tests: add system_id test
Date: Fri, 20 Feb 2015 09:35:17 +0100 [thread overview]
Message-ID: <54E6F1C5.9090001@redhat.com> (raw)
In-Reply-To: <20150219204548.20DC561169@fedorahosted.org>
Dne 19.2.2015 v 21:45 David Teigland napsal(a):
> Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b896bf8f5a4e811578c0cb606b2ad73220f985fd
> Commit: b896bf8f5a4e811578c0cb606b2ad73220f985fd
> Parent: 0c6faaab4321ff91672ad818c47b8120d2b14180
> Author: David Teigland <teigland@redhat.com>
> AuthorDate: Thu Feb 19 14:08:51 2015 -0600
> Committer: David Teigland <teigland@redhat.com>
> CommitterDate: Thu Feb 19 14:42:39 2015 -0600
>
> tests: add system_id test
>
> ---
> test/shell/system_id.sh | 425 +++++++++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 425 insertions(+), 0 deletions(-)
>
> diff --git a/test/shell/system_id.sh b/test/shell/system_id.sh
> new file mode 100644
> index 0000000..feb66ae
> --- /dev/null
> +++ b/test/shell/system_id.sh
> @@ -0,0 +1,425 @@
> +#!/bin/sh
> +# Copyright (C) 2008-2013 Red Hat, Inc. All rights reserved.
> +#
> +# This copyrighted material is made available to anyone wishing to use,
> +# modify, copy, or redistribute it subject to the terms and conditions
> +# of the GNU General Public License v.2.
> +#
> +# You should have received a copy of the GNU General Public License
> +# along with this program; if not, write to the Free Software Foundation,
> +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
> +
> +test_description='Test system_id'
> +
> +. lib/inittest
> +
> +# FIXME: vgs --foreign is not seeing foreign vg when lvmetad is not used
> +test -e LOCAL_LVMETAD || skip
> +
> +aux prepare_devs 1
> +
> +# create vg with system_id using each source
> +
> +## none
> +
> +SID=""
> +aux lvmconf "global/system_id_source = none"
> +vgcreate $vg1 "$dev1"
> +check vg_field $vg1 systemid $SID
> +vgremove $vg1
> +
> +## machineid
> +
> +if [ ! -e /etc/machine-id ]; then
> + echo "49e0eef929d541a0b8b56128441b2d60" > /etc/machine-id
> +fi
Hi
Test suite may not change system settings - so we need to support alternative
configurable location for such files - either via lvm.conf or possibly via
envvar - but I guess lvm.conf is better fit here.
Test then uses it's own environment.
Zdenek
prev parent reply other threads:[~2015-02-20 8:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-19 20:45 master - tests: add system_id test David Teigland
2015-02-20 8:35 ` Zdenek Kabelac [this message]
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=54E6F1C5.9090001@redhat.com \
--to=zkabelac@redhat.com \
--cc=lvm-devel@redhat.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.