OSSP CVS Repository

ossp - ossp-pkg/mm/fbtool
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/mm/fbtool
#!/bin/sh
##
##  fbtool -- MM library feedback tool
##  Copyright (c) 1999-2001 Ralf S. Engelschall, All Rights Reserved. 
##

if [ ! -f .fbtool ]; then
    echo "fbtool:Error: still no results known";
    exit 1
fi
result=`cat .fbtool`

VERSION=`./shtool version -l c -d long mm_vers.c`

PLATFORM=`/bin/sh ./config.guess`
PLATFORM=`/bin/sh ./config.sub $PLATFORM`

VMPS=`grep MM_VMPS_ mm_conf.h | grep define | sed -e 's;.*MM_;MM_;' -e 's; .*;;'`; \
SHMT=`grep MM_SHMT_ mm_conf.h | grep define | sed -e 's;.*MM_;MM_;' -e 's; .*;;'`; \
SEMT=`grep MM_SEMT_ mm_conf.h | grep define | sed -e 's;.*MM_;MM_;' -e 's; .*;;'`; \
SEGS=`grep MM_SHM_MAXSEGSIZE mm_conf.h | grep define | sed -e 's;.*SIZE *;;' -e 's; .*;;'`; \

TMP=".fbsummary"
rm -f $TMP >/dev/null 2>&1
touch $TMP
echo "+-MM-Library-Test-Suite-Summary---------------------------" >>$TMP
echo "| Library Version       : MM $VERSION" >>$TMP
echo "| Platform              : $PLATFORM" >>$TMP
echo "| Memory Page Size Type : $VMPS" >>$TMP
echo "| Shared Memory Type    : $SHMT" >>$TMP
echo "| Semaphore Type        : $SEMT" >>$TMP
echo "| Maximum Segment Size  : $SEGS" >>$TMP
echo "| Test Suite            : $result" >>$TMP
echo "+---------------------------------------------------------" >>$TMP

case $1 in
    -d ) cat $TMP ;;
    -s ) ;;
esac

rm -f $TMP >/dev/null 2>&1


CVSTrac 2.0.1