1# Copyright (C) 2009 Red Hat, Inc. All rights reserved. 2# 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. 6# 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 10 11. ./test-utils.sh 12 13lvm version 14 15v=$abs_top_srcdir/lib/misc/lvm-version.h 16sed -n "/#define LVM_VERSION ./s///p" "$v" | sed "s/ .*//" > expected 17 18lvm pvmove --version|sed -n "1s/.*: *\([0-9][^ ]*\) .*/\1/p" > actual 19 20# ensure they are the same 21diff -u actual expected 22 23mknod $G_root_/dev/null c 1 3 || 24 error "Can't create nodes on filesystem" 25echo >$G_root_/dev/null || 26 error "Filesystem for tests does not allow using device nodes (check nodev)" 27