Sync usage with man page.
[netbsd-mini2440.git] / external / gpl2 / lvm2 / dist / test / t-000-basic.sh
blob8f212fe6db5923841391712818a74ab4d46b4d2c
1 # Copyright (C) 2009 Red Hat, Inc. All rights reserved.
3 # This copyrighted material is made available to anyone wishing to use,
4 # modify, copy, or redistribute it subject to the terms and conditions
5 # of the GNU General Public License v.2.
7 # You should have received a copy of the GNU General Public License
8 # along with this program; if not, write to the Free Software Foundation,
9 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
11 . ./test-utils.sh
13 lvm version
15 v=$abs_top_srcdir/lib/misc/lvm-version.h
16 sed -n "/#define LVM_VERSION ./s///p" "$v" | sed "s/ .*//" > expected
18 lvm pvmove --version|sed -n "1s/.*: *\([0-9][^ ]*\) .*/\1/p" > actual
20 # ensure they are the same
21 diff -u actual expected
23 mknod $G_root_/dev/null c 1 3 ||
24 error "Can't create nodes on filesystem"
25 echo >$G_root_/dev/null ||
26 error "Filesystem for tests does not allow using device nodes (check nodev)"