1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/bin/sh
# Test the afsegment command
export PATH=$srcdir:../tools:../../tools:.:$PATH
BLANK_BASE=`mktemp -t blankXXXXX`
BLANK_AFF=$BLANK_BASE.aff
unset AFFLIB_PASSPHRASE
echo === Putting a new metadata segment into blank.aff ===
/bin/rm -f $BLANK_AFF
afcopy /dev/null $BLANK_AFF
afsegment -ssegname=testseg1 $BLANK_AFF
if [ x"testseg1" = x`afsegment -p segname $BLANK_AFF` ] ; then
echo afsegment worked!
else
echo afsegment does not work properly
exit 1
fi
/bin/rm -f $BLANK_AFF
|