DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T c

⟦6b5a15dba⟧ TextFile

    Length: 2357 (0x935)
    Types: TextFile
    Names: »cleanup«

Derivation

└─⟦db229ac7e⟧ Bits:30007240 EUUGD20: SSBA 1.2 / AFW Benchmarks
    └─⟦this⟧ »EUUGD20/AFUU-ssba1.21/ssba1.21E/musbus/cleanup« 
    └─⟦this⟧ »EUUGD20/AFUU-ssba1.21/ssba1.21F/musbus/cleanup« 

TextFile

#! /bin/sh
#
# $Header: cleanup,v 5.2 88/01/07 10:58:24 kenj Exp $
#
#  Cleanup when an iterative test terminates
#
bell="▶07◀"
log=musbus.log
res=musbus.res
syn=musbus.syn
logwork=musbus.work
while ( test $# -ge 1 )
do
    opt=$1
    shift
    case $opt
    in

    -a) : abort
	echo '' >>$log
	echo '**************************' >>$log
	echo '* Benchmark Aborted .... *' >>$log
	echo '**************************' >>$log
	echo " Benchmark Aborted ...." >>$res
	echo " Benchmark Aborted ...." >>$syn
 	echo $bell ; sleep 2 ; echo $bell ; sleep 2 ; echo $bell 
	echo "" >>$log
	echo " " `who | wc -l` "interactive users." >>$log
	echo "" >>$log
	date=`date`
	echo "End Benchmark Run ($date) ...." >>$log
	echo "End Benchmark Run ($date) ...."
	;;


    -f) : filesystem throughput
	awk -f fs.awk <$1 >>$log
	awk -f fs.awk <$1 >>$syn
	rm -f $1
	shift
	;;
    
    -i) : report last iteration
	echo "Terminated during iteration $1" >>$log
	shift
	;;

    -l) : logfile
	log=$1
	shift
	;;
    
    -r) : reason for failure
	echo $1
	echo $1 >>$log
	shift
	;;

    -t) : timing with /bin/time
	awk -f chrono.awk <$1 >>$log
	awk -f chrono.awk <$1 >>$syn
	rm -f $1
	shift
	;;

    -w) : work - save information from multi-user test
	worktmp=Tmp/work.tmp
	workdir=${workdir-Workload}
	touch $worktmp	# thanks to Mark Hewitt, mjh%kernel.uucp@ukc.ac.uk
	for m in Tmp/masterlog.*
	do
	    if ( test $m != "Tmp/masterlog.*" )
	    then
		echo ${m}: >>$worktmp
		cat $m >>$worktmp
		echo "" >>$worktmp
		rm -f $m
	    fi
	done
	for u in Tmp/userlog.*
	do
	    if ( test $u != "Tmp/userlog.*" )
	    then
		echo ${u}: >>$worktmp
		cat $u >>$worktmp
		echo "" >>$worktmp
		rm -f $u
	    fi
	done
	if test -f $workdir/cleanstderr
	then
		$workdir/cleanstderr <$worktmp >${worktmp}a
		mv ${worktmp}a $worktmp
	fi
	sed -f check.sed $worktmp >loggederrs
	if ( test -s loggederrs )
	then
	    echo "*************************************" >>$log
	    echo "* Apparent errors from makework ... *" >>$log
	    echo "*************************************" >>$log
	    echo " Apparent errors from makework ... " >>$res
	    echo " Apparent errors from makework ... " >>$syn
	    cat loggederrs >>$log
	fi
	rm -f loggederrs
	cat $worktmp >>$logwork
	rm -f $worktmp
	;;

    '') : 'skip it (residual effect of shifts)'
	;;

    *)
	echo "cleanup: bad option ($opt)" >>$log
esac
done
exit