Page MenuHomePhabricator

test_afsegment.sh
No OneTemporary

Size
625 B
Referenced Files
None
Subscribers
None

test_afsegment.sh

#!/bin/sh
# Test the afsegment command
# This file is a work of a US government employee and as such is in the Public domain.
# Simson L. Garfinkel, March 12, 2012
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
affcopy /dev/null $BLANK_AFF
affsegment -ssegname=testseg1 $BLANK_AFF
if [ x"testseg1" = x`affsegment -p segname $BLANK_AFF` ] ; then
echo affsegment worked!
else
echo affsegment does not work properly
exit 1
fi
/bin/rm -f $BLANK_AFF

File Metadata

Mime Type
text/x-shellscript
Expires
Fri, Nov 21, 5:05 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1360967
Default Alt Text
test_afsegment.sh (625 B)

Event Timeline