run-regression.sh from EmStar at Krugle
Show run-regression.sh syntax highlighted
#!/bin/sh
# Generic regression-test driver for EmStar. run it from the ROOT emstar dir,
# and pass the name of a directory full of "*.input" files.
#
# $Id: run-regression.sh,v 1.4 2004/04/28 23:35:13 jelson Exp $
export SIM_GROUP=100
export SIM_ID=100
if [ $# != 1 ]; then
echo "Usage: $0 <input-directory-name>"
exit
fi
echo "testing in $1..."
echo ""
tmp=/tmp/emstar-regression-$$
for input in `echo $1/*.input|sort`; do
printf "%55s ... " $input
cmd=`cat $input|tr '[\r]' '[\n]' | grep regcmd | cut -f2 -d:`
cmd=`printf "$cmd > $tmp" $input`
sh -c "$cmd"
output=`echo $input|sed s/input/output/`
cmp -s $tmp $output
if [ $? == 0 ]; then
echo "passed"
else
echo "FAILED"
echo "Compare output - diff -u $tmp $output"
echo "Failed command: $cmd"
exit 1
fi
done
rm $tmp
echo ""
echo "all tests passed"
exit 0
See more files for this project here
EmStar is a software system for developing and deploying wireless sensor networks involving Linux-based platforms. As the wireless sensor network community has attempted to deploy more complex designs---large-scale, long-lived systems that need self-organization and adaptivity---a number of difficult software design issues have arisen. Advances in software design have not kept pace with the capabilities of hardware. This is because designing for an adaptive, efficient, and useful sensor network has turned out to be surprisingly complex and difficult. EmStar is a Linux-based software framework, whose goal is to dramatically reduce this complexity, enabling work to be shared and reused, and simplifying and speeding the design of new sensor network applications.
Project homepage:
http://cvs.cens.ucla.edu/emstar/
Programming language(s): C,Shell Script
License: other
easybuild/
easybuild.l
easybuild.y
easybuild_i.h
easybuild_main.c
easybuild_util.c
makefile.c
Debug-Makefile
TODO
combine-sources.sh
config.hin
do-release.sh
get-cvs-tag.pl
htosh.pl
make.easybuild
make.platform
make.tinyos
makedepend.py
migrate-repository.sh
run-regression.sh