Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7712715
test_afsegment.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
499 B
Referenced Files
None
Subscribers
None
test_afsegment.sh
View Options
#!/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
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
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Nov 21, 7:16 AM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1358704
Default Alt Text
test_afsegment.sh (499 B)
Attached To
Mode
rXMOUNT xmount
Attached
Detach File
Event Timeline
Log In to Comment