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
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)"