186d7f5d3SJohn Marino# Copyright (C) 2009 Red Hat, Inc. All rights reserved. 286d7f5d3SJohn Marino# 386d7f5d3SJohn Marino# This copyrighted material is made available to anyone wishing to use, 486d7f5d3SJohn Marino# modify, copy, or redistribute it subject to the terms and conditions 586d7f5d3SJohn Marino# of the GNU General Public License v.2. 686d7f5d3SJohn Marino# 786d7f5d3SJohn Marino# You should have received a copy of the GNU General Public License 886d7f5d3SJohn Marino# along with this program; if not, write to the Free Software Foundation, 986d7f5d3SJohn Marino# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 1086d7f5d3SJohn Marino 1186d7f5d3SJohn Marino. ./test-utils.sh 1286d7f5d3SJohn Marino 1386d7f5d3SJohn Marinolvm version 1486d7f5d3SJohn Marino 1586d7f5d3SJohn Marinov=$abs_top_srcdir/lib/misc/lvm-version.h 1686d7f5d3SJohn Marinosed -n "/#define LVM_VERSION ./s///p" "$v" | sed "s/ .*//" > expected 1786d7f5d3SJohn Marino 1886d7f5d3SJohn Marinolvm pvmove --version|sed -n "1s/.*: *\([0-9][^ ]*\) .*/\1/p" > actual 1986d7f5d3SJohn Marino 2086d7f5d3SJohn Marino# ensure they are the same 2186d7f5d3SJohn Marinodiff -u actual expected 2286d7f5d3SJohn Marino 2386d7f5d3SJohn Marinomknod $G_root_/dev/null c 1 3 || 2486d7f5d3SJohn Marino error "Can't create nodes on filesystem" 2586d7f5d3SJohn Marinoecho >$G_root_/dev/null || 2686d7f5d3SJohn Marino error "Filesystem for tests does not allow using device nodes (check nodev)" 27